com.sun.tools.xjc.reader.xmlschema
Class GElementImpl
java.lang.Object
com.sun.tools.xjc.reader.gbind.Expression
com.sun.tools.xjc.reader.gbind.Element
com.sun.tools.xjc.reader.xmlschema.GElement
com.sun.tools.xjc.reader.xmlschema.GElementImpl
- All Implemented Interfaces:
- ElementSet, Iterable<Element>
final class GElementImpl
- extends GElement
Element
that wraps XSElementDecl
.
tagName
public final QName tagName
decl
public final XSElementDecl decl
- The representative
XSElementDecl
.
Even though multiple XSElementDecl
s maybe represented by
a single GElementImpl
(especially when they are local),
the schema spec requires that they share the same type and other
characteristic.
(To be really precise, you may have different default values,
nillability, all that, so if that becomes a real issue we have
to reconsider this design.)
GElementImpl
public GElementImpl(QName tagName,
XSElementDecl decl)
toString
public String toString()
- Overrides:
toString
in class Object
getPropertyNameSeed
String getPropertyNameSeed()
- Description copied from class:
GElement
- Gets the seed (raw XML name) to be used to generate a property name.
- Specified by:
getPropertyNameSeed
in class GElement