Class AasEnum
java.lang.Object
de.iip_ecosphere.platform.configuration.easyProducer.aas.AbstractAasElement
de.iip_ecosphere.platform.configuration.easyProducer.aas.AasEnum
Represents an AAS enumeration.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate List<AasEnumLiteral> private ParsingEnumKind -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidaddLiteral(AasEnumLiteral literal) Adds a literal.(package private) ParsingEnumKindReturns the internal/temporary parsing enum kind.(package private) booleanisLast(AasEnumLiteral literal) Returns whether the given literal is the last one inliterals().booleanisOpen()Returns whether this enum shall be considered open for additions.literals()Returns the literals of this enum.(package private) voidsetIsOpen(boolean isOpen) Defines whether this enum shall be considered open for additions.(package private) voidsetParsingEnumKind(ParsingEnumKind parsingEnumKind) Defines the internal/temporary parsing enum kind, i.e., the kind of structure this enum was parsed/created from.Methods inherited from class de.iip_ecosphere.platform.configuration.easyProducer.aas.AbstractAasElement
getDescription, getDisplayName, getIdShort, getIsCaseOf, getSemanticId, hasMultiSemanticIds, isGeneric, setDescription, setDisplayName, setGeneric, setIdShort, setIsCaseOf, setMultiSemanticIds, setSemanticId, toString
-
Field Details
-
literals
-
isOpen
private boolean isOpen -
parsingEnumKind
-
-
Constructor Details
-
AasEnum
Creates a new AAS enumeration.- Parameters:
idShort- the idShort denoting the type
-
AasEnum
Turns atypeinto an enum.- Parameters:
type- the type to take the data fromkind- the enum parsing kindidShortModifier- optional modifier for the idShort, may be null
-
-
Method Details
-
setIsOpen
void setIsOpen(boolean isOpen) Defines whether this enum shall be considered open for additions.- Parameters:
isOpen- whether this enum shall be considered open
-
isOpen
public boolean isOpen()Returns whether this enum shall be considered open for additions.- Returns:
- whether this enum shall be considered open
-
setParsingEnumKind
Defines the internal/temporary parsing enum kind, i.e., the kind of structure this enum was parsed/created from.- Parameters:
parsingEnumKind- the parsing enum kind
-
getParsingEnumKind
ParsingEnumKind getParsingEnumKind()Returns the internal/temporary parsing enum kind.- Returns:
- the parsing enum kind
-
addLiteral
Adds a literal.- Parameters:
literal- the literal
-
literals
Returns the literals of this enum.- Returns:
- the literals
-
isLast
Returns whether the given literal is the last one inliterals().- Parameters:
literal- the literal- Returns:
truefor the last one,falseelse
-