public DirectToXMLTypeMapping() { super(); this.xmlTransformer = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLTransformer(); this.xmlTransformer.setFormattedOutput(false); this.xmlParser = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLParser(); this.xmlComparer = new XMLComparer(); }
public XMLTypeBindCallCustomParameter(Object obj) { super(obj); xmlTransformer = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLTransformer(); xmlTransformer.setFormattedOutput(false); }
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; }
private XMLParser getXMLParser() { xmlParser = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLParser(); xmlParser.setNamespaceAware(true); if(null != errorHandler) { xmlParser.setErrorHandler(errorHandler); } if(null != entityResolver) { xmlParser.setEntityResolver(entityResolver); } xmlParser.setValidationMode(validationMode); xmlParser.setWhitespacePreserving(isWhitespacePreserving); return xmlParser; }
public String getDefaultNamespaceURI() { if(null != defaultNamespaceURI) { return defaultNamespaceURI; } else if(dom != null) { return XMLPlatformFactory.getInstance().getXMLPlatform().resolveNamespacePrefix(dom, null); } return null; }
/** * Write the XML string representation of the DOM. */ public void transformToWriter(Writer writer) { XMLTransformer xmlTransformer = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLTransformer(); xmlTransformer.transform(this.getDOM(), writer); }
/** * INTERNAL: * Default constructor. */ public NodeRecord() { super(); XMLPlatform xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform(); document = xmlPlatform.createDocument(); node = document; }
/** * Event that is called at the end of processing the document. */ public void endDocument() throws SAXException { endDocumentTriggered = true; super.endDocument(); }
@Override public void setSchema(Schema schema) { this.schema = schema; if (parser != null) { parser.setXMLSchema(schema); } }
/** * INTERNAL: * Return the singleton instance of XMLPlatformContext. * @return the the singleton instance of XMLPlatformContext. * @throws XMLPlatformException */ public static XMLPlatformFactory getInstance() throws XMLPlatformException { if (null == instance) { instance = new XMLPlatformFactory(); } return instance; }
/** * Default constructor. */ public JAXPParser() { super(); errorHandler = DefaultErrorHandler.getInstance(); }
public DirectToXMLTypeMapping() { super(); this.xmlTransformer = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLTransformer(); this.xmlTransformer.setFormattedOutput(false); this.xmlParser = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLParser(); this.xmlComparer = new XMLComparer(); }
public String resolveNamespacePrefix(String prefix) { XMLPlatform xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform(); return xmlPlatform.resolveNamespacePrefix(currentNode, prefix); }
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; }
/** * Write the XML string representation of the DOM. */ public void transformToWriter(Writer writer) { XMLTransformer xmlTransformer = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLTransformer(); xmlTransformer.transform(this.getDOM(), writer); }
/** * INTERNAL: * Default constructor. */ public NodeRecord() { super(); XMLPlatform xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform(); document = xmlPlatform.createDocument(); node = document; }
public DirectToXMLTypeMapping() { super(); this.xmlTransformer = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLTransformer(); this.xmlTransformer.setFormattedOutput(false); this.xmlParser = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLParser(); this.xmlComparer = new XMLComparer(); }
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; }
public String resolveNamespacePrefix(String prefix) { XMLPlatform xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform(); return xmlPlatform.resolveNamespacePrefix(currentNode, prefix); } }