public XPathObjectBuilder(CoreDescriptor descriptor) { this.descriptor = descriptor; this.rootXPathNode = new XPathNode(); }
public XPathObjectBuilder(CoreDescriptor descriptor) { this.descriptor = descriptor; this.rootXPathNode = new XPathNode(); }
public TreeObjectBuilder(ClassDescriptor descriptor) { super(descriptor); rootXPathNode = new XPathNode(); }
public XMLCollectionReferenceMappingMarshalNodeValue(CollectionReferenceMapping xmlCollectionReferenceMapping) { this.xmlCollectionReferenceMapping = xmlCollectionReferenceMapping; branchNode = new XPathNode(); NamespaceResolver namespaceResolver = ((Descriptor) xmlCollectionReferenceMapping.getDescriptor()).getNamespaceResolver(); List fkFields = xmlCollectionReferenceMapping.getFields(); for(int x=0, fkFieldsSize=fkFields.size(); x<fkFieldsSize; x++) { Field fkField = (Field) fkFields.get(x); branchNode.addChild(fkField.getXPathFragment(), new XMLCollectionReferenceMappingFKMarshalNodeValue(xmlCollectionReferenceMapping, fkField), namespaceResolver); } }
public XMLCollectionReferenceMappingMarshalNodeValue(CollectionReferenceMapping xmlCollectionReferenceMapping) { this.xmlCollectionReferenceMapping = xmlCollectionReferenceMapping; branchNode = new XPathNode(); NamespaceResolver namespaceResolver = ((Descriptor) xmlCollectionReferenceMapping.getDescriptor()).getNamespaceResolver(); List fkFields = xmlCollectionReferenceMapping.getFields(); for(int x=0, fkFieldsSize=fkFields.size(); x<fkFieldsSize; x++) { Field fkField = (Field) fkFields.get(x); branchNode.addChild(fkField.getXPathFragment(), new XMLCollectionReferenceMappingFKMarshalNodeValue(xmlCollectionReferenceMapping, fkField), namespaceResolver); } }
public XMLCollectionReferenceMappingMarshalNodeValue(XMLCollectionReferenceMapping xmlCollectionReferenceMapping) { this.xmlCollectionReferenceMapping = xmlCollectionReferenceMapping; branchNode = new XPathNode(); NamespaceResolver namespaceResolver = ((XMLDescriptor) xmlCollectionReferenceMapping.getDescriptor()).getNamespaceResolver(); List fkFields = xmlCollectionReferenceMapping.getFields(); for(int x=0, fkFieldsSize=fkFields.size(); x<fkFieldsSize; x++) { XMLField fkField = (XMLField) fkFields.get(x); branchNode.addChild(fkField.getXPathFragment(), new XMLCollectionReferenceMappingFKMarshalNodeValue(xmlCollectionReferenceMapping, fkField), namespaceResolver); } }
public XPathNode addChild(XPathFragment anXPathFragment, NodeValue aNodeValue, NamespaceResolver namespaceResolver) { if (null != anXPathFragment && anXPathFragment.nameIsText()) { if (aNodeValue.isOwningNode(anXPathFragment)) { XPathNode textXPathNode = new XPathNode(); textXPathNode.setParent(this); textXPathNode.setXPathFragment(anXPathFragment); XPathNode xPathNode = new XPathNode(); xPathNode.setXPathFragment(anXPathFragment);
ContainerValue containerValue = (ContainerValue) childXPathNodeUnmarshalNodeValue; if(containerValue.isWrapperAllowedAsCollectionName()) { XPathNode wrapperXPathNode = new XPathNode(); wrapperXPathNode.setXPathFragment(this.getXPathFragment()); wrapperXPathNode.setMarshalNodeValue(childXPathNode.getMarshalNodeValue());
if (node == null) { XPathNode n = new XPathNode(); CompositeObjectMapping m = new XMLCompositeObjectMapping(); m.setXPath(".");
ContainerValue containerValue = (ContainerValue) childXPathNodeUnmarshalNodeValue; if(containerValue.isWrapperAllowedAsCollectionName()) { XPathNode wrapperXPathNode = new XPathNode(); wrapperXPathNode.setXPathFragment(this.getXPathFragment()); wrapperXPathNode.setMarshalNodeValue(childXPathNode.getMarshalNodeValue());
if (node == null) { XPathNode n = new XPathNode(); CompositeObjectMapping m = new XMLCompositeObjectMapping(); m.setXPath(".");
XPathNode holderXPathNode = new XPathNode(); holderXPathNode.setXPathFragment(elementFragment); marshalRecord.addGroupingElement(holderXPathNode);
XPathNode holderXPathNode = new XPathNode(); holderXPathNode.setXPathFragment(elementFragment); marshalRecord.addGroupingElement(holderXPathNode);
AbstractNullPolicy nullPolicy = xmlBinaryDataCollectionMapping.getNullPolicy(); if (nullPolicy.getMarshalNullRepresentation() != XMLNullRepresentationType.ABSENT_NODE) { XPathNode holderXPathNode = new XPathNode(); holderXPathNode.setXPathFragment(xPathFragment); marshalRecord.addGroupingElement(holderXPathNode);
AbstractNullPolicy nullPolicy = xmlBinaryDataCollectionMapping.getNullPolicy(); if (nullPolicy.getMarshalNullRepresentation() != XMLNullRepresentationType.ABSENT_NODE) { XPathNode holderXPathNode = new XPathNode(); holderXPathNode.setXPathFragment(xPathFragment); marshalRecord.addGroupingElement(holderXPathNode);