Enum Class ClassificationOrigin
- All Implemented Interfaces:
public enum ClassificationOrigin extends Enum<ClassificationOrigin> implements Serializable
ClassificationOrigin describes the provenance of a classification attached to an entity. Most classifications are explicitly assigned to an entity. However, it is possible for some classifications to flow along relationships to other entities. These are the propagated classifications. Each entity can only have one classification of a certain type. A propagated classification can not override an assigned classification. Classifications can only be attached to entities of specific types. However a propagated classification can flow through an entity that does not support the particular type of classification and then on to other relationships attached to the entity. The ClassificationPropagateRule in the relationship's RelationshipDef defines where the classification can flow to. Note: the repository services have no mechanism to automatically propagate classifications. This is set up by higher level services working with knowledge of the specific instance types of metadata and their significance.
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant SummaryEnum ConstantDescription
Method SummaryModifier and TypeMethodDescriptionReturn the default description of the classification origin.
getName()Return the default name of the classification origin.
intReturn the numeric representation of the classification origin.
static ClassificationOriginReturns the enum constant of this class with the specified name.
values()Returns an array containing the constants of this enum class, in the order they are declared.
Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
Enum Constant Details
ASSIGNEDpublic static final ClassificationOrigin ASSIGNED
PROPAGATEDpublic static final ClassificationOrigin PROPAGATED
valuespublic static ClassificationOrigin values()Returns an array containing the constants of this enum class, in the order they are declared.
- an array containing the constants of this enum class, in the order they are declared
valueOfpublic static ClassificationOrigin valueOf
(String name)Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
name- the name of the enum constant to be returned.
- the enum constant with the specified name
IllegalArgumentException- if this enum class has no constant with the specified name
NullPointerException- if the argument is null
getOrdinalpublic int getOrdinal()Return the numeric representation of the classification origin.
- int ordinal
getNamepublic String getName()Return the default name of the classification origin.
- String name
getDescriptionpublic String getDescription()Return the default description of the classification origin.
- String description
toStringpublic String toString()toString() JSON-style
- string description