public class NodeTypeDefStore extends Object
NodeTypeDefStore ...| Constructor and Description |
|---|
NodeTypeDefStore()
Empty default constructor.
|
| Modifier and Type | Method and 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) |
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(QNodeTypeDefinition ntd)
ntd - public boolean remove(Name name)
name - public void removeAll()
public boolean contains(Name name)
name - public QNodeTypeDefinition get(Name name)
name - public Collection<QNodeTypeDefinition> all()
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.