org.apache.jackrabbit.core.nodetype.compact
Class CompactNodeTypeDefWriter

java.lang.Object
  extended by org.apache.jackrabbit.core.nodetype.compact.CompactNodeTypeDefWriter

public class CompactNodeTypeDefWriter
extends Object

Prints node type defs in a compact notation Print Format: [ex:NodeType] > ex:ParentType1, ex:ParentType2 orderable mixin - ex:property (STRING) = 'default1', 'default2' primary mandatory autocreated protected multiple VERSION < 'constraint1', 'constraint2' + ex:node (ex:reqType1, ex:reqType2) = ex:defaultType mandatory autocreated protected multiple VERSION


Constructor Summary
CompactNodeTypeDefWriter(Writer out, NamespaceResolver r)
          Creates a new nodetype writer
CompactNodeTypeDefWriter(Writer out, NamespaceResolver r, boolean includeNS)
          Creates a new nodetype writer
 
Method Summary
 void close()
          Flushes all pending write operations and Closes this writer.
static void write(List l, NamespaceResolver r, Writer out)
          Writes the given list of NodeTypeDefs to the output writer including the used namespaces.
 void write(NodeTypeDef d)
          Write one NodeTypeDef to this writer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompactNodeTypeDefWriter

public CompactNodeTypeDefWriter(Writer out,
                                NamespaceResolver r)
Creates a new nodetype writer

Parameters:
out - the underlying writer
r - the namespace resolver

CompactNodeTypeDefWriter

public CompactNodeTypeDefWriter(Writer out,
                                NamespaceResolver r,
                                boolean includeNS)
Creates a new nodetype writer

Parameters:
out - the underlaying writer
r - the naespace resolver
includeNS - if true all used namespace decl. are also written.
Method Detail

write

public static void write(List l,
                         NamespaceResolver r,
                         Writer out)
                  throws IOException
Writes the given list of NodeTypeDefs to the output writer including the used namespaces.

Parameters:
l -
r -
out -
Throws:
IOException

write

public void write(NodeTypeDef d)
           throws IOException
Write one NodeTypeDef to this writer

Parameters:
d -
Throws:
IOException

close

public void close()
           throws IOException
Flushes all pending write operations and Closes this writer. please note, that the underlying writer remains open.

Throws:
IOException


Copyright © 2004-2007 The Apache Software Foundation. All Rights Reserved.