org.apache.chemistry.opencmis.client.runtime.objecttype
Class FolderTypeImpl

java.lang.Object
  extended by org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractExtensionData
      extended by org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractTypeDefinition
          extended by org.apache.chemistry.opencmis.commons.impl.dataobjects.FolderTypeDefinitionImpl
              extended by org.apache.chemistry.opencmis.client.runtime.objecttype.FolderTypeImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, FolderType, ObjectType, ExtensionsData, FolderTypeDefinition, TypeDefinition

public class FolderTypeImpl
extends FolderTypeDefinitionImpl
implements FolderType

Folder type.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.apache.chemistry.opencmis.client.api.ObjectType
DOCUMENT_BASETYPE_ID, FOLDER_BASETYPE_ID, POLICY_BASETYPE_ID, RELATIONSHIP_BASETYPE_ID
 
Constructor Summary
FolderTypeImpl(Session session, FolderTypeDefinition typeDefinition)
           
 
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()).
 java.util.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 class org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractTypeDefinition
addPropertyDefinition, clone, getBaseTypeId, getDescription, getDisplayName, getId, getLocalName, getLocalNamespace, getParentTypeId, getPropertyDefinitions, getQueryName, initialize, isControllableAcl, isControllablePolicy, isCreatable, isFileable, isFulltextIndexed, isIncludedInSupertypeQuery, isQueryable, setBaseTypeId, setDescription, setDisplayName, setId, setIsControllableAcl, setIsControllablePolicy, setIsCreatable, setIsFileable, setIsFulltextIndexed, setIsIncludedInSupertypeQuery, setIsQueryable, setLocalName, setLocalNamespace, setParentTypeId, setPropertyDefinitions, setQueryName, toString
 
Methods inherited from class org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractExtensionData
getExtensions, setExtensions
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

FolderTypeImpl

public FolderTypeImpl(Session session,
                      FolderTypeDefinition typeDefinition)
Method Detail

getBaseType

public ObjectType getBaseType()
Description copied from interface: ObjectType
Get the type's base type, if the type is a derived (non-base) type.

Specified by:
getBaseType in interface ObjectType
Returns:
the base type this type is derived from, or null if it is a base type (isBase()==true).

getChildren

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

Specified by:
getChildren in interface ObjectType
Returns:
a List of types which are directly derived from this type.

getDescendants

public java.util.List<Tree<ObjectType>> getDescendants(int depth)
Description copied from interface: ObjectType
Get the list of all types somehow derived from this type.

Specified by:
getDescendants in interface ObjectType
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).

getParentType

public ObjectType getParentType()
Description copied from interface: ObjectType
Get the type's parent type, if the type is a derived (non-base) type.

Specified by:
getParentType in interface ObjectType
Returns:
the parent type from which this type is derived, or null if it is a base type ( isBase()==true).

isBaseType

public boolean isBaseType()
Description copied from interface: ObjectType
Indicates if this is base object type (i.e. if getId() returns ..._BASETYPE_ID.

Specified by:
isBaseType in interface ObjectType
Returns:
true if this type is a base type, false if this type is a derived type.


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