com.jmex.xml.types
Class SchemaString

java.lang.Object
  extended by com.jmex.xml.types.SchemaString
All Implemented Interfaces:
SchemaType, SchemaTypeCalendar, SchemaTypeNumber, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable
Direct Known Subclasses:
SchemaNormalizedString

public class SchemaString
extends java.lang.Object
implements SchemaTypeNumber, SchemaTypeCalendar

See Also:
Serialized Form

Field Summary
protected  boolean isempty
           
protected  boolean isnull
           
protected  java.lang.String value
           
 
Fields inherited from interface com.jmex.xml.types.SchemaTypeNumber
NUMERIC_VALUE_BIGDECIMAL, NUMERIC_VALUE_BIGINTEGER, NUMERIC_VALUE_DOUBLE, NUMERIC_VALUE_FLOAT, NUMERIC_VALUE_INT, NUMERIC_VALUE_LONG
 
Fields inherited from interface com.jmex.xml.types.SchemaTypeCalendar
CALENDAR_VALUE_DATE, CALENDAR_VALUE_DATETIME, CALENDAR_VALUE_DURATION, CALENDAR_VALUE_TIME, CALENDAR_VALUE_UNDEFINED
 
Constructor Summary
SchemaString()
           
SchemaString(SchemaString newvalue)
           
SchemaString(SchemaType newvalue)
           
SchemaString(SchemaTypeCalendar newvalue)
           
SchemaString(SchemaTypeNumber newvalue)
           
SchemaString(java.lang.String newvalue)
           
 
Method Summary
 void assign(SchemaType newvalue)
           
 java.math.BigDecimal bigDecimalValue()
           
 java.math.BigInteger bigIntegerValue()
           
 boolean booleanValue()
           
 int calendarType()
           
 java.lang.Object clone()
           
 int compareTo(java.lang.Object obj)
           
 int compareTo(SchemaString obj)
           
 SchemaDateTime dateTimeValue()
           
 SchemaDate dateValue()
           
 double doubleValue()
           
 SchemaDuration durationValue()
           
 boolean equals(java.lang.Object obj)
           
 float floatValue()
           
 java.lang.String getValue()
           
 int hashCode()
           
 int intValue()
           
 boolean isEmpty()
           
 boolean isNull()
           
 boolean isValueNumeric()
           
 int length()
           
 long longValue()
           
 int numericType()
           
 void parse(java.lang.String newvalue)
           
 void setEmpty()
           
 void setNull()
           
 void setValue(java.lang.String newvalue)
           
 SchemaTime timeValue()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

protected java.lang.String value

isempty

protected boolean isempty

isnull

protected boolean isnull
Constructor Detail

SchemaString

public SchemaString()

SchemaString

public SchemaString(SchemaString newvalue)

SchemaString

public SchemaString(java.lang.String newvalue)

SchemaString

public SchemaString(SchemaType newvalue)

SchemaString

public SchemaString(SchemaTypeNumber newvalue)

SchemaString

public SchemaString(SchemaTypeCalendar newvalue)
Method Detail

getValue

public java.lang.String getValue()

setValue

public void setValue(java.lang.String newvalue)

parse

public void parse(java.lang.String newvalue)
Specified by:
parse in interface SchemaType

assign

public void assign(SchemaType newvalue)

setNull

public void setNull()
Specified by:
setNull in interface SchemaType

setEmpty

public void setEmpty()
Specified by:
setEmpty in interface SchemaType

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()
Specified by:
toString in interface SchemaType
Overrides:
toString in class java.lang.Object

length

public int length()
Specified by:
length in interface SchemaType

booleanValue

public boolean booleanValue()
Specified by:
booleanValue in interface SchemaType

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface SchemaType

isNull

public boolean isNull()
Specified by:
isNull in interface SchemaType

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable

compareTo

public int compareTo(SchemaString obj)

isValueNumeric

public boolean isValueNumeric()

numericType

public int numericType()
Specified by:
numericType in interface SchemaTypeNumber

intValue

public int intValue()
Specified by:
intValue in interface SchemaTypeNumber

longValue

public long longValue()
Specified by:
longValue in interface SchemaTypeNumber

bigIntegerValue

public java.math.BigInteger bigIntegerValue()
Specified by:
bigIntegerValue in interface SchemaTypeNumber

floatValue

public float floatValue()
Specified by:
floatValue in interface SchemaTypeNumber

doubleValue

public double doubleValue()
Specified by:
doubleValue in interface SchemaTypeNumber

bigDecimalValue

public java.math.BigDecimal bigDecimalValue()
Specified by:
bigDecimalValue in interface SchemaTypeNumber

calendarType

public int calendarType()
Specified by:
calendarType in interface SchemaTypeCalendar

durationValue

public SchemaDuration durationValue()
Specified by:
durationValue in interface SchemaTypeCalendar

dateTimeValue

public SchemaDateTime dateTimeValue()
Specified by:
dateTimeValue in interface SchemaTypeCalendar

dateValue

public SchemaDate dateValue()
Specified by:
dateValue in interface SchemaTypeCalendar

timeValue

public SchemaTime timeValue()
Specified by:
timeValue in interface SchemaTypeCalendar