Class AnyOtherElementExp
java.lang.Object
com.sun.msv.grammar.Expression
com.sun.msv.grammar.ElementExp
com.sun.msv.relaxns.grammar.relax.AnyOtherElementExp
- All Implemented Interfaces:
NameClassAndExpression
,Serializable
,org.iso_relax.dispatcher.ElementDecl
place holder for <anyOtherElement> of RELAX.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal String
final String
this name class matches all the namespaces that are accepted by this anyOtherElement.where did this reference is written in the source file.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
ConstructorsConstructorDescriptionAnyOtherElementExp
(Locator loc, String includeNamespace, String excludeNamespace) creates "skelton" of AnyOtherElement. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getFeature
(String feature) getName()
obtains a constraint over tag name.getProperty
(String property) protected void
wrapUp
(Grammar owner, Expression pseudoContentModel, org.iso_relax.dispatcher.SchemaProvider provider, ErrorHandler errorHandler) creates pseudo content model and name class.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
-
Field Details
-
nameClass
this name class matches all the namespaces that are accepted by this anyOtherElement. this field is set by bind method. -
source
where did this reference is written in the source file. can be set to null (to reduce memory usage) at anytime. -
includeNamespace
-
excludeNamespace
-
-
Constructor Details
-
AnyOtherElementExp
creates "skelton" of AnyOtherElement. pseudo content model and name class must be supplied separately.
-
-
Method Details
-
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 interfaceNameClassAndExpression
- Specified by:
getNameClass
in classElementExp
-
getName
- Specified by:
getName
in interfaceorg.iso_relax.dispatcher.ElementDecl
-
wrapUp
protected void wrapUp(Grammar owner, Expression pseudoContentModel, org.iso_relax.dispatcher.SchemaProvider provider, ErrorHandler errorHandler) throws SAXException creates pseudo content model and name class. This function is called by RELAXIslandSchema object. Therefore, line information is not automatically available when reporting error. Implementator should keep this in mind and manually pass Locator to reportError method.- Throws:
SAXException
-
getFeature
- Specified by:
getFeature
in interfaceorg.iso_relax.dispatcher.ElementDecl
- Throws:
SAXNotRecognizedException
-
getProperty
- Specified by:
getProperty
in interfaceorg.iso_relax.dispatcher.ElementDecl
- Throws:
SAXNotRecognizedException
-