Class NonnegativeIntegerDatatype

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

public class NonnegativeIntegerDatatype extends Object implements ModelDatatype
  • Constructor Details

    • NonnegativeIntegerDatatype

      public NonnegativeIntegerDatatype()
  • Method Details

    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface ModelDatatype
    • getExampleValue

      public String getExampleValue()
      Specified by:
      getExampleValue in interface ModelDatatype
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isValid

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

      public void checkValid(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 Object createValue(String arg0, org.relaxng.datatype.ValidationContext arg1)
      Specified by:
      createValue in interface org.relaxng.datatype.Datatype
    • sameValue

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

      public int valueHashCode(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