org.apache.jackrabbit.core.nodetype
Class NodeTypeDefStore

java.lang.Object
  extended by org.apache.jackrabbit.core.nodetype.NodeTypeDefStore

public class NodeTypeDefStore
extends Object

NodeTypeDefStore ...


Constructor Summary
NodeTypeDefStore()
          Empty default constructor.
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 definitions
systemId - 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.