/** * The default constructor creates a platform instance */ public UnmarshalXPathEngine() { xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform(); }
/** * The default constructor creates a platform instance */ public UnmarshalXPathEngine() { xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform(); }
/** * The default constructor creates a platform instance */ public UnmarshalXPathEngine() { xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform(); }
public SAXDocumentBuilder() { super(); nodes = new ArrayList<Node>(); xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform(); stringBuffer = new StrBuffer(); namespaceDeclarations = new HashMap(); }
public String getDefaultNamespaceURI() { if(null != defaultNamespaceURI) { return defaultNamespaceURI; } else if(dom != null) { return XMLPlatformFactory.getInstance().getXMLPlatform().resolveNamespacePrefix(dom, null); } return null; }
/** * INTERNAL: * Default constructor. */ public NodeRecord() { super(); XMLPlatform xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform(); document = xmlPlatform.createDocument(); node = document; }
/** * INTERNAL: * Default constructor. */ public NodeRecord() { super(); XMLPlatform xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform(); document = xmlPlatform.createDocument(); node = document; }
public XMLTypeBindCallCustomParameter(Object obj) { super(obj); xmlTransformer = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLTransformer(); xmlTransformer.setFormattedOutput(false); }
/** * Set the XML from an XML reader. */ public void transformFromXML(Reader reader) { XMLParser parser = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLParser(); Document document = parser.parse(reader); setDOM(document.getDocumentElement()); }
public DOMUnmarshaller(XMLUnmarshaller xmlUnmarshaller, Map<String, Boolean> parserFeatures) { super(); if(null == parserFeatures) { parser = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLParser(); } else { parser = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLParser(parserFeatures); } parser.setNamespaceAware(true); parser.setValidationMode(XMLParser.NONVALIDATING); this.xmlUnmarshaller = xmlUnmarshaller; }
public DirectToXMLTypeMapping() { super(); this.xmlTransformer = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLTransformer(); this.xmlTransformer.setFormattedOutput(false); this.xmlParser = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLParser(); this.xmlComparer = new XMLComparer(); }
/** * Set the XML from an XML reader. */ public void transformFromXML(Reader reader) { XMLParser parser = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLParser(); Document document = parser.parse(reader); setDOM(document.getDocumentElement()); }
public DOMUnmarshaller(XMLUnmarshaller xmlUnmarshaller, Map<String, Boolean> parserFeatures) { super(); if(null == parserFeatures) { parser = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLParser(); } else { parser = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLParser(parserFeatures); } parser.setNamespaceAware(true); parser.setValidationMode(XMLParser.NONVALIDATING); this.xmlUnmarshaller = xmlUnmarshaller; }
public DirectToXMLTypeMapping() { super(); this.xmlTransformer = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLTransformer(); this.xmlTransformer.setFormattedOutput(false); this.xmlParser = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLParser(); this.xmlComparer = new XMLComparer(); }
private void initialize() { XMLPlatform xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform(); transformer = xmlPlatform.newXMLTransformer(); setEncoding(XMLConstants.DEFAULT_XML_ENCODING); setFormattedOutput(true); marshalProperties = new Properties(); }
/** * 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 boolean isValid(Document document, ErrorHandler errorHandler) { try { XMLPlatform xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform(); return xmlPlatform.validateDocument(document, getURL(), errorHandler); } catch (XMLPlatformException e) { if (e.getErrorCode() == XMLPlatformException.XML_PLATFORM_PARSER_ERROR_RESOLVING_XML_SCHEMA) { throw XMLMarshalException.errorResolvingXMLSchema(e); } else { return false; } } }
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; }
protected Object buildObjectNoReferenceDescriptor(DOMRecord record, AbstractSession session, Node next, Object container, ContainerPolicy cp) { XMLConverter converter = ((XMLAnyCollectionMapping) this).getConverter(); XMLPlatformFactory.getInstance().getXMLPlatform().namespaceQualifyFragment((Element) next); Object objectValue = next; if (converter != null) { objectValue = converter.convertDataValueToObjectValue(objectValue, session, record.getUnmarshaller()); } cp.addInto(objectValue, container, session); return objectValue; }