Top Description Fields Constructors Methods
com.sun.msv.relaxns.grammar.relax

public Class AnyOtherElementExp

extends ElementExp
implements ElementDecl
Class Inheritance
All Implemented Interfaces
org.iso_relax.dispatcher.ElementDecl
Annotations
@SuppressWarnings:serial
Imports
java.util.Iterator, .StringTokenizer, org.iso_relax.dispatcher.ElementDecl, .SchemaProvider, org.xml.sax.ErrorHandler, .Locator, .SAXException, .SAXNotRecognizedException, .SAXParseException, com.sun.msv.grammar.ChoiceNameClass, .ElementExp, .Expression, .Grammar, .NameClass, .NamespaceNameClass, .NotNameClass

place holder for <anyOtherElement> of RELAX.
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
public final String
public final String
public NameClass
nameClass

this name class matches all the namespaces that are accepted by this anyOtherElement.

public transient Locator
source

where did this reference is written in the source file.

Inherited from com.sun.msv.grammar.ElementExp:
contentModelignoreUndeclaredAttributes

Constructor Summary

AccessConstructor and Description
public
AnyOtherElementExp(Locator loc, String includeNamespace, String excludeNamespace)

creates "skelton" of AnyOtherElement.

Method Summary

Modifier and TypeMethod and Description
public boolean
getFeature(String feature)

Implements org.iso_relax.dispatcher.ElementDecl.getFeature.

looks up the value of a feature this method works like getFeature method of SAX.
public String
getName()

Implements org.iso_relax.dispatcher.ElementDecl.getName.

gets name of this rule.
public NameClass
public Object
getProperty(String property)

Implements org.iso_relax.dispatcher.ElementDecl.getProperty.

looks up the value of a property this method works like getProperty method of SAX.
protected void
wrapUp(Grammar owner, Expression pseudoContentModel, SchemaProvider provider, ErrorHandler errorHandler)

creates pseudo content model and name class.

Inherited from com.sun.msv.grammar.ElementExp:
calcEpsilonReducibilitycalcHashCodeequalsgetContentModelvisitvisitvisitvisit

Field Detail

excludeNamespaceback to summary
public final String excludeNamespace
includeNamespaceback to summary
public final String includeNamespace
nameClassback to summary
public NameClass nameClass

this name class matches all the namespaces that are accepted by this anyOtherElement. this field is set by bind method.

sourceback to summary
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.

Constructor Detail

AnyOtherElementExpback to summary
public AnyOtherElementExp(Locator loc, String includeNamespace, String excludeNamespace)

creates "skelton" of AnyOtherElement. pseudo content model and name class must be supplied separately.

Method Detail

getFeatureback to summary
public boolean getFeature(String feature) throws SAXNotRecognizedException

Implements org.iso_relax.dispatcher.ElementDecl.getFeature.

Doc from org.iso_relax.dispatcher.ElementDecl.getFeature.

looks up the value of a feature this method works like getFeature method of SAX. featureName is a fully-qualified URI. Implementators are encouraged to invent their own features, by using their own URIs.

getNameback to summary
public String getName()

Implements org.iso_relax.dispatcher.ElementDecl.getName.

Doc from org.iso_relax.dispatcher.ElementDecl.getName.

gets name of this rule. every ElementDecl has a unique name within the schema.

getNameClassback to summary
public NameClass getNameClass()

Implements abstract com.sun.msv.grammar.ElementExp.getNameClass.

Implements com.sun.msv.grammar.NameClassAndExpression.getNameClass.

Doc from com.sun.msv.grammar.ElementExp.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.

getPropertyback to summary
public Object getProperty(String property) throws SAXNotRecognizedException

Implements org.iso_relax.dispatcher.ElementDecl.getProperty.

Doc from org.iso_relax.dispatcher.ElementDecl.getProperty.

looks up the value of a property this method works like getProperty method of SAX. propertyName is a fully-qualified URI. Implementators are encouraged to invent their own properties, by using their own URIs.

wrapUpback to summary
protected void wrapUp(Grammar owner, Expression pseudoContentModel, 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.