Differences between revisions 1 and 2
Revision 1 as of 2006-04-12 19:19:35
Size: 872
Editor: JukkaZitting
Comment:
Revision 2 as of 2009-09-20 23:45:20
Size: 872
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 12: Line 12:
The ["nt:file"] node type represents a file with some content. The {{{jcr:created}}} property inherited from ["nt:hierarchyNode"] contains the file creation time, while any other file metadata and the file contents can be found in the {{{jcr:content}}} child node. The [[nt:file]] node type represents a file with some content. The {{{jcr:created}}} property inherited from [[nt:hierarchyNode]] contains the file creation time, while any other file metadata and the file contents can be found in the {{{jcr:content}}} child node.
Line 14: Line 14:
The {{{jcr:content}}} child node can be of any node type to allow maximum flexibility, but the ["nt:resource"] node type is the common choice for {{{jcr:content}}} nodes. The {{{jcr:content}}} child node can be of any node type to allow maximum flexibility, but the [[nt:resource]] node type is the common choice for {{{jcr:content}}} nodes.
Line 18: Line 18:
 * ["nt:file"] is a ["nt:hierarchyNode"] subtype
 * ["nt:file"]s are usually child nodes of ["nt:folder"]
 * The {{{jcr:content}}} child node is allowed to be of any node type, but ["nt:resource"] is the normal choice
 * [[nt:file]] is a [[nt:hierarchyNode]] subtype
 * [[nt:file]]s are usually child nodes of [[nt:folder]]
 * The {{{jcr:content}}} child node is allowed to be of any node type, but [[nt:resource]] is the normal choice

JCR representation of a file.

Definition

[nt:file] > nt:hierarchyNode
+ jcr:content primary mandatory

Description

The nt:file node type represents a file with some content. The jcr:created property inherited from nt:hierarchyNode contains the file creation time, while any other file metadata and the file contents can be found in the jcr:content child node.

The jcr:content child node can be of any node type to allow maximum flexibility, but the nt:resource node type is the common choice for jcr:content nodes.

Comments and questions

nt:file (last edited 2009-09-20 23:45:20 by localhost)