Class DefaultReference

  • All Implemented Interfaces:
    Reference

    public class DefaultReference
    extends java.lang.Object
    implements Reference
    Default implementation of package io.adminshell.aas.v3.model.Reference Reference to either a model element of the same or another AAs or to an external entity. A reference is an ordered list of keys, each key referencing an element. The complete list of keys may for example be concatenated to a path that then gives unique access to an element or entity.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  DefaultReference.Builder
      This builder class can be used to construct a DefaultReference bean.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List<Key> keys  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.util.List<Key> getKeys()
      Unique reference in its name space.
      int hashCode()  
      void setKeys​(java.util.List<Key> keys)
      Unique reference in its name space.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • keys

        protected java.util.List<Key> keys
    • Constructor Detail

      • DefaultReference

        public DefaultReference()
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getKeys

        public java.util.List<Key> getKeys()
        Description copied from interface: Reference
        Unique reference in its name space. More information under https://admin-shell.io/aas/3/0/RC01/Reference/key
        Specified by:
        getKeys in interface Reference
        Returns:
        Returns the List of Keys for the property keys.
      • setKeys

        public void setKeys​(java.util.List<Key> keys)
        Description copied from interface: Reference
        Unique reference in its name space. More information under https://admin-shell.io/aas/3/0/RC01/Reference/key
        Specified by:
        setKeys in interface Reference
        Parameters:
        keys - desired value for the property keys.