com.sun.msv.grammar
Class KeyExp

java.lang.Object
  |
  +--com.sun.msv.grammar.Expression
        |
        +--com.sun.msv.grammar.UnaryExp
              |
              +--com.sun.msv.grammar.KeyExp
All Implemented Interfaces:
Serializable

public final class KeyExp
extends UnaryExp

<key>/<keyref> of RELAX NG.

Author:
Kohsuke KAWAGUCHI
See Also:
Serialized Form

Field Summary
 StringPair dataTypeName
          name of the underlying datatype.
 boolean isKey
          true if this is a key, false if this is a keyref.
 StringPair name
          symbol space of this key.
 
Fields inherited from class com.sun.msv.grammar.UnaryExp
exp
 
Fields inherited from class com.sun.msv.grammar.Expression
anyString, epsilon, nullSet, verifierTag
 
Method Summary
 boolean equals(Object o)
           
 Object visit(ExpressionVisitor visitor)
           
 boolean visit(ExpressionVisitorBoolean visitor)
           
 Expression visit(ExpressionVisitorExpression visitor)
           
 void visit(ExpressionVisitorVoid visitor)
           
 
Methods inherited from class com.sun.msv.grammar.Expression
hashCode, isEpsilonReducible, visit, visit, visit, visit
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public final StringPair name
symbol space of this key.

dataTypeName

public transient StringPair dataTypeName
name of the underlying datatype. this value should be computed by the grammar parser, and the consistency should be also checked by the parser.

isKey

public final boolean isKey
true if this is a key, false if this is a keyref.
Method Detail

equals

public boolean equals(Object o)
Overrides:
equals in class UnaryExp

visit

public Object visit(ExpressionVisitor visitor)
Overrides:
visit in class Expression

visit

public Expression visit(ExpressionVisitorExpression visitor)
Overrides:
visit in class Expression

visit

public boolean visit(ExpressionVisitorBoolean visitor)
Overrides:
visit in class Expression

visit

public void visit(ExpressionVisitorVoid visitor)
Overrides:
visit in class Expression