public class NodeTypeReader extends Object
| Constructor and Description |
|---|
NodeTypeReader(InputStream xml)
Creates a node type definition file reader.
|
| Modifier and Type | Method and Description |
|---|---|
Properties |
getNamespaces()
Returns the namespaces declared in the node type definition
file.
|
QNodeTypeDefinition[] |
getNodeTypeDefs()
Returns all node type definitions specified by node type elements
under the current element.
|
static QNodeTypeDefinition[] |
read(InputStream xml)
Reads a node type definition file.
|
public NodeTypeReader(InputStream xml) throws IOException
xml - node type definition fileIOException - if the node type definition file cannot be readpublic static QNodeTypeDefinition[] read(InputStream xml) throws IOException, InvalidNodeTypeDefException
xml - XML input streamIOException - if the node type definitions
cannot be readInvalidNodeTypeDefException - if the node type definition
format is invalidpublic Properties getNamespaces()
public QNodeTypeDefinition[] getNodeTypeDefs() throws InvalidNodeTypeDefException, NameException, NamespaceException
InvalidNodeTypeDefException - if a definition is invalidNameException - if a definition contains an
illegal nameNamespaceException - if a namespace is not definedCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.