public class RelationshipTypeImpl extends RelationshipTypeDefinitionImpl implements RelationshipType, Serializable
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()
Gets the types base type, if the type is a derived (non-base) type.
|
ItemIterable<ObjectType> |
getChildren()
Gets the list of types directly derived from this type (which will return
this type on
getParent() ). |
List<Tree<ObjectType>> |
getDescendants(int depth)
Gets the list of all types somehow derived from this type.
|
ObjectType |
getParentType()
Gets the types parent type, if the type is a derived (non-base) type.
|
boolean |
isBaseType()
Indicates whether this is base object type or not.
|
getAllowedSourceTypeIds, getAllowedTargetTypeIds, setAllowedSourceTypes, setAllowedTargetTypes
addPropertyDefinition, getBaseTypeId, getDescription, getDisplayName, getId, getLocalName, getLocalNamespace, getParentTypeId, getPropertyDefinitions, getQueryName, getTypeMutability, initialize, isControllableAcl, isControllablePolicy, isCreatable, isFileable, isFulltextIndexed, isIncludedInSupertypeQuery, isQueryable, removeAllPropertyDefinitions, removePropertyDefinition, setBaseTypeId, setDescription, setDisplayName, setId, setIsControllableAcl, setIsControllablePolicy, setIsCreatable, setIsFileable, setIsFulltextIndexed, setIsIncludedInSupertypeQuery, setIsQueryable, setLocalName, setLocalNamespace, setParentTypeId, setPropertyDefinitions, setQueryName, setTypeMutability, toString
getExtensions, setExtensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBaseTypeId, getDescription, getDisplayName, getId, getLocalName, getLocalNamespace, getParentTypeId, getPropertyDefinitions, getQueryName, getTypeMutability, isControllableAcl, isControllablePolicy, isCreatable, isFileable, isFulltextIndexed, isIncludedInSupertypeQuery, isQueryable
getExtensions, setExtensions
addPropertyDefinition, removeAllPropertyDefinitions, removePropertyDefinition, setBaseTypeId, setDescription, setDisplayName, setId, setIsControllableAcl, setIsControllablePolicy, setIsCreatable, setIsFileable, setIsFulltextIndexed, setIsIncludedInSupertypeQuery, setIsQueryable, setLocalName, setLocalNamespace, setParentTypeId, setQueryName, setTypeMutability
public RelationshipTypeImpl(Session session, RelationshipTypeDefinition typeDefinition)
public ObjectType getBaseType()
ObjectType
getBaseType
in interface ObjectType
null
if it is
a base typepublic ItemIterable<ObjectType> getChildren()
ObjectType
getParent()
).getChildren
in interface ObjectType
public List<Tree<ObjectType>> getDescendants(int depth)
ObjectType
getDescendants
in interface ObjectType
depth
- the tree depth, must be greater than 0 or -1 for infinite
depthpublic ObjectType getParentType()
ObjectType
getParentType
in interface ObjectType
null
if it is a base typepublic boolean isBaseType()
ObjectType
isBaseType
in interface ObjectType
true
if this type is a base type, false
if this
type is a derived typepublic List<ObjectType> getAllowedSourceTypes()
RelationshipType
getAllowedSourceTypes
in interface RelationshipType
public List<ObjectType> getAllowedTargetTypes()
RelationshipType
getAllowedTargetTypes
in interface RelationshipType
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.