Package com.sun.msv.relaxns.grammar
Class ExternalElementExp
java.lang.Object
com.sun.msv.grammar.Expression
com.sun.msv.grammar.ElementExp
com.sun.msv.relaxns.grammar.ExternalElementExp
- All Implemented Interfaces:
NameClassAndExpression,Serializable
place holder for imported element declaration.
This class derives ElementExp because "elementDecl" is a constraint over one element.
This class also provides stub methods so that programs who are not aware to
divide&validate can gracefully degrade.
- Author:
- Kohsuke KAWAGUCHI
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Stringnamespace URI that this ExternalElementExp belongs to.org.iso_relax.dispatcher.ElementDeclimported ElementDecl object that actually validates this element.final Stringname of the imported Rulewhere did this reference is written in the source file.Fields inherited from class com.sun.msv.grammar.ElementExp
contentModel, ignoreUndeclaredAttributesFields inherited from class com.sun.msv.grammar.Expression
anyString, epsilon, nullSet, verifierTag -
Constructor Summary
ConstructorsConstructorDescriptionExternalElementExp(ExpressionPool pool, String namespaceURI, String ruleName, Locator loc) -
Method Summary
Methods inherited from class com.sun.msv.grammar.ElementExp
calcEpsilonReducibility, calcHashCode, equals, getContentModel, visit, visit, visit, visitMethods inherited from class com.sun.msv.grammar.Expression
getExpandedExp, hashCode, hashCode, hashCode, isEpsilonReducible, peelOccurence, readResolve, visit, visit, visit, visit
-
Field Details
-
namespaceURI
namespace URI that this ExternalElementExp belongs to. -
ruleName
name of the imported Rule -
source
where did this reference is written in the source file. can be set to null (to reduce memory usage) at anytime. -
rule
public org.iso_relax.dispatcher.ElementDecl ruleimported ElementDecl object that actually validates this element. this variable is set during binding phase.
-
-
Constructor Details
-
ExternalElementExp
-
-
Method Details
-
getNameClass
Description copied from class:ElementExpobtains 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:
getNameClassin interfaceNameClassAndExpression- Specified by:
getNameClassin classElementExp
-