com.sun.msv.relaxns.grammar
Class ExternalElementExp
- NameClassAndExpression, Serializable
public class ExternalElementExp
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.
String | namespaceURI - namespace URI that this ExternalElementExp belongs to.
|
ElementDecl | rule - imported ElementDecl object that actually validates this element.
|
String | ruleName - name of the imported Rule
|
Locator | source - where did this reference is written in the source file.
|
equals , getExpandedExp , hashCode , isEpsilonReducible , peelOccurence , visit , visit , visit , visit , visit , visit , visit , visit |
namespaceURI
public final String namespaceURI
namespace URI that this ExternalElementExp belongs to.
rule
public ElementDecl rule
imported ElementDecl object that actually validates this element.
this variable is set during binding phase.
ruleName
public final String ruleName
name of the imported Rule
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.
ExternalElementExp
public ExternalElementExp(ExpressionPool pool,
String namespaceURI,
String ruleName,
Locator loc)
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.
- getNameClass in interface NameClassAndExpression
- getNameClass in interface ElementExp