|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.nodetype.xml.NodeTypeReader
public class NodeTypeReader
Node type definition reader. This class is used to read the persistent node type definition files used by Jackrabbit.
| Constructor Summary | |
|---|---|
NodeTypeReader(java.io.InputStream xml)
Creates a node type definition file reader. |
|
| Method Summary | |
|---|---|
java.util.Properties |
getNamespaces()
Returns the namespaces declared in the node type definition file. |
NodeTypeDef[] |
getNodeTypeDefs()
Returns all node type definitions specified by node type elements under the current element. |
static NodeTypeDef[] |
read(java.io.InputStream xml)
Reads a node type definition file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodeTypeReader(java.io.InputStream xml)
throws java.io.IOException
xml - node type definition file
java.io.IOException - if the node type definition file cannot be read| Method Detail |
|---|
public static NodeTypeDef[] read(java.io.InputStream xml)
throws java.io.IOException,
InvalidNodeTypeDefException
xml - XML input stream
java.io.IOException - if the node type definitions
cannot be read
InvalidNodeTypeDefException - if the node type definition
format is invalidpublic java.util.Properties getNamespaces()
public NodeTypeDef[] getNodeTypeDefs()
throws InvalidNodeTypeDefException,
NameException,
javax.jcr.NamespaceException
InvalidNodeTypeDefException - if a definition is invalid
NameException - if a definition contains an
illegal name
javax.jcr.NamespaceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||