<element> declaration in the binding file.
| Modifier and Type | Field and Description |
|---|---|
| private final Map | attributes
Attribute-property declarations. |
| private final String | className
the class which is generated by this declaration. |
| public final CClassInfo | clazz
The bean representation for this element. |
| private final List | constructors
Constructor declarations. |
| private final List | contents
Content-property declarations. |
| private final Map | conversions
Conversion declarations. |
| private final Element | e
|
| pack-priv final BindInfo | |
| private BIContent | rest
The "rest" content-property declaration. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public BIAttribute | |
| public BIConversion | Returns: A non-null valid BIConversion object.Resolves the conversion name to the conversion declaration. |
| public void | declareConstructors(CClassInfo
The ClassItem object that corresponds to this declaration src)Creates constructor declarations for this element. |
| public String | |
| public List | |
| public BIConversion | Returns: If the convert attribute is not specified, this method returns null.Gets the conversion method for this element. |
| public Locator | |
| public BIContent | Returns: if there is no 'rest' declaration, return null.Gets the 'rest' content-property declaration, if any. |
| public Locator | |
| public boolean | |
| public boolean | |
| public String |
| attributes | back to summary |
|---|---|
| private final Map<String, BIAttribute> attributes Attribute-property declarations. | |
| className | back to summary |
|---|---|
| private final String className the class which is generated by this declaration. This field will be null if this declaration is an element-property declaration. | |
| clazz | back to summary |
|---|---|
| public final CClassInfo clazz The bean representation for this element. | |
| constructors | back to summary |
|---|---|
| private final List<BIConstructor> constructors Constructor declarations. | |
| contents | back to summary |
|---|---|
| private final List<BIContent> contents Content-property declarations. This vector will be empty if no content-property declaration is made. | |
| conversions | back to summary |
|---|---|
| private final Map<String, BIConversion> conversions Conversion declarations. | |
| e | back to summary |
|---|---|
| private final Element e
| |
| parent | back to summary |
|---|---|
| pack-priv final BindInfo parent The parent | |
| rest | back to summary |
|---|---|
| private BIContent rest The "rest" content-property declaration. This field is null when there was no "rest" declaration. | |
| BIElement | back to summary |
|---|---|
| pack-priv BIElement(BindInfo bi, Element _e) Wraps a given
Should be created only from | |
| attribute | back to summary |
|---|---|
| public BIAttribute attribute(String name) Gets the attribute-property declaration, if any.
| |
| conversion | back to summary |
|---|---|
| public BIConversion conversion(String name) Resolves the conversion name to the conversion declaration. Element-local declarations are checked first.
| |
| declareConstructors | back to summary |
|---|---|
| public void declareConstructors(CClassInfo src) Creates constructor declarations for this element. This method should only be called by DTDReader after the normalization has completed.
| |
| getClassName | back to summary |
|---|---|
| public String getClassName() Gets the JClass object that represents this declaration. This method returns null if this declaration is an element-property declaration. | |
| getContents | back to summary |
|---|---|
| public List Iterates all content-property declarations (except 'rest'). | |
| getConversion | back to summary |
|---|---|
| public BIConversion getConversion() Gets the conversion method for this element. This method can be called only when this element declaration is designated as element-value.
| |
| getLocation | back to summary |
|---|---|
| public Locator getLocation() Gets the source location where this element is declared. | |
| getRest | back to summary |
|---|---|
| public BIContent getRest() Gets the 'rest' content-property declaration, if any.
| |
| getSourceLocation | back to summary |
|---|---|
| public Locator getSourceLocation() Gets the location where this declaration is declared. | |
| isClass | back to summary |
|---|---|
| public boolean isClass() Checks if the element type is "class". If false, that means this element will be a value. | |
| isRoot | back to summary |
|---|---|
| public boolean isRoot() Checks if this element is designated as a root element. | |
| name | back to summary |
|---|---|
| public String name() Gets the element name. | |