|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.BitHelper
com.tangosol.util.ExternalizableHelper
com.tangosol.run.xml.PropertyAdapter
com.tangosol.run.xml.SimpleAdapter
public abstract class SimpleAdapter
A SimpleAdapter supports Java intrinsic types and a common set of Java classes: java.lang.Boolean java.lang.Byte java.lang.Character java.lang.Short java.lang.Integer java.lang.Long java.lang.Float java.lang.Double java.lang.String java.math.BigDecimal java.math.BigInteger java.sql.Date java.sql.Time java.sql.Timestamp java.util.Date
Nested Class Summary | |
---|---|
static class |
SimpleAdapter.BigDecimalAdapter A simple property adapter for BigDecimal. |
static class |
SimpleAdapter.BigIntegerAdapter A simple property adapter for BigInteger. |
static class |
SimpleAdapter.BooleanAdapter A simple property adapter for boolean. |
static class |
SimpleAdapter.ByteAdapter A simple property adapter for byte. |
static class |
SimpleAdapter.CharAdapter A simple property adapter for char. |
static class |
SimpleAdapter.DateAdapter A simple property adapter for Date. |
static class |
SimpleAdapter.DoubleAdapter A simple property adapter for double. |
static class |
SimpleAdapter.FloatAdapter A simple property adapter for float. |
static class |
SimpleAdapter.IntAdapter A simple property adapter for int. |
static class |
SimpleAdapter.LongAdapter A simple property adapter for long. |
static class |
SimpleAdapter.OldDateAdapter A simple property adapter for the Date class from the java/util package. |
static class |
SimpleAdapter.ShortAdapter A simple property adapter for short. |
static class |
SimpleAdapter.StringAdapter A simple property adapter for String. |
static class |
SimpleAdapter.SystemTimeAdapter A simple property adapter for Java long and java.lang.Long values that is string-formatted as a date/time, assuming that the long value is actualy a system time. |
static class |
SimpleAdapter.TimeAdapter A simple property adapter for Time. |
static class |
SimpleAdapter.TimestampAdapter A simple property adapter for Timestamp. |
Field Summary |
---|
Fields inherited from class com.tangosol.run.xml.PropertyAdapter |
---|
m_clzType, m_fAttribute, m_infoBean, m_methodClone, m_methodGet, m_methodSet, m_sName, m_sNmsPrefix, m_sNmsUri, m_sXml, NOPARAMS |
Constructor Summary | |
---|---|
SimpleAdapter(XmlBean.BeanInfo infoBean, Class clzType, String sName, String sXml, XmlElement xml) Construct a SimpleAdapter. |
Method Summary | |
---|---|
static String |
decodeString(String sUri) Parse escaped string into a string. |
static String |
encodeString(String s) Parse escaped string into a string. |
Object |
fromUri(String sUri) Deserialize an object from a URI element. |
Object |
fromXml(XmlElement xml) Deserialize an object from an XML element. |
boolean |
isCloneRequired() Determine if the property value must be deep-cloned. |
protected static String |
parseNumber(String sValue) Parse parenthesized number string into a negative number string. |
String |
toUri(Object o) Serialize an object into a URI element. |
XmlElement |
toXml(Object o) Serialize an object into an XML element. |
Methods inherited from class com.tangosol.run.xml.PropertyAdapter |
---|
clone, equalsValue, findAttribute, findElement, get, getAccessor, getBeanInfo, getCloner, getElements, getLocalXmlName, getMutator, getName, getNamespacePrefix, getNamespaceUri, getType, getXmlName, hash, isAnonymous, isAttribute, isElementMatch, isEmpty, readExternal, readXml, set, setNamespacePrefix, toString, writeExternal, writeXml |
Methods inherited from class com.tangosol.util.BitHelper |
---|
countBits, countBits, countBits, indexOfLSB, indexOfLSB, indexOfLSB, indexOfMSB, indexOfMSB, indexOfMSB, rotateLeft, rotateLeft, rotateLeft, rotateRight, rotateRight, rotateRight, toBitString, toBitString, toBitString |
Constructor Detail |
---|
public SimpleAdapter(XmlBean.BeanInfo infoBean, Class clzType, String sName, String sXml, XmlElement xml)
infoBean
- BeanInfo for a bean containing this propertyclzType
- the type of the propertysName
- the property namesXml
- the XML tag namexml
- additional XML informationMethod Detail |
---|
public boolean isCloneRequired()
PropertyAdapter
isCloneRequired
in class PropertyAdapter
public Object fromXml(XmlElement xml)
fromXml
in class PropertyAdapter
xml
- the XML element to deserialize frompublic XmlElement toXml(Object o)
toXml
in class PropertyAdapter
o
- the object to serializepublic Object fromUri(String sUri)
fromUri
in class PropertyAdapter
sUri
- the URI element to deserialize fromUnsupportedOperationException
- if the property cannot be read from a URI elementpublic String toUri(Object o)
toUri
in class PropertyAdapter
o
- the object to serializeUnsupportedOperationException
- if the property cannot be written to a URI elementprotected static String parseNumber(String sValue)
public static String decodeString(String sUri)
public static String encodeString(String s)
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |