Class ParsingUtils.AasEnumResultHandler
java.lang.Object
de.iip_ecosphere.platform.configuration.easyProducer.aas.ParsingUtils.AasEnumResultHandler
- Enclosing class:
ParsingUtils
Encapsulation of enumeration storage structure to enable notifications for multi-row enumeration
specifications as in IDTA-02023-0-9.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAasEnumResultHandler(List<AasEnum> enums) Creates a result handler instance for the givenenumswithout notifier.AasEnumResultHandler(List<AasEnum> enums, Consumer<AasEnum> notifier) Creates a result handler instance for the givenenumswitht notifier. -
Method Summary
-
Field Details
-
enums
-
notifier
-
-
Constructor Details
-
AasEnumResultHandler
Creates a result handler instance for the givenenumswithout notifier.- Parameters:
enums- the collection of known enumerations
-
AasEnumResultHandler
Creates a result handler instance for the givenenumswitht notifier.- Parameters:
enums- the collection of known enumerationsnotifier- the notifier, may be null for none
-
-
Method Details
-
add
Addsenas new enumeration. Notifiesnotifierif specified.- Parameters:
en- the new enumeration
-
hasEnum
Returns whether there is already an enum with the givenidShort/name.- Parameters:
idShort- the idShort/name to look for- Returns:
trueif there is an enum,falseelse
-