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.
|
org.apache.jackrabbit.spi.QNodeTypeDefinition[] |
getNodeTypeDefs()
Returns all node type definitions specified by node type elements
under the current element.
|
static org.apache.jackrabbit.spi.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 org.apache.jackrabbit.spi.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 org.apache.jackrabbit.spi.QNodeTypeDefinition[] getNodeTypeDefs()
throws InvalidNodeTypeDefException,
org.apache.jackrabbit.spi.commons.conversion.NameException,
NamespaceException
InvalidNodeTypeDefException - if a definition is invalidorg.apache.jackrabbit.spi.commons.conversion.NameException - if a definition contains an
illegal nameNamespaceException - if a namespace is not definedCopyright © 2004–2018 The Apache Software Foundation. All rights reserved.