public boolean marshalAttributes(MarshalRecord marshalRecord, Object object, AbstractSession session) { boolean hasValue = false; NamespaceResolver namespaceResolver = ((XMLDescriptor)this.getDescriptor()).getNamespaceResolver(); List<XPathNode> attributeChildren = rootXPathNode.getAttributeChildren(); if (null != attributeChildren) { for (int x = 0, attributeChildrenSize=attributeChildren.size(); x < attributeChildrenSize; x++) { hasValue = attributeChildren.get(x).marshal(marshalRecord, object, session, namespaceResolver, null, ObjectMarshalContext.getInstance()) || hasValue; } } if (rootXPathNode.getAnyAttributeNode() != null) { hasValue = rootXPathNode.getAnyAttributeNode().marshal(marshalRecord, object, session, namespaceResolver, null, ObjectMarshalContext.getInstance()) || hasValue; } List<XPathNode> selfChildren = rootXPathNode.getSelfChildren(); if (null != selfChildren) { for (int x = 0, selfChildrenSize=selfChildren.size(); x < selfChildrenSize; x++) { selfChildren.get(x).marshalSelfAttributes(marshalRecord, object, session, namespaceResolver, marshalRecord.getMarshaller()); } } return hasValue; }
if(xPathNode.getAttributeChildren() != null || xPathNode.getAnyAttributeNodeValue() != null || selfRecords != null) { for (int i = 0, size=atts.getLength(); i < size; i++) { String attNamespace = atts.getURI(i);
if(xPathNode.getAttributeChildren() != null || xPathNode.getAnyAttributeNodeValue() != null || selfRecords != null) { for (int i = 0, size=atts.getLength(); i < size; i++) { String attNamespace = atts.getURI(i);
NamespaceResolver namespaceResolver = ((Descriptor)descriptor).getNamespaceResolver(); List<XPathNode> attributeChildren = rootXPathNode.getAttributeChildren(); if (null != attributeChildren) { ObjectMarshalContext objectMarshalContext = ObjectMarshalContext.getInstance();
NamespaceResolver namespaceResolver = ((Descriptor)descriptor).getNamespaceResolver(); List<XPathNode> attributeChildren = rootXPathNode.getAttributeChildren(); if (null != attributeChildren) { ObjectMarshalContext objectMarshalContext = ObjectMarshalContext.getInstance();
if(((Field) xmlDirectMapping.getField()).getXPathFragment().nameIsText ){ XPathNode parentNode = xPathNode.getParent(); if(parentNode.getAttributeChildren() != null){ marshalRecord.forceValueWrapper();
if(((Field) xmlDirectMapping.getField()).getXPathFragment().nameIsText ){ XPathNode parentNode = xPathNode.getParent(); if(parentNode.getAttributeChildren() != null){ marshalRecord.forceValueWrapper();