use of xades4j.properties.data.GenericDOMData in project xades4j by luisgoncalves.
the class BaseJAXBMarshaller method marshallUnknownProps.
private void marshallUnknownProps(Collection<PropertyDataObject> unknownProps, Element parent) throws MarshalException {
for (PropertyDataObject pData : unknownProps) {
if (!(pData instanceof GenericDOMData)) {
throw new UnsupportedDataObjectException(pData);
}
Node propElem = ((GenericDOMData) pData).getPropertyElement();
if (propElem.getOwnerDocument() != parent.getOwnerDocument()) {
propElem = parent.getOwnerDocument().importNode(propElem, true);
}
parent.appendChild(propElem);
}
}
Aggregations