use of opc.i4aas.AASEntityTypeDataType in project FAAAST-Service by FraunhoferIOSB.
the class AASEntityTypeNodeBase method getEntityType.
@Mandatory
@Override
public AASEntityTypeDataType getEntityType() {
UaVariable node = getEntityTypeNode();
if (node == null) {
throw new RuntimeException("Mandatory node EntityType does not exist");
}
Variant value = node.getValue().getValue();
return (AASEntityTypeDataType) value.asEnum(AASEntityTypeDataType.class);
}
use of opc.i4aas.AASEntityTypeDataType in project FAAAST-Service by FraunhoferIOSB.
the class AASEntityTypeImplBase method getEntityType.
@Mandatory
@Override
public AASEntityTypeDataType getEntityType() {
UaVariable node = getEntityTypeNode();
if (node == null) {
return null;
}
Variant value = node.getValue().getValue();
return (AASEntityTypeDataType) value.asEnum(AASEntityTypeDataType.class);
}
Aggregations