Ejemplo n.º 1
0
 /** {@inheritDoc} */
 protected void processAttribute(XMLObject xmlObject, Attr attribute)
     throws UnmarshallingException {
   Embedded embedded = (Embedded) xmlObject;
   String attrName = attribute.getLocalName();
   if (Embedded.VALUE_TYPE_ATTRIB_NAME.equals(attrName)) {
     embedded.setValueType(attribute.getValue());
   } else {
     XMLHelper.unmarshallToAttributeMap(embedded.getUnknownAttributes(), attribute);
   }
 }
Ejemplo n.º 2
0
 /** {@inheritDoc} */
 protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
     throws UnmarshallingException {
   Embedded embedded = (Embedded) parentXMLObject;
   embedded.getUnknownXMLObjects().add(childXMLObject);
 }