Class QNameAdapter

All Implemented Interfaces:
Serializable

public class QNameAdapter extends SimpleAdapter.StringAdapter
A property adapter for QName primitive datatype.
 <adapter>com.tangosol.run.xml.QNameAdapter</adapter>
 <value-space>
   <xmlns>
     <uri>Uri-1</uri>
     <prefix>prefix-1</prefix>
   </xmlns>
   <xmlns>
     <uri>Uri-2</uri>
     <prefix>prefix-2</prefix>
   </xmlns>
   ...
 </value-space>
 
Version:
1.00 2002.07.02
Author:
gg
See Also:
  • Constructor Details

    • QNameAdapter

      public QNameAdapter(XmlBean.BeanInfo infoBean, Class clzType, String sName, String sXml, XmlElement xml)
      Construct a QNameAdapter.
      Parameters:
      infoBean - BeanInfo for a bean containing this property
      clzType - the type of the property
      sName - the property name
      sXml - the XML tag name
      xml - additional XML information
  • Method Details

    • fromXml

      public Object fromXml(XmlElement xml)
      Deserialize an object from an XML element.
      Overrides:
      fromXml in class SimpleAdapter
      Parameters:
      xml - the XML element to deserialize from
      Returns:
      the object deserialized from the XML element
    • toXml

      public XmlElement toXml(Object o)
      Serialize an object into an XML element.
      Overrides:
      toXml in class SimpleAdapter
      Parameters:
      o - the object to serialize
      Returns:
      the XML element representing the serialized form of the passed object
    • isValidQName

      public boolean isValidQName(String sValue)
      Specifies whether or not the specified QName value is associated with a known namespace declaration.
      Parameters:
      sValue - the specified QName value
      Returns:
      true is the specified QName value is associated with a known namespace declaration; false otherwise