com.virtualweaver.xotics.datamodel.datatype
Class XsdAnySimpleType

java.lang.Object
  extended bycom.virtualweaver.xotics.datamodel.datatype.XsdAnySimpleType
All Implemented Interfaces:
XoDataType, XsdDataType
Direct Known Subclasses:
XsdAnyURI, XsdBase64Binary, XsdBoolean, XsdByte, XsdDecimal, XsdDouble, XsdDuration, XsdFloat, XsdGC, XsdHexBinary, XsdInt, XsdInteger, XsdLanguage, XsdLong, XsdShort, XsdString

public abstract class XsdAnySimpleType
extends java.lang.Object
implements XsdDataType

This abstract class is the base class for all XS datatype implementations.

Version:
4.1

Field Summary
static java.lang.String NAME
           
protected  com.virtualweaver.xotics.datamodel.datatype.XdtRestrictionSupport support
           
protected  java.lang.Object value
           
 
Fields inherited from interface com.virtualweaver.xotics.datamodel.datatype.XsdDataType
XSD_NS_REF
 
Constructor Summary
XsdAnySimpleType()
           
 
Method Summary
 boolean equals(java.lang.Object eo)
           
static java.lang.String getAsString(java.lang.Object v)
           
static int getFractionDigit()
           
abstract  java.lang.Class getJavaTypeClass()
          All XSD datatypes are wrappers for a java object value.
 java.lang.Object getJavaTypeValue()
          All XSD datatypes are wrappers for a java object value.
static int getLength()
           
 java.lang.String getLocalName()
          Returns the local name of the datatype. this method is used to identify any XSD datatype by a string, i.e. for instanciation in XPath requests.
static java.lang.Object getMaxExclusive()
           
static java.lang.Object getMaxInclusive()
           
static int getMaxLength()
           
static java.lang.Object getMinExclusive()
           
static java.lang.Object getMinInclusive()
           
static int getMinLength()
           
 java.lang.String getNameSpace()
          Returns the namespace of the datatype.
static java.util.regex.Pattern getPattern()
           
static int getTotalDigit()
           
static byte getWhiteSpace()
           
protected  void matchFractionDigit(int fd)
           
protected  void matchLength(int len)
           
protected  void matchMaxExclusive(java.lang.Object o)
           
protected  void matchMaxInclusive(java.lang.Object o)
           
protected  void matchMaxLength(int len)
           
protected  void matchMinExclusive(java.lang.Object o)
           
protected  void matchMinInclusive(java.lang.Object o)
           
protected  void matchMinLength(int len)
           
protected  void matchPattern(java.util.regex.Pattern pt)
           
protected  void matchTotalDigit(int td)
           
 java.lang.String toString()
           
protected static java.lang.String whiteSpace(java.lang.String lexStr, byte kind)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME

public static java.lang.String NAME

value

protected java.lang.Object value

support

protected com.virtualweaver.xotics.datamodel.datatype.XdtRestrictionSupport support
Constructor Detail

XsdAnySimpleType

public XsdAnySimpleType()
Method Detail

getJavaTypeClass

public abstract java.lang.Class getJavaTypeClass()
Description copied from interface: XsdDataType
All XSD datatypes are wrappers for a java object value. This method gives the class of the java type of the XSD datatype value.

Specified by:
getJavaTypeClass in interface XsdDataType

getJavaTypeValue

public java.lang.Object getJavaTypeValue()
Description copied from interface: XsdDataType
All XSD datatypes are wrappers for a java object value. This method gives the java value object of the XSD datatype.

Specified by:
getJavaTypeValue in interface XsdDataType

getLocalName

public java.lang.String getLocalName()
Description copied from interface: XsdDataType
Returns the local name of the datatype. this method is used to identify any XSD datatype by a string, i.e. for instanciation in XPath requests.

Specified by:
getLocalName in interface XsdDataType

getNameSpace

public java.lang.String getNameSpace()
Description copied from interface: XsdDataType
Returns the namespace of the datatype.

Specified by:
getNameSpace in interface XsdDataType

toString

public java.lang.String toString()

getAsString

public static java.lang.String getAsString(java.lang.Object v)

equals

public boolean equals(java.lang.Object eo)

matchFractionDigit

protected void matchFractionDigit(int fd)
                           throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

matchTotalDigit

protected void matchTotalDigit(int td)
                        throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

matchMaxInclusive

protected void matchMaxInclusive(java.lang.Object o)
                          throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

matchMinInclusive

protected void matchMinInclusive(java.lang.Object o)
                          throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

matchMaxExclusive

protected void matchMaxExclusive(java.lang.Object o)
                          throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

matchMinExclusive

protected void matchMinExclusive(java.lang.Object o)
                          throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

matchLength

protected void matchLength(int len)
                    throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

matchMinLength

protected void matchMinLength(int len)
                       throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

matchMaxLength

protected void matchMaxLength(int len)
                       throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

matchPattern

protected void matchPattern(java.util.regex.Pattern pt)
                     throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

whiteSpace

protected static java.lang.String whiteSpace(java.lang.String lexStr,
                                             byte kind)
                                      throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

getFractionDigit

public static int getFractionDigit()

getTotalDigit

public static int getTotalDigit()

getMaxExclusive

public static java.lang.Object getMaxExclusive()

getMaxInclusive

public static java.lang.Object getMaxInclusive()

getMinExclusive

public static java.lang.Object getMinExclusive()

getMinInclusive

public static java.lang.Object getMinInclusive()

getLength

public static int getLength()

getMaxLength

public static int getMaxLength()

getMinLength

public static int getMinLength()

getPattern

public static java.util.regex.Pattern getPattern()

getWhiteSpace

public static byte getWhiteSpace()