|
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.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 Class[] |
ADAPTER_INIT_PARAMSParameters for finding the default adapter constructor. |
protected PropertyAdapter[] |
m_aAdapterThe property adapters for the XML bean. |
protected Class |
m_clzBeanThe class of the specific XML bean. |
protected boolean |
m_fDeepCloneSpecifies whether the XML bean requires a deep clone. |
protected int |
m_nBeanIdSerialization ID for the XmlBean class. |
protected String |
m_sNameThe XML element name for the XML bean. |
protected String |
m_sNmsPrefixNamespace prefix. |
protected String |
m_sNmsUriNamespace URI. |
protected static Class[] |
NOPARAMSParameters for finding no-parameter methods. |
protected static Map |
s_mapClassAdaptersMap from the class of a property type to the class of the adapter that handles the type. |
protected static Map |
s_mapClassNamesMap from type name / short class name to actual class instance. |
protected static Map |
s_mapPrimitiveNamesMap from class of an intrinsic type to its JVM signature. |
| Constructor Summary | |
|---|---|
protected |
XmlBean.BeanInfo(Class clzBean, XmlElement xml)Construct a BeanInfo. |
| Method Summary | |
|---|---|
PropertyAdapter |
findAdapter(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. |
String |
getName()Determine the element name that the XML bean will use when serializing to XML. |
String |
getNamespacePrefix()Obtain the default namespace prefix for this XML bean. |
String |
getNamespaceUri()Obtain the namespace URI for this XML bean. |
Class |
getType()Get the class of the specific XML bean implementation. |
protected PropertyAdapter |
makeAdapter(Class clz, String sName, 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. |
Class |
resolveClass(String sClass)Resolve a Class name into a Class object. |
void |
setNamespacePrefix(String sPrefix)Set the default Namespace prefix for this XML bean. |
String |
toString()Debugging support. |
| Field Detail |
|---|
protected Class m_clzBean
protected String m_sName
protected PropertyAdapter[] m_aAdapter
protected boolean m_fDeepClone
protected String m_sNmsUri
protected String m_sNmsPrefix
protected int m_nBeanId
protected static final Class[] NOPARAMS
protected static Class[] ADAPTER_INIT_PARAMS
protected static final Map s_mapClassNames
protected static final Map s_mapClassAdapters
protected static final Map s_mapPrimitiveNames
| Constructor Detail |
|---|
protected XmlBean.BeanInfo(Class clzBean,
XmlElement xml)
clzBean - the class of the beanxml - the xml descriptor| Method Detail |
|---|
public Class getType()
public int getBeanId()
public String getName()
public String getNamespaceUri()
public String getNamespacePrefix()
public void setNamespacePrefix(String sPrefix)
sPrefix - the default namespace prefixpublic PropertyAdapter[] getAdapters()
public boolean requiresDeepClone()
protected PropertyAdapter makeAdapter(Class clz,
String sName,
String sXmlName,
XmlElement xml)
clz - the class of the propertysName - the property namesXmlName - the corresponding element namexml - additional XML informationpublic PropertyAdapter findAdapter(String sName)
sName - the property namepublic Class resolveClass(String sClass)
sClass - the Class namepublic String toString()
|
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 | |||||||