JCR representation of a file.


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


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)