|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.tools.xjc.reader.dtd.bindinfo.BIElement
public final class BIElement
<element> declaration in the binding file.
Field Summary | |
---|---|
CClassInfo |
clazz
The bean representation for this element. |
(package private) BindInfo |
parent
The parent BindInfo object to which this object belongs. |
Constructor Summary | |
---|---|
BIElement(BindInfo bi,
Element _e)
Wraps a given <element> element in the binding file. |
Method Summary | |
---|---|
BIAttribute |
attribute(String name)
Gets the attribute-property declaration, if any. |
BIConversion |
conversion(String name)
Resolves the conversion name to the conversion declaration. |
void |
declareConstructors(CClassInfo src)
Creates constructor declarations for this element. |
String |
getClassName()
Gets the JClass object that represents this declaration. |
List<BIContent> |
getContents()
Iterates all content-property declarations (except 'rest'). |
BIConversion |
getConversion()
Gets the conversion method for this element. |
Locator |
getLocation()
Gets the source location where this element is declared. |
BIContent |
getRest()
Gets the 'rest' content-property declaration, if any. |
Locator |
getSourceLocation()
Gets the location where this declaration is declared. |
boolean |
isClass()
Checks if the element type is "class". |
boolean |
isRoot()
Checks if this element is designated as a root element. |
String |
name()
Gets the element name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
final BindInfo parent
BindInfo
object to which this object belongs.
public final CClassInfo clazz
Constructor Detail |
---|
BIElement(BindInfo bi, Element _e)
Should be created only from BindInfo
.
Method Detail |
---|
public Locator getLocation()
public String name()
public boolean isClass()
public boolean isRoot()
public String getClassName()
This method returns null if this declaration is an element-property declaration.
public void declareConstructors(CClassInfo src)
This method should only be called by DTDReader after the normalization has completed.
src
- The ClassItem object that corresponds to this declarationpublic BIConversion getConversion()
This method can be called only when this element declaration is designated as element-value.
public BIConversion conversion(String name)
Element-local declarations are checked first.
public List<BIContent> getContents()
public BIAttribute attribute(String name)
public BIContent getRest()
public Locator getSourceLocation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |