|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractExtensionData
org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractTypeDefinition
org.apache.chemistry.opencmis.commons.impl.dataobjects.RelationshipTypeDefinitionImpl
org.apache.chemistry.opencmis.client.runtime.objecttype.RelationshipTypeImpl
public class RelationshipTypeImpl
Relationship type.
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 | |
---|---|
RelationshipTypeImpl(Session session,
RelationshipTypeDefinition typeDefinition)
|
Method Summary | |
---|---|
java.util.List<ObjectType> |
getAllowedSourceTypes()
Get the list of object types, allowed as source for relationships of this type. |
java.util.List<ObjectType> |
getAllowedTargetTypes()
Get the list of object types, allowed as target for relationships of this type. |
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.RelationshipTypeDefinitionImpl |
---|
getAllowedSourceTypeIds, getAllowedTargetTypeIds, setAllowedSourceTypes, setAllowedTargetTypes |
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 |
---|
public RelationshipTypeImpl(Session session, RelationshipTypeDefinition typeDefinition)
Method Detail |
---|
public ObjectType getBaseType()
ObjectType
getBaseType
in interface ObjectType
null
if it is
a base type (isBase()==true
).public ItemIterable<ObjectType> getChildren()
ObjectType
getParent()
).
getChildren
in interface ObjectType
List
of types which are directly derived from this
type.public java.util.List<Tree<ObjectType>> getDescendants(int depth)
ObjectType
getDescendants
in interface ObjectType
depth
- the depth to which the derived types should be resolved.
Tree
of types which are derived from this type (direct
and via their parents).public ObjectType getParentType()
ObjectType
getParentType
in interface ObjectType
null
if it is a base type ( isBase()==true
).public boolean isBaseType()
ObjectType
getId()
returns
..._BASETYPE_ID
.
isBaseType
in interface ObjectType
true
if this type is a base type, false
if this
type is a derived type.public java.util.List<ObjectType> getAllowedSourceTypes()
RelationshipType
getAllowedSourceTypes
in interface RelationshipType
public java.util.List<ObjectType> getAllowedTargetTypes()
RelationshipType
getAllowedTargetTypes
in interface RelationshipType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |