Package io.adminshell.aas.v3.model.impl
Class DefaultIdentifier
- java.lang.Object
-
- io.adminshell.aas.v3.model.impl.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 classDefaultIdentifier.BuilderThis builder class can be used to construct a DefaultIdentifier bean.
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringidentifierprotected IdentifierTypeidType
-
Constructor Summary
Constructors Constructor Description DefaultIdentifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetIdentifier()A globally unique identifier which might not be a URI.IdentifierTypegetIdType()Type of the Identifier, e.g.inthashCode()voidsetIdentifier(java.lang.String identifier)A globally unique identifier which might not be a URI.voidsetIdType(IdentifierType idType)Type of the Identifier, e.g.
-
-
-
Field Detail
-
idType
protected IdentifierType idType
-
identifier
protected java.lang.String identifier
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getIdentifier
public java.lang.String getIdentifier()
Description copied from interface:IdentifierA 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:
getIdentifierin interfaceIdentifier- Returns:
- Returns the String for the property identifier.
-
setIdentifier
public void setIdentifier(java.lang.String identifier)
Description copied from interface:IdentifierA 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:
setIdentifierin interfaceIdentifier- Parameters:
identifier- desired value for the property identifier.
-
getIdType
public IdentifierType getIdType()
Description copied from interface:IdentifierType 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:
getIdTypein interfaceIdentifier- Returns:
- Returns the IdentifierType for the property idType.
-
setIdType
public void setIdType(IdentifierType idType)
Description copied from interface:IdentifierType 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:
setIdTypein interfaceIdentifier- Parameters:
idType- desired value for the property idType.
-
-