com.sun.msv.grammar.xmlschema
Class ElementDeclExp.XSElementExp

java.lang.Object
  extended by com.sun.msv.grammar.Expression
      extended by com.sun.msv.grammar.ElementExp
          extended by com.sun.msv.grammar.xmlschema.ElementDeclExp.XSElementExp
All Implemented Interfaces:
NameClassAndExpression, Serializable
Enclosing class:
ElementDeclExp

public static class ElementDeclExp.XSElementExp
extends ElementExp

XML Schema version of ElementExp.

Author:
Kohsuke KAWAGUCHI
See Also:
Serialized Form

Field Summary
 String defaultValue
           
 SimpleNameClass elementName
           
 Vector<Object> identityConstraints
          identity constraints associated to this declaration.
 ElementDeclExp parent
           
 
Fields inherited from class com.sun.msv.grammar.ElementExp
contentModel, ignoreUndeclaredAttributes
 
Fields inherited from class com.sun.msv.grammar.Expression
anyString, epsilon, nullSet, verifierTag
 
Constructor Summary
ElementDeclExp.XSElementExp(ElementDeclExp parent, SimpleNameClass elementName, Expression contentModel, String defaultValue)
           
 
Method Summary
 NameClass getNameClass()
          obtains a constraint over tag name.
 
Methods inherited from class com.sun.msv.grammar.ElementExp
calcEpsilonReducibility, calcHashCode, equals, getContentModel, visit, visit, visit, visit
 
Methods inherited from class com.sun.msv.grammar.Expression
getExpandedExp, hashCode, hashCode, hashCode, isEpsilonReducible, peelOccurence, readResolve, visit, visit, visit, visit
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elementName

public final SimpleNameClass elementName

defaultValue

public final String defaultValue

identityConstraints

public final Vector<Object> identityConstraints
identity constraints associated to this declaration. When no constraint exists, this field may be null (or empty vector). Items are of derived types of IdentityConstraint class.

These identity constraints are not enforced by the default Verifier implementation.


parent

public final ElementDeclExp parent
Constructor Detail

ElementDeclExp.XSElementExp

public ElementDeclExp.XSElementExp(ElementDeclExp parent,
                                   SimpleNameClass elementName,
                                   Expression contentModel,
                                   String defaultValue)
Method Detail

getNameClass

public final NameClass getNameClass()
Description copied from class: ElementExp
obtains a constraint over tag name. ElementExp is cannot be shared because NameClass has to be mutable to absorb the difference of RELAX and TREX. In case of TREX, name class will be determined when parsing ElementExp itself. Thus effectively it's immutable. In case of RELAX, name class will be determined when its corresponding Clause object is parsed.

Specified by:
getNameClass in interface NameClassAndExpression
Specified by:
getNameClass in class ElementExp


MSV