|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.run.xml.XmlBean.BeanInfo
public static class XmlBean.BeanInfo
A BeanInfo contains information about the XML bean and its properties. One BeanInfo will be created for each specific class of XmlBean.
Field Summary | |
---|---|
protected static java.lang.Class[] |
ADAPTER_INIT_PARAMS Parameters for finding the default adapter constructor. |
protected PropertyAdapter[] |
m_aAdapter The property adapters for the XML bean. |
protected java.lang.Class |
m_clzBean The class of the specific XML bean. |
protected boolean |
m_fDeepClone Specifies whether the XML bean requires a deep clone. |
protected int |
m_nBeanId Serialization ID for the XmlBean class. |
protected java.lang.String |
m_sName The XML element name for the XML bean. |
protected java.lang.String |
m_sNmsPrefix Namespace prefix. |
protected java.lang.String |
m_sNmsUri Namespace URI. |
protected static java.lang.Class[] |
NOPARAMS Parameters for finding no-parameter methods. |
protected static java.util.Map |
s_mapClassAdapters Map from the class of a property type to the class of the adapter that handles the type. |
protected static java.util.Map |
s_mapClassNames Map from type name / short class name to actual class instance. |
protected static java.util.Map |
s_mapPrimitiveNames Map from class of an intrinsic type to its JVM signature. |
Constructor Summary | |
---|---|
protected |
XmlBean.BeanInfo(java.lang.Class clzBean, XmlElement xml) Construct a BeanInfo. |
Method Summary | |
---|---|
PropertyAdapter |
findAdapter(java.lang.String sName) Find a property adapter instance for the specified property. |
PropertyAdapter[] |
getAdapters() Obtain the PropertyAdapter objects for the properties of this XML bean. |
int |
getBeanId() Get the serialization ID for the specific XML bean implementation. |
java.lang.String |
getName() Determine the element name that the XML bean will use when serializing to XML. |
java.lang.String |
getNamespacePrefix() Obtain the default namespace prefix for this XML bean. |
java.lang.String |
getNamespaceUri() Obtain the namespace URI for this XML bean. |
java.lang.Class |
getType() Get the class of the specific XML bean implementation. |
protected PropertyAdapter |
makeAdapter(java.lang.Class clz, java.lang.String sName, java.lang.String sXmlName, XmlElement xml) Generate a property adapter instance that will work on this bean class and will adapt for a property of the specified class and of the specified name. |
boolean |
requiresDeepClone() Determine if a clone of the XmlBean should be a deep clone, which typically means that at least one property value is mutable reference type. |
java.lang.Class |
resolveClass(java.lang.String sClass) Resolve a Class name into a Class object. |
void |
setNamespacePrefix(java.lang.String sPrefix) Set the default Namespace prefix for this XML bean. |
java.lang.String |
toString() Debugging support. |
Field Detail |
---|
protected java.lang.Class m_clzBean
protected java.lang.String m_sName
protected PropertyAdapter[] m_aAdapter
protected boolean m_fDeepClone
protected java.lang.String m_sNmsUri
protected java.lang.String m_sNmsPrefix
protected int m_nBeanId
protected static final java.lang.Class[] NOPARAMS
protected static java.lang.Class[] ADAPTER_INIT_PARAMS
protected static final java.util.Map s_mapClassNames
protected static final java.util.Map s_mapClassAdapters
protected static final java.util.Map s_mapPrimitiveNames
Constructor Detail |
---|
protected XmlBean.BeanInfo(java.lang.Class clzBean, XmlElement xml)
clzBean
- the class of the beanxml
- the xml descriptorMethod Detail |
---|
public java.lang.Class getType()
public int getBeanId()
public java.lang.String getName()
public java.lang.String getNamespaceUri()
public java.lang.String getNamespacePrefix()
public void setNamespacePrefix(java.lang.String sPrefix)
sPrefix
- the default namespace prefixpublic PropertyAdapter[] getAdapters()
public boolean requiresDeepClone()
protected PropertyAdapter makeAdapter(java.lang.Class clz, java.lang.String sName, java.lang.String sXmlName, XmlElement xml)
clz
- the class of the propertysName
- the property namesXmlName
- the corresponding element namexml
- additional XML informationpublic PropertyAdapter findAdapter(java.lang.String sName)
sName
- the property namepublic java.lang.Class resolveClass(java.lang.String sClass)
sClass
- the Class namepublic java.lang.String toString()
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |