| Modifier and Type | Field and Description |
|---|---|
| pack-priv Document | |
| pack-priv DocumentBuilder |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected Document | |
| protected Object | |
| protected Object | |
| protected Object | createNode(Object name, Map<K, V> attributes, Object value)
Implements abstract groovy. |
| protected Object | createNode(Object name, Map<K, V> attributes)
Implements abstract groovy. |
| public static DOMBuilder | |
| public static DOMBuilder | |
| public static Document | |
| public static Document | Returns: the root node of the parsed tree of Nodesthe reader to read the XML text from reader, boolean whether to validate the XML validating, boolean whether the parser should be namespace aware namespaceAware)Creates a DocumentBuilder and uses it to parse the XML text read from the given reader, allowing parser validation and namespace awareness to be controlled. |
| public static Document | Returns: the root node of the parsed tree of Nodesthe reader to read the XML text from reader, boolean whether to validate the XML validating, boolean whether the parser should be namespace aware namespaceAware, boolean whether the parser should allow DOCTYPE declarations allowDocTypeDeclaration)Creates a DocumentBuilder and uses it to parse the XML text read from the given reader, allowing parser validation, namespace awareness and permission of DOCTYPE declarations to be controlled. |
| public Document | |
| protected void | |
| private static void | |
| private static void |
| document | back to summary |
|---|---|
| pack-priv Document document | |
| documentBuilder | back to summary |
|---|---|
| pack-priv DocumentBuilder documentBuilder | |
| DOMBuilder | back to summary |
|---|---|
| public DOMBuilder(Document document) | |
| DOMBuilder | back to summary |
|---|---|
| public DOMBuilder(DocumentBuilder documentBuilder) | |
| appendNamespaceAttributes | back to summary |
|---|---|
| protected void appendNamespaceAttributes(Element element, Map<Object, Object> attributes) | |
| createDocument | back to summary |
|---|---|
| protected Document createDocument() | |
| createNode | back to summary |
|---|---|
| protected Object createNode(Object name) Implements abstract groovy. | |
| createNode | back to summary |
|---|---|
| protected Object createNode(Object name, Object value) Implements abstract groovy. | |
| createNode | back to summary |
|---|---|
| protected Object createNode(Object name, Map<K, V> attributes, Object value) Implements abstract groovy. | |
| createNode | back to summary |
|---|---|
| protected Object createNode(Object name, Map<K, V> attributes) Implements abstract groovy. | |
| newInstance | back to summary |
|---|---|
| public static DOMBuilder newInstance() throws ParserConfigurationException | |
| newInstance | back to summary |
|---|---|
| public static DOMBuilder newInstance(boolean validating, boolean namespaceAware) throws ParserConfigurationException | |
| parse | back to summary |
|---|---|
| public static Document parse(Reader reader) throws SAXException, IOException, ParserConfigurationException Creates a DocumentBuilder and uses it to parse the XML text read from the given reader. A non-validating, namespace aware parser which does not allow DOCTYPE declarations is used.
| |
| parse | back to summary |
|---|---|
| public static Document parse(Reader reader, boolean validating, boolean namespaceAware) throws SAXException, IOException, ParserConfigurationException Creates a DocumentBuilder and uses it to parse the XML text read from the given reader, allowing parser validation and namespace awareness to be controlled. Documents are not allowed to contain DOCYTYPE declarations.
| |
| parse | back to summary |
|---|---|
| public static Document parse(Reader reader, boolean validating, boolean namespaceAware, boolean allowDocTypeDeclaration) throws SAXException, IOException, ParserConfigurationException Creates a DocumentBuilder and uses it to parse the XML text read from the given reader, allowing parser validation, namespace awareness and permission of DOCTYPE declarations to be controlled.
| |
| parseText | back to summary |
|---|---|
| public Document parseText(String text) throws SAXException, IOException, ParserConfigurationException A helper method to parse the given text as XML.
| |
| setParent | back to summary |
|---|---|
| protected void setParent(Object parent, Object child) Implements abstract groovy. | |
| setQuietly | back to summary |
|---|---|
| private static void setQuietly(DocumentBuilderFactory factory, String feature, boolean value) | |
| setStringNS | back to summary |
|---|---|
| private static void setStringNS(Element element, Object key, Object value) | |