Class EnhancedKey<EnhancementT>

java.lang.Object
aas_core.aas3_0.enhancing.Enhanced<EnhancementT>
aas_core.aas3_0.enhancing.EnhancedKey<EnhancementT>
All Implemented Interfaces:
IClass, IKey

public class EnhancedKey<EnhancementT> extends Enhanced<EnhancementT> implements IKey
  • Constructor Details

  • Method Details

    • getType

      public KeyTypes getType()
      Description copied from interface: IKey
      Denotes which kind of entity is referenced.

      In case IKey.getType() = KeyTypes.GLOBAL_REFERENCE, the key represents a reference to a source that can be globally identified.

      In case IKey.getType() = KeyTypes.FRAGMENT_REFERENCE the key represents a bookmark or a similar local identifier within its parent element as specified by the key that precedes this key.

      In all other cases the key references a model element of the same or of another AAS. The name of the model element is explicitly listed.

      Specified by:
      getType in interface IKey
    • setType

      public void setType(KeyTypes type)
      Specified by:
      setType in interface IKey
    • getValue

      public String getValue()
      Description copied from interface: IKey
      The key value, for example an IRDI or an URI
      Specified by:
      getValue in interface IKey
    • setValue

      public void setValue(String value)
      Specified by:
      setValue in interface IKey
    • descendOnce

      public Iterable<IClass> descendOnce()
      Description copied from interface: IClass
      Iterate over all the class instances referenced from this instance without further recursion.
      Specified by:
      descendOnce in interface IClass
    • descend

      public Iterable<IClass> descend()
      Description copied from interface: IClass
      Iterate recursively over all the class instances referenced from this instance.
      Specified by:
      descend in interface IClass
    • accept

      public void accept(IVisitor visitor)
      Description copied from interface: IClass
      Accept the visitor to visit this instance for double dispatch.
      Specified by:
      accept in interface IClass
    • accept

      public <ContextT> void accept(IVisitorWithContext<ContextT> visitor, ContextT context)
      Description copied from interface: IClass
      Accept the visitor to visit this instance for double dispatch with the context.
      Specified by:
      accept in interface IClass
    • transform

      public <T> T transform(ITransformer<T> transformer)
      Description copied from interface: IClass
      Accept the transformer to transform this instance for double dispatch.
      Specified by:
      transform in interface IClass
    • transform

      public <ContextT, T> T transform(ITransformerWithContext<ContextT,T> transformer, ContextT context)
      Description copied from interface: IClass
      Accept the transformer to visit this instance for double dispatch with the context.
      Specified by:
      transform in interface IClass