Code example for Attr

Methods: getValueisId

0
 
    /** {@inheritDoc} */ 
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        ResourceContentType resourceContent = (ResourceContentType) xmlObject;
 
        QName attribQName = XMLHelper.getNodeQName(attribute);
        if (attribute.isId()) {
            resourceContent.getUnknownAttributes().registerID(attribQName);
        } 
        resourceContent.getUnknownAttributes().put(attribQName, attribute.getValue());
    } 
 
    /** {@inheritDoc} */ 
    protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
            throws UnmarshallingException { 
        ResourceContentType resourceContent = (ResourceContentType) parentXMLObject;
        resourceContent.getUnknownXMLObjects().add(childXMLObject);
    } 
 
    /** {@inheritDoc} */ 
    protected void processElementContent(XMLObject xmlObject, String elementContent) {