org.apache.jackrabbit.core.nodetype
Class NodeTypeDefStore
java.lang.Object
org.apache.jackrabbit.core.nodetype.NodeTypeDefStore
public class NodeTypeDefStore
- extends Object
NodeTypeDefStore
...
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeTypeDefStore
public NodeTypeDefStore()
throws RepositoryException
- Empty default constructor.
- Throws:
RepositoryException
load
public void load(InputStream in)
throws IOException,
InvalidNodeTypeDefException,
RepositoryException
- Parameters:
in
-
- Throws:
IOException
InvalidNodeTypeDefException
RepositoryException
loadCND
public void loadCND(Reader in,
String systemId)
throws IOException,
InvalidNodeTypeDefException
- Loads node types from a CND stream.
- Parameters:
in
- reader containing the nodetype definitionssystemId
- optional name of the stream
- Throws:
IOException
- if an I/O error during reading occurs
InvalidNodeTypeDefException
- if the CND cannot be parsed
store
public void store(OutputStream out,
NamespaceRegistry registry)
throws IOException,
RepositoryException
- Parameters:
out
- registry
-
- Throws:
IOException
RepositoryException
add
public void add(QNodeTypeDefinition ntd)
- Parameters:
ntd
-
remove
public boolean remove(Name name)
- Parameters:
name
-
- Returns:
removeAll
public void removeAll()
contains
public boolean contains(Name name)
- Parameters:
name
-
- Returns:
get
public QNodeTypeDefinition get(Name name)
- Parameters:
name
-
- Returns:
all
public Collection<QNodeTypeDefinition> all()
- Returns:
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.