Class AbstractAasElement
java.lang.Object
de.iip_ecosphere.platform.configuration.easyProducer.aas.AbstractAasElement
- Direct Known Subclasses:
AasEnum,AasEnumLiteral,AasField,AasType
Abstract superclass for AAS elements.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance.Copies values ofelt. -
Method Summary
Modifier and TypeMethodDescriptionReturns the description/explanation.Returns the display name if defined orgetIdShort().Returns the idShort without multi-value counting suffix.Returns "isCaseOf" semantic id.Returns the semantic id of this field.booleanReturns whether this field has multiple semantic ids, i.e.,getSemanticId()returns a possible one.booleanReturns whether this field is generic, i.e., an indication that further fields may be added.(package private) voidsetDescription(String description) Sets the description/explanation of this field.(package private) voidsetDisplayName(String displayName) Sets the display name.(package private) voidsetGeneric(boolean isGeneric) Changes whether this field is generic, i.e., an indication that further fields may be added.(package private) voidsetIdShort(String idShort) Defines the idShort.(package private) voidsetIsCaseOf(String isCaseOf) Sets the "isCaseOf" semantic id.(package private) voidsetMultiSemanticIds(boolean hasMultiSemanticIds) Defines whether this field has multiple semantic ids, i.e.,getSemanticId()returns a possible one.(package private) voidsetSemanticId(String semanticId) Sets the semantic id of this field.toString()
-
Field Details
-
idShort
-
semanticId
-
isCaseOf
-
description
-
hasMultiSemanticIds
private boolean hasMultiSemanticIds -
isGeneric
private boolean isGeneric -
displayName
-
-
Constructor Details
-
AbstractAasElement
public AbstractAasElement()Creates an instance. -
AbstractAasElement
Copies values ofelt.- Parameters:
elt- the source element
-
-
Method Details
-
setIdShort
Defines the idShort.- Parameters:
idShort- the idShort without multi-value counting suffix.
-
getIdShort
Returns the idShort without multi-value counting suffix.- Returns:
- the idShort
-
setSemanticId
Sets the semantic id of this field.- Parameters:
semanticId- the semantic id in format of the AAS abstraction of the platform, i.e., prefixed with identifier fromIdentifierType, may be null for none
-
getSemanticId
Returns the semantic id of this field.- Returns:
- the semantic id in format of the AAS abstraction of the platform, i.e.,
prefixed with identifier from
IdentifierType, may be null for none
-
setMultiSemanticIds
void setMultiSemanticIds(boolean hasMultiSemanticIds) Defines whether this field has multiple semantic ids, i.e.,getSemanticId()returns a possible one.- Parameters:
hasMultiSemanticIds- if the field has multiple semantic ids
-
hasMultiSemanticIds
public boolean hasMultiSemanticIds()Returns whether this field has multiple semantic ids, i.e.,getSemanticId()returns a possible one.- Returns:
- if the field has multiple semantic ids
-
setIsCaseOf
Sets the "isCaseOf" semantic id.- Parameters:
isCaseOf- the "isCaseOf" semantic id in format of the AAS abstraction of the platform, i.e., prefixed with identifier fromIdentifierType
-
getIsCaseOf
Returns "isCaseOf" semantic id.- Returns:
- the semantic id in format of the AAS abstraction of the platform, i.e.,
prefixed with identifier from
IdentifierType, may be null for none
-
isGeneric
public boolean isGeneric()Returns whether this field is generic, i.e., an indication that further fields may be added.- Returns:
- if the field is generic
-
setGeneric
void setGeneric(boolean isGeneric) Changes whether this field is generic, i.e., an indication that further fields may be added.- Parameters:
isGeneric- if the field is generic
-
setDescription
Sets the description/explanation of this field. Adds a full stop to the end if there is none.- Parameters:
description- the description/explanation
-
getDescription
Returns the description/explanation.- Returns:
- the description/explanation
-
toString
-
setDisplayName
Sets the display name.- Parameters:
displayName- the type name
-
getDisplayName
Returns the display name if defined orgetIdShort().- Returns:
- the display name
-