Interface InheritanceOriginMetadata
Node metadata indicating where a node was inherited from.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NodeMetadataKey<InheritanceOriginMetadata>TheNodeMetadataKeyforInheritanceOriginMetadata. -
Method Summary
Modifier and TypeMethodDescriptionGets the location where theNodeis inherited from.default booleanGets whether the associated node was inherited from another holder.
-
Field Details
-
KEY
TheNodeMetadataKeyforInheritanceOriginMetadata.
-
-
Method Details
-
getOrigin
@NonNull PermissionHolder.Identifier getOrigin()Gets the location where theNodeis inherited from.The resultant string is the
object nameof the permission holder the node was inherited from.If the node was not inherited, the
object nameof the permission holder itself (the one that defined the node) will be returned.- Returns:
- where the node was inherited from.
-
getDataType
- Returns:
- the type of the NodeMap the node was inherited from.
- Since:
- 5.4
-
wasInherited
Gets whether the associated node was inherited from another holder.In other terms, it returns whether the origin is not equal to the given holder.
- Parameters:
holder- the holder defining the node- Returns:
- if true the node was inherited, false if it was defined by the same holder
- Since:
- 5.3
-