public class RelationshipDef extends TypeDef
createdBy, createTime, description, descriptionGUID, externalStandardMappings, initialStatus, options, origin, propertiesDefinition, superType, updatedBy, updateTime, validInstanceStatusListcategory, version, versionNameguid, nameCURRENT_TYPE_DEF_HEADER_VERSION| Constructor and Description |
|---|
RelationshipDef()
Minimal constructor builds an empty RelationshipDef
|
RelationshipDef(RelationshipDef templateTypeDef)
Copy/clone constructor creates a copy of the supplied template.
|
RelationshipDef(TypeDefCategory category,
String guid,
String name,
long version,
String versionName)
Typical constructor is passed the properties of the typedef's super class being constructed.
|
| Modifier and Type | Method and Description |
|---|---|
TypeDef |
cloneFromSubclass()
Delegate the process of cloning to the subclass.
|
boolean |
equals(Object objectToCompare)
Verify that supplied object has the same properties.
|
RelationshipEndDef |
getEndDef1()
Return the details associated with the first end of the relationship.
|
RelationshipEndDef |
getEndDef2()
Return the details associated with the second end of the relationship.
|
ClassificationPropagationRule |
getPropagationRule()
Return the rule that determines if classifications are propagated across this relationship.
|
void |
setEndDef1(RelationshipEndDef endDef1)
Set up the details associated with the first end of the relationship.
|
void |
setEndDef2(RelationshipEndDef endDef2)
Set up the details associated with the second end of the relationship.
|
void |
setPropagationRule(ClassificationPropagationRule propagationRule)
Set up the rule that determines if classifications are propagated across this relationship.
|
String |
toString()
Standard toString method.
|
getCreatedBy, getCreateTime, getDescription, getDescriptionGUID, getExternalStandardMappings, getInitialStatus, getOptions, getOrigin, getPropertiesDefinition, getSuperType, getUpdatedBy, getUpdateTime, getValidInstanceStatusList, hashCode, setCreatedBy, setCreateTime, setDescription, setDescriptionGUID, setExternalStandardMappings, setInitialStatus, setOptions, setOrigin, setPropertiesDefinition, setSuperType, setUpdatedBy, setUpdateTime, setValidInstanceStatusListgetCategory, getVersion, getVersionName, setCategory, setVersion, setVersionNamegetGUID, getName, setGUID, setNamegetHeaderVersion, setHeaderVersionpublic RelationshipDef()
public RelationshipDef(TypeDefCategory category, String guid, String name, long version, String versionName)
category - category of this TypeDefguid - unique id for the TypeDefname - unique name for the TypeDefversion - active version number for the TypeDefversionName - name for the active version of the TypeDefpublic RelationshipDef(RelationshipDef templateTypeDef)
templateTypeDef - template to copypublic TypeDef cloneFromSubclass()
cloneFromSubclass in class TypeDefpublic ClassificationPropagationRule getPropagationRule()
public void setPropagationRule(ClassificationPropagationRule propagationRule)
propagationRule - ClassificationPropagationRule Enumpublic RelationshipEndDef getEndDef1()
public void setEndDef1(RelationshipEndDef endDef1)
endDef1 - RelationshipEndDefpublic RelationshipEndDef getEndDef2()
public void setEndDef2(RelationshipEndDef endDef2)
endDef2 - RelationshipEndDefpublic String toString()
Copyright © 2018–2019 ODPi. All rights reserved.