Package moise.xml
Class DOMUtils
- java.lang.Object
-
- moise.xml.DOMUtils
-
public class DOMUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static javax.xml.parsers.DocumentBuilder
builder
private static javax.xml.transform.TransformerFactory
tFactory
private static javax.xml.transform.Transformer
transformer
-
Constructor Summary
Constructors Constructor Description DOMUtils()
-
Method Summary
Modifier and Type Method Description static java.lang.String
dom2txt(ToXML ele)
static org.w3c.dom.Document
getAsXmlDocument(jason.util.ToDOM ele)
static org.w3c.dom.Document
getAsXmlDocument(ToXML ele)
private static javax.xml.parsers.DocumentBuilder
getBuilder()
static org.w3c.dom.Element
getDOMDirectChild(org.w3c.dom.Element ele, java.lang.String tagName)
static java.util.List<org.w3c.dom.Element>
getDOMDirectChilds(org.w3c.dom.Element ele, java.lang.String tagName)
static javax.xml.validation.Validator
getOSSchemaValidator()
static javax.xml.parsers.DocumentBuilder
getParser()
private static javax.xml.transform.Transformer
getTransformer()
static javax.xml.transform.TransformerFactory
getTransformerFactory()
static javax.xml.transform.stream.StreamSource
getXSL(java.lang.String href)
static java.lang.String
roleDetails(Role r)
-
-
-
Method Detail
-
dom2txt
public static java.lang.String dom2txt(ToXML ele)
-
roleDetails
public static java.lang.String roleDetails(Role r)
-
getAsXmlDocument
public static org.w3c.dom.Document getAsXmlDocument(ToXML ele)
-
getAsXmlDocument
public static org.w3c.dom.Document getAsXmlDocument(jason.util.ToDOM ele)
-
getDOMDirectChild
public static org.w3c.dom.Element getDOMDirectChild(org.w3c.dom.Element ele, java.lang.String tagName)
-
getDOMDirectChilds
public static java.util.List<org.w3c.dom.Element> getDOMDirectChilds(org.w3c.dom.Element ele, java.lang.String tagName)
-
getBuilder
private static javax.xml.parsers.DocumentBuilder getBuilder()
-
getTransformer
private static javax.xml.transform.Transformer getTransformer()
-
getOSSchemaValidator
public static javax.xml.validation.Validator getOSSchemaValidator() throws org.xml.sax.SAXException, java.io.IOException
- Throws:
org.xml.sax.SAXException
java.io.IOException
-
getParser
public static javax.xml.parsers.DocumentBuilder getParser() throws javax.xml.parsers.ParserConfigurationException
- Throws:
javax.xml.parsers.ParserConfigurationException
-
getTransformerFactory
public static javax.xml.transform.TransformerFactory getTransformerFactory()
-
getXSL
public static javax.xml.transform.stream.StreamSource getXSL(java.lang.String href) throws java.io.IOException
- Throws:
java.io.IOException
-
-