Enum Class InheritanceRelationship
java.lang.Object
java.lang.Enum<InheritanceRelationship>
com.inductiveautomation.ignition.common.tags.model.InheritanceRelationship
- All Implemented Interfaces:
Serializable
,Comparable<InheritanceRelationship>
,Constable
Represents the inheritance relationship between two types (described as "type A" and "type B" in relation to the
values).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionType A is a direct sub-type of Type B.Type A is the direct parent of Type BIndicates that type information is missing for one of the idsBoth types are known, but not related.If both types are equalType A is a sub type ancestor of Type B, but not a direct sub type.Type A is a super ancestor of Type B, but not its direct supertype. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether this relationship is "compatible" with the other- if it's equal, or if this is more permissive than the actual relationship.static InheritanceRelationship
fromString
(String value) invert()
Inverts the relationship.boolean
isDeep()
static InheritanceRelationship
Returns the enum constant of this class with the specified name.static InheritanceRelationship[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MissingTypeInfo
Indicates that type information is missing for one of the ids -
None
Both types are known, but not related. -
Same
If both types are equal -
DirectSuperType
Type A is the direct parent of Type B -
SuperType
Type A is a super ancestor of Type B, but not its direct supertype. -
DirectSubType
Type A is a direct sub-type of Type B. -
SubType
Type A is a sub type ancestor of Type B, but not a direct sub type.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
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.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
compatible
Returns whether this relationship is "compatible" with the other- if it's equal, or if this is more permissive than the actual relationship. -
invert
Inverts the relationship. Only applicable for sub/super types. Other values return themselves. -
isDeep
public boolean isDeep() -
fromString
-