Package io.lighty.codecs.xml
Class XmlUtil
- java.lang.Object
-
- io.lighty.codecs.xml.XmlUtil
-
@Deprecated(forRemoval=true) public final class XmlUtil extends Object
Deprecated, for removal: This API element is subject to removal in a future version.Replaced by OpenDayLight implementationXmlUtil
.XmlUtil.
-
-
Field Summary
Fields Modifier and Type Field Description static String
XMLNS_ATTRIBUTE_KEY
Deprecated, for removal: This API element is subject to removal in a future version.static String
XMLNS_URI
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Document
createDocumentCopy(Document original)
Deprecated, for removal: This API element is subject to removal in a future version.static Element
createElement(Document document, String qname, com.google.common.base.Optional<String> namespaceURI)
Deprecated, for removal: This API element is subject to removal in a future version.static String
createPrefixedValue(String prefix, String value)
Deprecated, for removal: This API element is subject to removal in a future version.static Element
createTextElement(Document document, String qname, String content, com.google.common.base.Optional<String> namespaceURI)
Deprecated, for removal: This API element is subject to removal in a future version.static Element
createTextElementWithNamespacedContent(Document document, String qname, String prefix, String namespace, String contentWithoutPrefix)
Deprecated, for removal: This API element is subject to removal in a future version.static Element
createTextElementWithNamespacedContent(Document document, String qname, String prefix, String namespace, String contentWithoutPrefix, com.google.common.base.Optional<String> namespaceURI)
Deprecated, for removal: This API element is subject to removal in a future version.static Object
evaluateXPath(XPathExpression expr, Object rootNode, QName returnType)
Deprecated, for removal: This API element is subject to removal in a future version.static Schema
loadSchema(InputStream... fromStreams)
Deprecated, for removal: This API element is subject to removal in a future version.static Document
newDocument()
Deprecated, for removal: This API element is subject to removal in a future version.static Document
readXmlToDocument(InputStream xmlContent)
Deprecated, for removal: This API element is subject to removal in a future version.static Document
readXmlToDocument(String xmlContent)
Deprecated, for removal: This API element is subject to removal in a future version.static Element
readXmlToElement(File xmlFile)
Deprecated, for removal: This API element is subject to removal in a future version.static Element
readXmlToElement(InputStream xmlContent)
Deprecated, for removal: This API element is subject to removal in a future version.static Element
readXmlToElement(String xmlContent)
Deprecated, for removal: This API element is subject to removal in a future version.static String
toString(XmlElement xmlElement)
Deprecated, for removal: This API element is subject to removal in a future version.static String
toString(Document document)
Deprecated, for removal: This API element is subject to removal in a future version.static String
toString(Document doc, boolean addXmlDeclaration)
Deprecated, for removal: This API element is subject to removal in a future version.static String
toString(Element xml)
Deprecated, for removal: This API element is subject to removal in a future version.static String
toString(Element xml, boolean addXmlDeclaration)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
Field Detail
-
XMLNS_ATTRIBUTE_KEY
public static final String XMLNS_ATTRIBUTE_KEY
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
XMLNS_URI
public static final String XMLNS_URI
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
-
Method Detail
-
readXmlToElement
public static Element readXmlToElement(String xmlContent) throws SAXException, IOException
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
SAXException
IOException
-
readXmlToElement
public static Element readXmlToElement(InputStream xmlContent) throws SAXException, IOException
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
SAXException
IOException
-
readXmlToElement
public static Element readXmlToElement(File xmlFile) throws SAXException, IOException
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
SAXException
IOException
-
readXmlToDocument
public static Document readXmlToDocument(String xmlContent) throws SAXException, IOException
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
SAXException
IOException
-
readXmlToDocument
public static Document readXmlToDocument(InputStream xmlContent) throws SAXException, IOException
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
SAXException
IOException
-
newDocument
public static Document newDocument()
Deprecated, for removal: This API element is subject to removal in a future version.
-
createElement
public static Element createElement(Document document, String qname, com.google.common.base.Optional<String> namespaceURI)
Deprecated, for removal: This API element is subject to removal in a future version.
-
createTextElement
public static Element createTextElement(Document document, String qname, String content, com.google.common.base.Optional<String> namespaceURI)
Deprecated, for removal: This API element is subject to removal in a future version.
-
createTextElementWithNamespacedContent
public static Element createTextElementWithNamespacedContent(Document document, String qname, String prefix, String namespace, String contentWithoutPrefix)
Deprecated, for removal: This API element is subject to removal in a future version.
-
createTextElementWithNamespacedContent
public static Element createTextElementWithNamespacedContent(Document document, String qname, String prefix, String namespace, String contentWithoutPrefix, com.google.common.base.Optional<String> namespaceURI)
Deprecated, for removal: This API element is subject to removal in a future version.
-
createPrefixedValue
public static String createPrefixedValue(String prefix, String value)
Deprecated, for removal: This API element is subject to removal in a future version.
-
toString
public static String toString(Document document)
Deprecated, for removal: This API element is subject to removal in a future version.
-
toString
public static String toString(Element xml)
Deprecated, for removal: This API element is subject to removal in a future version.
-
toString
public static String toString(XmlElement xmlElement)
Deprecated, for removal: This API element is subject to removal in a future version.
-
toString
public static String toString(Element xml, boolean addXmlDeclaration)
Deprecated, for removal: This API element is subject to removal in a future version.
-
toString
public static String toString(Document doc, boolean addXmlDeclaration)
Deprecated, for removal: This API element is subject to removal in a future version.
-
loadSchema
public static Schema loadSchema(InputStream... fromStreams)
Deprecated, for removal: This API element is subject to removal in a future version.
-
evaluateXPath
public static Object evaluateXPath(XPathExpression expr, Object rootNode, QName returnType)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-