public class RelationshipTypeImpl extends RelationshipTypeDefinitionImpl implements RelationshipType, Serializable
DOCUMENT_BASETYPE_ID, FOLDER_BASETYPE_ID, POLICY_BASETYPE_ID, RELATIONSHIP_BASETYPE_ID| Constructor and Description |
|---|
RelationshipTypeImpl(Session session,
RelationshipTypeDefinition typeDefinition) |
| Modifier and Type | Method and Description |
|---|---|
List<ObjectType> |
getAllowedSourceTypes()
Get the list of object types, allowed as source for relationships of this
type.
|
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()). |
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.
|
getAllowedSourceTypeIds, getAllowedTargetTypeIds, setAllowedSourceTypes, setAllowedTargetTypesaddPropertyDefinition, clone, getBaseTypeId, getDescription, getDisplayName, getId, getLocalName, getLocalNamespace, getParentTypeId, getPropertyDefinitions, getQueryName, getTypeMutability, initialize, isControllableAcl, isControllablePolicy, isCreatable, isFileable, isFulltextIndexed, isIncludedInSupertypeQuery, isQueryable, setBaseTypeId, setDescription, setDisplayName, setId, setIsControllableAcl, setIsControllablePolicy, setIsCreatable, setIsFileable, setIsFulltextIndexed, setIsIncludedInSupertypeQuery, setIsQueryable, setLocalName, setLocalNamespace, setParentTypeId, setPropertyDefinitions, setQueryName, setTypeMutability, toStringgetExtensions, setExtensionsequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBaseTypeId, getDescription, getDisplayName, getId, getLocalName, getLocalNamespace, getParentTypeId, getPropertyDefinitions, getQueryName, getTypeMutability, isControllableAcl, isControllablePolicy, isCreatable, isFileable, isFulltextIndexed, isIncludedInSupertypeQuery, isQueryablegetExtensions, setExtensionspublic RelationshipTypeImpl(Session session, RelationshipTypeDefinition typeDefinition)
public ObjectType getBaseType()
ObjectTypegetBaseType in interface ObjectTypenull if it is
a base type (isBase()==true).public ItemIterable<ObjectType> getChildren()
ObjectTypegetParent()).getChildren in interface ObjectTypeList of types which are directly derived from this
type.public List<Tree<ObjectType>> getDescendants(int depth)
ObjectTypegetDescendants in interface ObjectTypedepth - 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()
ObjectTypegetParentType in interface ObjectTypenull
if it is a base type ( isBase()==true).public boolean isBaseType()
ObjectTypegetId() returns
..._BASETYPE_ID.isBaseType in interface ObjectTypetrue if this type is a base type, false if this
type is a derived type.public List<ObjectType> getAllowedSourceTypes()
RelationshipTypegetAllowedSourceTypes in interface RelationshipTypepublic List<ObjectType> getAllowedTargetTypes()
RelationshipTypegetAllowedTargetTypes in interface RelationshipTypeCopyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.