com.sun.tools.xjc.reader.xmlschema
Class GElementImpl

java.lang.Object
  extended by com.sun.tools.xjc.reader.gbind.Expression
      extended by com.sun.tools.xjc.reader.gbind.Element
          extended by com.sun.tools.xjc.reader.xmlschema.GElement
              extended by com.sun.tools.xjc.reader.xmlschema.GElementImpl
All Implemented Interfaces:
ElementSet, Iterable<Element>

final class GElementImpl
extends GElement

Element that wraps XSElementDecl.


Field Summary
 XSElementDecl decl
          The representative XSElementDecl.
 QName tagName
           
 
Fields inherited from class com.sun.tools.xjc.reader.xmlschema.GElement
particles
 
Fields inherited from class com.sun.tools.xjc.reader.gbind.Expression
EPSILON
 
Fields inherited from interface com.sun.tools.xjc.reader.gbind.ElementSet
EMPTY_SET
 
Constructor Summary
GElementImpl(QName tagName, XSElementDecl decl)
           
 
Method Summary
(package private)  String getPropertyNameSeed()
          Gets the seed (raw XML name) to be used to generate a property name.
 String toString()
           
 
Methods inherited from class com.sun.tools.xjc.reader.gbind.Element
addNext, buildStronglyConnectedComponents, contains, hasSelfLoop, iterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

tagName

public final QName tagName

decl

public final XSElementDecl decl
The representative XSElementDecl. Even though multiple XSElementDecls 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.)

Constructor Detail

GElementImpl

public GElementImpl(QName tagName,
                    XSElementDecl decl)
Method Detail

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