com.sun.msv.relaxns.grammar.relax
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:
- ElementDecl, NameClassAndExpression, Serializable
- public class AnyOtherElementExp
- extends ElementExp
- implements ElementDecl
place holder for <anyOtherElement> of RELAX.
- Author:
- Kohsuke KAWAGUCHI
- See Also:
- Serialized Form
nameClass
public NameClass nameClass
- this name class matches all the namespaces that are accepted by this anyOtherElement.
this field is set by bind method.
source
public transient Locator source
- where did this reference is written in the source file.
can be set to null (to reduce memory usage) at anytime.
includeNamespace
public final String includeNamespace
excludeNamespace
public final String excludeNamespace
AnyOtherElementExp
public AnyOtherElementExp(Locator loc,
String includeNamespace,
String excludeNamespace)
- creates "skelton" of AnyOtherElement.
pseudo content model and name class must be supplied separately.
getNameClass
public 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.
- Overrides:
getNameClass
in class ElementExp
getName
public String getName()
- Specified by:
getName
in interface ElementDecl
getFeature
public boolean getFeature(String feature)
throws SAXNotRecognizedException
- Specified by:
getFeature
in interface ElementDecl
getProperty
public Object getProperty(String property)
throws SAXNotRecognizedException
- Specified by:
getProperty
in interface ElementDecl