| java.lang.Object org.jibx.binding.def.BindingBuilder org.jibx.binding.def.NestedBase
All known Subclasses: org.jibx.binding.def.NestedCollection, org.jibx.binding.def.NestedStructure,
NestedBase | abstract public class NestedBase extends BindingBuilder.ContainerBase implements IComponent,IContainer(Code) | | Base class for structure and collection binding definitions. This handles one
or more child components, which may be ordered or unordered.
author: Dennis M. Sosnoski version: 1.0 |
Field Summary | |
protected ArrayList | m_attributes Included attribute definitions (lazy create, only if needed). | protected ArrayList | m_contents Nested content definitions (initially used for all child components). | final protected boolean | m_isFlexible Flag for flexible element handling (used by subclasses). | final protected boolean | m_isOrdered Flag for ordered child content (used by subclasses). |
m_attributes | protected ArrayList m_attributes(Code) | | Included attribute definitions (lazy create, only if needed).
|
m_contents | protected ArrayList m_contents(Code) | | Nested content definitions (initially used for all child components).
|
m_isFlexible | final protected boolean m_isFlexible(Code) | | Flag for flexible element handling (used by subclasses).
|
m_isOrdered | final protected boolean m_isOrdered(Code) | | Flag for ordered child content (used by subclasses).
|
NestedBase | public NestedBase(IContainer contain, IContextObj objc, boolean ord, boolean flex, boolean defc)(Code) | | Constructor.
Parameters: contain - containing binding definition context Parameters: objc - current object context Parameters: ord - ordered content flag Parameters: flex - flexible element handling flag Parameters: defc - define context for structure flag |
addComponent | public void addComponent(IComponent comp)(Code) | | Add child component to nested structure. All components are initially
assumed to contain content. When
NestedBase.setLinkages is called the
components are checked to determine whether they actually supply
attribute(s), content, or both.
Parameters: comp - child component to be added to structure |
getAttributes | public ArrayList getAttributes()(Code) | | Get the attribute children of this mapping.
list of attribute children (null if none; should notbe modified) |
getContents | public ArrayList getContents()(Code) | | Get the content children of this mapping.
list of content children (should not be modified) |
hasContent | public boolean hasContent()(Code) | | |
hasNamespaces | public boolean hasNamespaces()(Code) | | |
isContentOrdered | public boolean isContentOrdered()(Code) | | |
isFlexible | public boolean isFlexible()(Code) | | Check if flexible unmarshalling.
flexible flag |
isOptional | public boolean isOptional()(Code) | | |
setObjectContext | public void setObjectContext(IContextObj objc)(Code) | | Set the object context.
Parameters: objc - object context |
Methods inherited from org.jibx.binding.def.BindingBuilder | public static BindingDefinition unmarshalBindingDefinition(UnmarshallingContext ctx, String name, URL root) throws JiBXException(Code)(Java Doc) public static void unmarshalInclude(UnmarshallingContext ctx, BindingDefinition bdef, URL root, ArrayList nslist, HashSet paths) throws JiBXException(Code)(Java Doc) public static IMapping unmarshalMapping(UnmarshallingContext ctx, IContainer parent, ArrayList nss, boolean uord) throws JiBXException(Code)(Java Doc) public static IComponent unmarshalStructure(UnmarshallingContext ctx, IContainer contain, IContextObj cobj, boolean coll, boolean uord, boolean implic) throws JiBXException(Code)(Java Doc)
|
|
|