com.openindex.openestate.impl
Class CustomValueImpl

java.lang.Object
  extended by com.openindex.openestate.impl.AbstractImplItem
      extended by com.openindex.openestate.impl.CustomValueImpl
All Implemented Interfaces:
SerializableXmlType

public class CustomValueImpl
extends AbstractImplItem
implements SerializableXmlType

Implementierung eines benutzer-definierten Attributes.
$Id: CustomValueImpl.java 1829 2012-10-14 14:24:52Z andy $

Author:
Andreas Rudolph

Field Summary
static int BOOLEAN
           
static int DATE
           
static int DATETIME
           
static int DECIMAL
           
static int INTEGER
           
static int STRING
           
static int TEXT
           
static int TIME
           
static int UNDEFINED
          Value-Types
static int URL
           
static String XML_ATTRIB_KEY
          XML-Attributes
static String XML_ELEMENT_BOOLEAN
          XML-Elememts
static String XML_ELEMENT_DATE
           
static String XML_ELEMENT_DATETIME
           
static String XML_ELEMENT_DECIMAL
           
static String XML_ELEMENT_INTEGER
           
static String XML_ELEMENT_STRING
           
static String XML_ELEMENT_TEXT
           
static String XML_ELEMENT_TIME
           
static String XML_ELEMENT_URL
           
 
Constructor Summary
CustomValueImpl()
           
CustomValueImpl(int type)
           
CustomValueImpl(String key, Object value, int type)
           
 
Method Summary
 Boolean getBoolean()
           
 Date getDate()
           
 Date getDateTime()
           
 BigDecimal getDecimal()
           
 BigInteger getInteger()
           
 Object getObject()
           
 String getObjectKey()
           
 int getObjectType()
           
 String getString()
           
 String getText()
           
 Date getTime()
           
 URL getUrl()
           
 boolean isBoolean()
           
 boolean isDate()
           
 boolean isDateTime()
           
 boolean isDecimal()
           
 boolean isInteger()
           
 boolean isString()
           
 boolean isText()
           
 boolean isTime()
           
 boolean isUrl()
           
 void readFromXml(org.dom4j.Element node)
           
 void serializeToXml(org.dom4j.Element node)
           
 void setObject(Object object, int type)
           
 void setObjectKey(String key)
           
 
Methods inherited from class com.openindex.openestate.impl.AbstractImplItem
getValue, getValue, getValues, merge, putValue, selectAttribute, selectAttribute, selectAttributeAsBoolean, selectAttributeAsBoolean, selectAttributeAsCurrency, selectAttributeAsCurrency, selectAttributeAsDate, selectAttributeAsDate, selectAttributeAsDateTime, selectAttributeAsDateTime, selectAttributeAsDouble, selectAttributeAsDouble, selectAttributeAsFloat, selectAttributeAsFloat, selectAttributeAsURL, selectAttributeAsURL, selectChildElements
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNDEFINED

public static final int UNDEFINED
Value-Types

See Also:
Constant Field Values

BOOLEAN

public static final int BOOLEAN
See Also:
Constant Field Values

DATE

public static final int DATE
See Also:
Constant Field Values

DATETIME

public static final int DATETIME
See Also:
Constant Field Values

DECIMAL

public static final int DECIMAL
See Also:
Constant Field Values

INTEGER

public static final int INTEGER
See Also:
Constant Field Values

STRING

public static final int STRING
See Also:
Constant Field Values

TEXT

public static final int TEXT
See Also:
Constant Field Values

TIME

public static final int TIME
See Also:
Constant Field Values

URL

public static final int URL
See Also:
Constant Field Values

XML_ATTRIB_KEY

public static final String XML_ATTRIB_KEY
XML-Attributes

See Also:
Constant Field Values

XML_ELEMENT_BOOLEAN

public static final String XML_ELEMENT_BOOLEAN
XML-Elememts

See Also:
Constant Field Values

XML_ELEMENT_DATE

public static final String XML_ELEMENT_DATE
See Also:
Constant Field Values

XML_ELEMENT_DATETIME

public static final String XML_ELEMENT_DATETIME
See Also:
Constant Field Values

XML_ELEMENT_DECIMAL

public static final String XML_ELEMENT_DECIMAL
See Also:
Constant Field Values

XML_ELEMENT_INTEGER

public static final String XML_ELEMENT_INTEGER
See Also:
Constant Field Values

XML_ELEMENT_STRING

public static final String XML_ELEMENT_STRING
See Also:
Constant Field Values

XML_ELEMENT_TEXT

public static final String XML_ELEMENT_TEXT
See Also:
Constant Field Values

XML_ELEMENT_TIME

public static final String XML_ELEMENT_TIME
See Also:
Constant Field Values

XML_ELEMENT_URL

public static final String XML_ELEMENT_URL
See Also:
Constant Field Values
Constructor Detail

CustomValueImpl

public CustomValueImpl()

CustomValueImpl

public CustomValueImpl(int type)

CustomValueImpl

public CustomValueImpl(String key,
                       Object value,
                       int type)
Method Detail

getBoolean

public Boolean getBoolean()

getDate

public Date getDate()

getDateTime

public Date getDateTime()

getDecimal

public BigDecimal getDecimal()

getInteger

public BigInteger getInteger()

getObject

public Object getObject()

getObjectKey

public String getObjectKey()

getObjectType

public int getObjectType()

getString

public String getString()

getText

public String getText()

getTime

public Date getTime()

getUrl

public URL getUrl()

isBoolean

public boolean isBoolean()

isDate

public boolean isDate()

isDateTime

public boolean isDateTime()

isDecimal

public boolean isDecimal()

isInteger

public boolean isInteger()

isString

public boolean isString()

isText

public boolean isText()

isTime

public boolean isTime()

isUrl

public boolean isUrl()

readFromXml

public void readFromXml(org.dom4j.Element node)
                 throws org.dom4j.DocumentException
Specified by:
readFromXml in interface SerializableXmlType
Throws:
org.dom4j.DocumentException

serializeToXml

public void serializeToXml(org.dom4j.Element node)
                    throws org.dom4j.DocumentException
Specified by:
serializeToXml in interface SerializableXmlType
Throws:
org.dom4j.DocumentException

setObject

public void setObject(Object object,
                      int type)

setObjectKey

public void setObjectKey(String key)


Copyright © 2012 OpenEstate. All Rights Reserved.