Class CompactNodeTypeDefWriter


  • public class CompactNodeTypeDefWriter
    extends CompactNodeTypeDefWriter
    Prints node type defs in a compact notation Print Format: <ex = "http://apache.org/jackrabbit/example"> [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 Detail

      • CompactNodeTypeDefWriter

        public CompactNodeTypeDefWriter​(Writer out,
                                        Session s,
                                        boolean includeNS)
        Creates a new nodetype writer based on a session
        Parameters:
        out - the underlying writer
        s - repository session
        includeNS - if true all used namespace declarations are also written to the writer
      • CompactNodeTypeDefWriter

        public CompactNodeTypeDefWriter​(Writer out,
                                        NamespaceResolver r,
                                        boolean includeNS)
        Creates a new nodetype writer based on a namespace resolver
        Parameters:
        out - the underlying writer
        r - the namespace resolver
        includeNS - if true all used namespace decl. are also written to the writer
      • CompactNodeTypeDefWriter

        public CompactNodeTypeDefWriter​(Writer out,
                                        NamespaceResolver r,
                                        NamePathResolver npResolver)
        Creates a new nodetype writer that does not include namespaces.
        Parameters:
        out - the underlying writer
        r - the namespace resolver
        npResolver - name-path resolver
      • CompactNodeTypeDefWriter

        public CompactNodeTypeDefWriter​(Writer out,
                                        NamespaceResolver r,
                                        NamePathResolver npResolver,
                                        boolean includeNS)
        Creates a new nodetype writer
        Parameters:
        out - the underlying writer
        r - the namespace resolver
        npResolver - name-path resolver
        includeNS - if true all used namespace decl. are also written to the writer