org.apache.jackrabbit.core.nodetype.compact
Class CompactNodeTypeDefWriter
java.lang.Object
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
Method Summary |
void |
close()
Flushes all pending write operations and Closes this writer. please note,
that the underlying writer remains open. |
static void |
write(List l,
NamespaceResolver r,
NamePathResolver npResolver,
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 |
CompactNodeTypeDefWriter
public CompactNodeTypeDefWriter(Writer out,
NamespaceResolver r,
NamePathResolver npResolver)
- Creates a new nodetype writer
- Parameters:
out
- the underlying writerr
- the namespace resolvernpResolver
-
CompactNodeTypeDefWriter
public CompactNodeTypeDefWriter(Writer out,
NamespaceResolver r,
NamePathResolver npResolver,
boolean includeNS)
- Creates a new nodetype writer
- Parameters:
out
- the underlaying writerr
- the naespace resolvernpResolver
- includeNS
- if true
all used namespace decl. are also
write
public static void write(List l,
NamespaceResolver r,
NamePathResolver npResolver,
Writer out)
throws IOException
- Writes the given list of NodeTypeDefs to the output writer including the
used namespaces.
- Parameters:
l
- r
- npResolver
- 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-2009 The Apache Software Foundation. All Rights Reserved.