edu.sc.seis.sod.validator.model.datatype
Class NonnegativeIntegerDatatype

java.lang.Object
  extended by edu.sc.seis.sod.validator.model.datatype.NonnegativeIntegerDatatype
All Implemented Interfaces:
ModelDatatype, org.relaxng.datatype.Datatype

public class NonnegativeIntegerDatatype
extends java.lang.Object
implements ModelDatatype


Field Summary
 
Fields inherited from interface org.relaxng.datatype.Datatype
ID_TYPE_ID, ID_TYPE_IDREF, ID_TYPE_IDREFS, ID_TYPE_NULL
 
Constructor Summary
NonnegativeIntegerDatatype()
           
 
Method Summary
 void checkValid(java.lang.String arg0, org.relaxng.datatype.ValidationContext arg1)
           
 org.relaxng.datatype.DatatypeStreamingValidator createStreamingValidator(org.relaxng.datatype.ValidationContext arg0)
           
 java.lang.Object createValue(java.lang.String arg0, org.relaxng.datatype.ValidationContext arg1)
           
 java.lang.String getDescription()
           
 java.lang.String getExampleValue()
           
 int getIdType()
           
 boolean isContextDependent()
           
 boolean isValid(java.lang.String arg0, org.relaxng.datatype.ValidationContext arg1)
           
 boolean sameValue(java.lang.Object arg0, java.lang.Object arg1)
           
 java.lang.String toString()
           
 int valueHashCode(java.lang.Object arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NonnegativeIntegerDatatype

public NonnegativeIntegerDatatype()
Method Detail

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface ModelDatatype

getExampleValue

public java.lang.String getExampleValue()
Specified by:
getExampleValue in interface ModelDatatype

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isValid

public boolean isValid(java.lang.String arg0,
                       org.relaxng.datatype.ValidationContext arg1)
Specified by:
isValid in interface org.relaxng.datatype.Datatype

checkValid

public void checkValid(java.lang.String arg0,
                       org.relaxng.datatype.ValidationContext arg1)
                throws org.relaxng.datatype.DatatypeException
Specified by:
checkValid in interface org.relaxng.datatype.Datatype
Throws:
org.relaxng.datatype.DatatypeException

createStreamingValidator

public org.relaxng.datatype.DatatypeStreamingValidator createStreamingValidator(org.relaxng.datatype.ValidationContext arg0)
Specified by:
createStreamingValidator in interface org.relaxng.datatype.Datatype

createValue

public java.lang.Object createValue(java.lang.String arg0,
                                    org.relaxng.datatype.ValidationContext arg1)
Specified by:
createValue in interface org.relaxng.datatype.Datatype

sameValue

public boolean sameValue(java.lang.Object arg0,
                         java.lang.Object arg1)
Specified by:
sameValue in interface org.relaxng.datatype.Datatype

valueHashCode

public int valueHashCode(java.lang.Object arg0)
Specified by:
valueHashCode in interface org.relaxng.datatype.Datatype

getIdType

public int getIdType()
Specified by:
getIdType in interface org.relaxng.datatype.Datatype

isContextDependent

public boolean isContextDependent()
Specified by:
isContextDependent in interface org.relaxng.datatype.Datatype