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

public Class ExternalElementExp

extends ElementExp
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
org.iso_relax.dispatcher.ElementDecl, org.xml.sax.Locator, com.sun.msv.grammar.ElementExp, .Expression, .ExpressionPool, .NameClass, .NamespaceNameClass

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

Field Summary

Modifier and TypeField and Description
private final NamespaceNameClass
nameClass

NamespaceNameClass object that matchs this namespace.

public final String
namespaceURI

namespace URI that this ExternalElementExp belongs to.

public ElementDecl
rule

imported ElementDecl object that actually validates this element.

public final String
ruleName

name of the imported Rule

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
ExternalElementExp(ExpressionPool pool, String namespaceURI, String ruleName, Locator loc)

Method Summary

Modifier and TypeMethod and Description
public NameClass
Inherited from com.sun.msv.grammar.ElementExp:
calcEpsilonReducibilitycalcHashCodeequalsgetContentModelvisitvisitvisitvisit

Field Detail

nameClassback to summary
private final NamespaceNameClass nameClass

NamespaceNameClass object that matchs this namespace.

namespaceURIback to summary
public final String namespaceURI

namespace URI that this ExternalElementExp belongs to.

ruleback to summary
public ElementDecl rule

imported ElementDecl object that actually validates this element. this variable is set during binding phase.

ruleNameback to summary
public final String ruleName

name of the imported Rule

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

ExternalElementExpback to summary
public ExternalElementExp(ExpressionPool pool, String namespaceURI, String ruleName, Locator loc)

Method Detail

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.