Class NodeTypeDefStore
- java.lang.Object
-
- org.apache.jackrabbit.core.nodetype.NodeTypeDefStore
-
public class NodeTypeDefStore extends Object
NodeTypeDefStore
...
-
-
Constructor Summary
Constructors Constructor Description NodeTypeDefStore()
Empty default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(QNodeTypeDefinition ntd)
Collection<QNodeTypeDefinition>
all()
boolean
contains(Name name)
QNodeTypeDefinition
get(Name name)
void
load(InputStream in)
void
loadCND(Reader in, String systemId)
Loads node types from a CND stream.boolean
remove(Name name)
void
removeAll()
void
store(OutputStream out, NamespaceRegistry registry)
-
-
-
Constructor Detail
-
NodeTypeDefStore
public NodeTypeDefStore() throws RepositoryException
Empty default constructor.- Throws:
RepositoryException
-
-
Method Detail
-
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 occursInvalidNodeTypeDefException
- 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:
-
-