/** * PUBLIC: * Get the namespace URI for the context root element. */ public String getNamespaceURI() { return getDOM().getNamespaceURI(); }
/** * PUBLIC: * Get the namespace URI for the context root element. */ public String getNamespaceURI() { return getDOM().getNamespaceURI(); }
/** * PUBLIC: * Return the document. */ public Document getDocument() { return getDOM().getOwnerDocument(); }
/** * PUBLIC: * Return the document. */ public Document getDocument() { return getDOM().getOwnerDocument(); }
/** * PUBLIC: * Return the document. */ public Document getDocument() { return getDOM().getOwnerDocument(); }
/** * PUBLIC: * Return the collection of element values from the DOM. */ public Collection values() { int length = getDOM().getChildNodes().getLength(); Vector values = new Vector(length); for (int index = 0; index < length; index++) { values.add(getDOM().getChildNodes().item(index)); } return values; }
/** * PUBLIC: * Return the collection of element values from the DOM. */ public Collection values() { int length = getDOM().getChildNodes().getLength(); Vector values = new Vector(length); for (int index = 0; index < length; index++) { values.add(getDOM().getChildNodes().item(index)); } return values; }
private Object getValueFromAttribute(Attr node, XMLField key) { currentNode = node.getOwnerElement(); Object convertedValue = key.convertValueBasedOnSchemaType(node.getNodeValue(), (XMLConversionManager) session.getDatasourcePlatform().getConversionManager(), this); currentNode = getDOM(); return convertedValue; }
private Object getValueFromAttribute(Attr node, XMLField key) { currentNode = node.getOwnerElement(); Object convertedValue = key.convertValueBasedOnSchemaType(node.getNodeValue(), (XMLConversionManager) session.getDatasourcePlatform().getConversionManager(), this); currentNode = getDOM(); return convertedValue; }
/** * Write the XML string representation of the DOM. */ public void transformToWriter(Writer writer) { XMLTransformer xmlTransformer = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLTransformer(); xmlTransformer.transform(this.getDOM(), writer); }
/** * Write the XML string representation of the DOM. */ public void transformToWriter(Writer writer) { XMLTransformer xmlTransformer = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLTransformer(); xmlTransformer.transform(this.getDOM(), writer); }
public Object valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery query, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed) { DOMRecord domRecord = (DOMRecord) row; Object value = domRecord.getIndicatingNoEntry(this.getField(), true); if(value == domRecord) { value = domRecord.getDOM(); } if (value instanceof Element) { XMLPlatformFactory.getInstance().getXMLPlatform().namespaceQualifyFragment((Element)value); } return value; }
public Object valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery query, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed) { DOMRecord domRecord = (DOMRecord) row; Object value = domRecord.getIndicatingNoEntry(this.getField(), true); if(value == domRecord) { value = domRecord.getDOM(); } if (value instanceof Element) { XMLPlatformFactory.getInstance().getXMLPlatform().namespaceQualifyFragment((Element)value); } return value; }