org.apache.chemistry.opencmis.client.api
Interface ObjectType

All Superinterfaces:
ExtensionsData, Serializable, TypeDefinition
All Known Subinterfaces:
DocumentType, FolderType, PolicyType, RelationshipType

public interface ObjectType
extends TypeDefinition

Object Type.

See CMIS Domain Model - section 2.1.3.


Field Summary
static String DOCUMENT_BASETYPE_ID
           
static String FOLDER_BASETYPE_ID
           
static String POLICY_BASETYPE_ID
           
static String RELATIONSHIP_BASETYPE_ID
           
 
Method Summary
 ObjectType getBaseType()
          Get the type's base type, if the type is a derived (non-base) type.
 ItemIterable<ObjectType> getChildren()
          Get the list of types directly derived from this type (which will return this type on getParent()).
 List<Tree<ObjectType>> getDescendants(int depth)
          Get the list of all types somehow derived from this type.
 ObjectType getParentType()
          Get the type's parent type, if the type is a derived (non-base) type.
 boolean isBaseType()
          Indicates if this is base object type (i.e.
 
Methods inherited from interface org.apache.chemistry.opencmis.commons.definitions.TypeDefinition
getBaseTypeId, getDescription, getDisplayName, getId, getLocalName, getLocalNamespace, getParentTypeId, getPropertyDefinitions, getQueryName, isControllableAcl, isControllablePolicy, isCreatable, isFileable, isFulltextIndexed, isIncludedInSupertypeQuery, isQueryable
 
Methods inherited from interface org.apache.chemistry.opencmis.commons.data.ExtensionsData
getExtensions, setExtensions
 

Field Detail

DOCUMENT_BASETYPE_ID

static final String DOCUMENT_BASETYPE_ID

FOLDER_BASETYPE_ID

static final String FOLDER_BASETYPE_ID

RELATIONSHIP_BASETYPE_ID

static final String RELATIONSHIP_BASETYPE_ID

POLICY_BASETYPE_ID

static final String POLICY_BASETYPE_ID
Method Detail

isBaseType

boolean isBaseType()
Indicates if this is base object type (i.e. if getId() returns ..._BASETYPE_ID.

Returns:
true if this type is a base type, false if this type is a derived type.

getBaseType

ObjectType getBaseType()
Get the type's base type, if the type is a derived (non-base) type.

Returns:
the base type this type is derived from, or null if it is a base type (isBase()==true).
Throws:
CmisRuntimeException

getParentType

ObjectType getParentType()
Get the type's parent type, if the type is a derived (non-base) type.

Returns:
the parent type from which this type is derived, or null if it is a base type ( isBase()==true).
Throws:
CmisRuntimeException

getChildren

ItemIterable<ObjectType> getChildren()
Get the list of types directly derived from this type (which will return this type on getParent()).

Returns:
a List of types which are directly derived from this type.

getDescendants

List<Tree<ObjectType>> getDescendants(int depth)
Get the list of all types somehow derived from this type.

Parameters:
depth - the depth to which the derived types should be resolved.
Returns:
a Tree of types which are derived from this type (direct and via their parents).


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.