Package io.adminshell.aas.v3.model.impl
Class DefaultKey
- java.lang.Object
-
- io.adminshell.aas.v3.model.impl.DefaultKey
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultKey.BuilderThis builder class can be used to construct a DefaultKey bean.
-
Field Summary
Fields Modifier and Type Field Description protected KeyTypeidTypeprotected KeyElementstypeprotected java.lang.Stringvalue
-
Constructor Summary
Constructors Constructor Description DefaultKey()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)KeyTypegetIdType()Type of the key value.KeyElementsgetType()Denote which kind of entity is referenced.java.lang.StringgetValue()The key value, for example an IRDI if the idType=Irdi.inthashCode()voidsetIdType(KeyType idType)Type of the key value.voidsetType(KeyElements type)Denote which kind of entity is referenced.voidsetValue(java.lang.String value)The key value, for example an IRDI if the idType=Irdi.
-
-
-
Field Detail
-
idType
protected KeyType idType
-
type
protected KeyElements type
-
value
protected java.lang.String value
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getIdType
public KeyType getIdType()
Description copied from interface:KeyType of the key value. In case of idType = idShort local shall be true. In case type=GlobalReference idType shall not be IdShort. Constraint AASd-080: In case Key/type == GlobalReference idType shall not be any LocalKeyType (IdShort, FragmentId). Constraint AASd-081: In case Key/type==AssetAdministrationShell Key/idType shall not be any LocalKeyType (IdShort, FragmentId). More information under https://admin-shell.io/aas/3/0/RC01/Key/idType
-
setIdType
public void setIdType(KeyType idType)
Description copied from interface:KeyType of the key value. In case of idType = idShort local shall be true. In case type=GlobalReference idType shall not be IdShort. Constraint AASd-080: In case Key/type == GlobalReference idType shall not be any LocalKeyType (IdShort, FragmentId). Constraint AASd-081: In case Key/type==AssetAdministrationShell Key/idType shall not be any LocalKeyType (IdShort, FragmentId). More information under https://admin-shell.io/aas/3/0/RC01/Key/idType
-
getType
public KeyElements getType()
Description copied from interface:KeyDenote which kind of entity is referenced. In case type = GlobalReference then the element is a global unique id. 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. More information under https://admin-shell.io/aas/3/0/RC01/Key/type
-
setType
public void setType(KeyElements type)
Description copied from interface:KeyDenote which kind of entity is referenced. In case type = GlobalReference then the element is a global unique id. 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. More information under https://admin-shell.io/aas/3/0/RC01/Key/type
-
getValue
public java.lang.String getValue()
Description copied from interface:KeyThe key value, for example an IRDI if the idType=Irdi. More information under https://admin-shell.io/aas/3/0/RC01/Key/value
-
setValue
public void setValue(java.lang.String value)
Description copied from interface:KeyThe key value, for example an IRDI if the idType=Irdi. More information under https://admin-shell.io/aas/3/0/RC01/Key/value
-
-