com.sun.msv.relaxns.grammar.relax

Class AnyOtherElementExp

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

Field Summary

String
excludeNamespace
String
includeNamespace
NameClass
nameClass
this name class matches all the namespaces that are accepted by this anyOtherElement.
Locator
source
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

AnyOtherElementExp(Locator loc, String includeNamespace, String excludeNamespace)
creates "skelton" of AnyOtherElement.

Method Summary

boolean
getFeature(String feature)
String
getName()
NameClass
getNameClass()
obtains a constraint over tag name.
Object
getProperty(String property)

Methods inherited from class com.sun.msv.grammar.ElementExp

equals, getContentModel, getNameClass, visit, visit, visit, visit

Methods inherited from class com.sun.msv.grammar.Expression

equals, getExpandedExp, hashCode, isEpsilonReducible, peelOccurence, visit, visit, visit, visit, visit, visit, visit, visit

Field Details

excludeNamespace

public final String excludeNamespace

includeNamespace

public final String includeNamespace

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 Locator source
where did this reference is written in the source file. can be set to null (to reduce memory usage) at anytime.

Constructor Details

AnyOtherElementExp

public AnyOtherElementExp(Locator loc,
                          String includeNamespace,
                          String excludeNamespace)
creates "skelton" of AnyOtherElement. pseudo content model and name class must be supplied separately.

Method Details

getFeature

public boolean getFeature(String feature)
            throws SAXNotRecognizedException

getName

public String getName()

getNameClass

public NameClass getNameClass()
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
Overrides:
getNameClass in interface ElementExp

getProperty

public Object getProperty(String property)
            throws SAXNotRecognizedException