org.apache.chemistry.opencmis.client.runtime.objecttype
Class FolderTypeImpl
java.lang.Object
org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractExtensionData
org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractTypeDefinition
org.apache.chemistry.opencmis.commons.impl.dataobjects.FolderTypeDefinitionImpl
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
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 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 |
FolderTypeImpl
public FolderTypeImpl(Session session,
FolderTypeDefinition typeDefinition)
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.