public class NodeTypeDefStore extends Object
NodeTypeDefStore ...| Constructor and Description |
|---|
NodeTypeDefStore()
Empty default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.apache.jackrabbit.spi.QNodeTypeDefinition ntd) |
Collection<org.apache.jackrabbit.spi.QNodeTypeDefinition> |
all() |
boolean |
contains(org.apache.jackrabbit.spi.Name name) |
org.apache.jackrabbit.spi.QNodeTypeDefinition |
get(org.apache.jackrabbit.spi.Name name) |
void |
load(InputStream in) |
void |
loadCND(Reader in,
String systemId)
Loads node types from a CND stream.
|
boolean |
remove(org.apache.jackrabbit.spi.Name name) |
void |
removeAll() |
void |
store(OutputStream out,
NamespaceRegistry registry) |
public NodeTypeDefStore()
throws RepositoryException
RepositoryExceptionpublic void load(InputStream in) throws IOException, InvalidNodeTypeDefException, RepositoryException
in - IOExceptionInvalidNodeTypeDefExceptionRepositoryExceptionpublic void loadCND(Reader in, String systemId) throws IOException, InvalidNodeTypeDefException
in - reader containing the nodetype definitionssystemId - optional name of the streamIOException - if an I/O error during reading occursInvalidNodeTypeDefException - if the CND cannot be parsedpublic void store(OutputStream out, NamespaceRegistry registry) throws IOException, RepositoryException
out - registry - IOExceptionRepositoryExceptionpublic void add(org.apache.jackrabbit.spi.QNodeTypeDefinition ntd)
ntd - public boolean remove(org.apache.jackrabbit.spi.Name name)
name - public void removeAll()
public boolean contains(org.apache.jackrabbit.spi.Name name)
name - public org.apache.jackrabbit.spi.QNodeTypeDefinition get(org.apache.jackrabbit.spi.Name name)
name - public Collection<org.apache.jackrabbit.spi.QNodeTypeDefinition> all()
Copyright © 2004–2018 The Apache Software Foundation. All rights reserved.