com.sun.msv.grammar
Class ValueExp

java.lang.Object
  extended bycom.sun.msv.grammar.Expression
      extended bycom.sun.msv.grammar.ValueExp
All Implemented Interfaces:
DataOrValueExp, java.io.Serializable

public final class ValueExp
extends Expression
implements DataOrValueExp

Expression that matchs a particular value of a Datatype.

Author:
Kohsuke KAWAGUCHI
See Also:
Serialized Form

Field Summary
 org.relaxng.datatype.Datatype dt
          Datatype object that is used to test the equality.
 StringPair name
          name of this datatype.
 java.lang.Object value
          This expression matches this value only.
 
Fields inherited from class com.sun.msv.grammar.Expression
anyString, epsilon, nullSet, verifierTag
 
Method Summary
 boolean equals(java.lang.Object o)
           
 StringPair getName()
           
 org.relaxng.datatype.Datatype getType()
           
 java.lang.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
getExpandedExp, hashCode, isEpsilonReducible, peelOccurence, visit, visit, visit, visit
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dt

public final org.relaxng.datatype.Datatype dt
Datatype object that is used to test the equality.


name

public final StringPair name
name of this datatype. The value of this field is not considered as significant. When two TypedStringExps share the same Datatype object, then they are unified even if they have different names.


value

public final java.lang.Object value
This expression matches this value only.

Method Detail

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in class Expression

getName

public StringPair getName()
Specified by:
getName in interface DataOrValueExp

getType

public org.relaxng.datatype.Datatype getType()
Specified by:
getType in interface DataOrValueExp

visit

public java.lang.Object visit(ExpressionVisitor visitor)
Specified by:
visit in class Expression

visit

public boolean visit(ExpressionVisitorBoolean visitor)
Specified by:
visit in class Expression

visit

public Expression visit(ExpressionVisitorExpression visitor)
Specified by:
visit in class Expression

visit

public void visit(ExpressionVisitorVoid visitor)
Specified by:
visit in class Expression


Copyright © 2001-2003 Sun Microsystems, Inc. Documenation generated April 26 2005.