Describes a type of document in the repository.
Instances are retrieved from
RepositorySchema .
A document type has some general properties like a name (which must
be unique), and a locale-sensitive label and description. Next to these,
a document type is associated with a number of
FieldType s
and
PartType s.
The part types and field types belonging to a document type are
ordered collections: the order in which you add them matters. To
reorder them, first remove them all and re-add them.
A document type object can be read-only, in which case all state-modifying
methods (i.e. all setters and the save method) will throw a RuntimeException.
Whether a document type object is read-only or not depends on where you
retrieved it from. The purpose of read-only document type objects is for
caching, i.e. the same object can be used by multiple users who only which
to consult the document type information, but not modify it.
The equals method for DocumentType is supported, two document types are
equal if all their defining data is equal, with exception of the ID.
|