|
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.IterableAdapter
com.tangosol.run.xml.PrimitiveArrayAdapter
public abstract class PrimitiveArrayAdapter
A PrimitiveArrayAdapter supports arrays of primitive types, such as "int", "char", etc.
Nested Class Summary | |
---|---|
static class |
PrimitiveArrayAdapter.BooleanArrayAdapter A PropertyAdapter supporting boolean[]. |
static class |
PrimitiveArrayAdapter.ByteArrayAdapter A PropertyAdapter supporting byte[]. |
static class |
PrimitiveArrayAdapter.CharArrayAdapter A PropertyAdapter supporting char[]. |
static class |
PrimitiveArrayAdapter.DoubleArrayAdapter A PropertyAdapter supporting double[]. |
static class |
PrimitiveArrayAdapter.FloatArrayAdapter A PropertyAdapter supporting float[]. |
static class |
PrimitiveArrayAdapter.IntArrayAdapter A PropertyAdapter supporting int[]. |
static class |
PrimitiveArrayAdapter.LongArrayAdapter A PropertyAdapter supporting long[]. |
static class |
PrimitiveArrayAdapter.ShortArrayAdapter A PropertyAdapter supporting short[]. |
Field Summary |
---|
Fields inherited from class com.tangosol.run.xml.IterableAdapter |
---|
m_fEmptyIsNull, m_fSparse, m_sElement |
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 | |
---|---|
PrimitiveArrayAdapter(XmlBean.BeanInfo infoBean, Class clzType, String sName, String sXml, XmlElement xml) Construct a PrimitiveArrayAdapter. |
Method Summary | |
---|---|
abstract Object |
clone(Object o) Make a clone of the passed object. |
abstract boolean |
equalsValue(Object o1, Object o2) Compare the two passed objects for equality. |
Object |
fromXml(XmlElement xml) Deserialize an object from an XML element. |
Object |
fromXmlString(XmlElement xml) Deserialize a primitive array from a single XML element. |
abstract int |
hash(Object o) Compute a hash code for the passed object. |
boolean |
isStringable() |
abstract Object |
readArray(Iterator iter, XmlElement xml, boolean fNested) Read an array of primitive values. |
protected Object |
readElements(XmlElement xml) |
abstract Object |
readSparseArray(Iterator iter, int c) Read a sparse array of primitive values. |
Object |
readXml(XmlElement xml) Deserialize an object from XML. |
XmlElement |
toXml(Object o) Serialize an object into an XML element. |
XmlElement |
toXmlString(Object o) Serialize a primitive array into a single XML element. |
abstract void |
writeArray(XmlElement xml, Object o, String sElement) Write a sparse array of primitive values. |
protected void |
writeElements(XmlElement xml, Object o) |
abstract void |
writeSparseArray(XmlElement xml, Object o, String sElement) Write a sparse array of primitive values. |
void |
writeXml(XmlElement xml, Object o) Serialize an object into an XML element. |
Methods inherited from class com.tangosol.run.xml.IterableAdapter |
---|
findAdapter, getElementName, isCloneRequired, isEmptyIsNull, isNested, isSparse |
Methods inherited from class com.tangosol.run.xml.PropertyAdapter |
---|
findAttribute, findElement, fromUri, get, getAccessor, getBeanInfo, getCloner, getElements, getLocalXmlName, getMutator, getName, getNamespacePrefix, getNamespaceUri, getType, getXmlName, isAnonymous, isAttribute, isElementMatch, isEmpty, readExternal, set, setNamespacePrefix, toString, toUri, writeExternal |
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 PrimitiveArrayAdapter(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 isStringable()
public abstract int hash(Object o)
hash
in class PropertyAdapter
o
- the object to compute a hash code forpublic abstract boolean equalsValue(Object o1, Object o2)
equalsValue
in class PropertyAdapter
o1
- the first objecto2
- the second objectpublic abstract Object clone(Object o)
clone
in class PropertyAdapter
o
- the object to clonepublic Object fromXml(XmlElement xml)
fromXml
in class IterableAdapter
xml
- the XML element to deserialize fromUnsupportedOperationException
- if the property cannot be read from a single XML elementpublic XmlElement toXml(Object o)
toXml
in class IterableAdapter
o
- the object to serializeUnsupportedOperationException
- if the property cannot be written to a single XML elementpublic Object readXml(XmlElement xml)
readXml
in class PropertyAdapter
xml
- the XML element containing the XML elements to deserialize frompublic void writeXml(XmlElement xml, Object o)
writeXml
in class PropertyAdapter
xml
- the XML element containing the XML elements to serialize too
- the object to serialize (may be null)protected Object readElements(XmlElement xml)
readElements
in class IterableAdapter
xml
- the XML element containing the XML elements to deserialize fromprotected void writeElements(XmlElement xml, Object o)
writeElements
in class IterableAdapter
xml
- the XML element to which the iterable elements are writteno
- the object to serialize (not null)public Object fromXmlString(XmlElement xml)
xml
- the XML element to deserialize from (not null)UnsupportedOperationException
- if the property cannot be read from a single XML elementpublic XmlElement toXmlString(Object o)
o
- the object to serialize (not null)UnsupportedOperationException
- if the property cannot be written to a single XML elementpublic abstract Object readSparseArray(Iterator iter, int c)
iter
- the iterator of XmlElement objectsc
- the size of the arraypublic abstract Object readArray(Iterator iter, XmlElement xml, boolean fNested)
iter
- the iterator of XmlElement objectsxml
- the XmlElement from which the iterator was obtainedfNested
- true if the array is nested under an array tagpublic abstract void writeSparseArray(XmlElement xml, Object o, String sElement)
xml
- the XmlElement that will contain the arrayo
- the primitive arraysElement
- the name of the element containing an element valuepublic abstract void writeArray(XmlElement xml, Object o, String sElement)
xml
- the XmlElement that will contain the array elementso
- the primitive arraysElement
- the name of the element containing an element value
|
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 |