Class DefaultIdentifier

  • All Implemented Interfaces:
    Identifier

    public class DefaultIdentifier
    extends java.lang.Object
    implements Identifier
    Default implementation of package io.adminshell.aas.v3.model.Identifier Used to uniquely identify an entity by using an identifier.
    • Nested Class Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getIdentifier()
      A globally unique identifier which might not be a URI.
      IdentifierType getIdType()
      Type of the Identifier, e.g.
      int hashCode()  
      void setIdentifier​(java.lang.String identifier)
      A globally unique identifier which might not be a URI.
      void setIdType​(IdentifierType idType)
      Type of the Identifier, e.g.
      • Methods inherited from class java.lang.Object

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

      • identifier

        protected java.lang.String identifier
    • Constructor Detail

      • DefaultIdentifier

        public DefaultIdentifier()
    • 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
      • getIdentifier

        public java.lang.String getIdentifier()
        Description copied from interface: Identifier
        A globally unique identifier which might not be a URI. Its type is defined in idType. More information under https://admin-shell.io/aas/3/0/RC01/Identifier/identifier
        Specified by:
        getIdentifier in interface Identifier
        Returns:
        Returns the String for the property identifier.
      • setIdentifier

        public void setIdentifier​(java.lang.String identifier)
        Description copied from interface: Identifier
        A globally unique identifier which might not be a URI. Its type is defined in idType. More information under https://admin-shell.io/aas/3/0/RC01/Identifier/identifier
        Specified by:
        setIdentifier in interface Identifier
        Parameters:
        identifier - desired value for the property identifier.
      • getIdType

        public IdentifierType getIdType()
        Description copied from interface: Identifier
        Type of the Identifier, e.g. Iri, Irdi etc. The supported Identifier types are defined in the enumeration 'IdentifierType'. More information under https://admin-shell.io/aas/3/0/RC01/Identifier/idType
        Specified by:
        getIdType in interface Identifier
        Returns:
        Returns the IdentifierType for the property idType.
      • setIdType

        public void setIdType​(IdentifierType idType)
        Description copied from interface: Identifier
        Type of the Identifier, e.g. Iri, Irdi etc. The supported Identifier types are defined in the enumeration 'IdentifierType'. More information under https://admin-shell.io/aas/3/0/RC01/Identifier/idType
        Specified by:
        setIdType in interface Identifier
        Parameters:
        idType - desired value for the property idType.