use of com.prosysopc.ua.stack.builtintypes.Variant in project FAAAST-Service by FraunhoferIOSB.
the class AASSubmodelElementTypeImplBase method getModelingKind.
@Mandatory
@Override
public AASModelingKindDataType getModelingKind() {
UaVariable node = getModelingKindNode();
if (node == null) {
return null;
}
Variant value = node.getValue().getValue();
return (AASModelingKindDataType) value.asEnum(AASModelingKindDataType.class);
}
use of com.prosysopc.ua.stack.builtintypes.Variant in project FAAAST-Service by FraunhoferIOSB.
the class AASSubmodelTypeNodeBase method getModelingKind.
@Mandatory
@Override
public AASModelingKindDataType getModelingKind() {
UaVariable node = getModelingKindNode();
if (node == null) {
throw new RuntimeException("Mandatory node ModelingKind does not exist");
}
Variant value = node.getValue().getValue();
return (AASModelingKindDataType) value.asEnum(AASModelingKindDataType.class);
}
use of com.prosysopc.ua.stack.builtintypes.Variant in project FAAAST-Service by FraunhoferIOSB.
the class AASAssetInformationTypeNodeBase method getAssetKind.
@Mandatory
@Override
public AASAssetKindDataType getAssetKind() {
UaVariable node = getAssetKindNode();
if (node == null) {
throw new RuntimeException("Mandatory node AssetKind does not exist");
}
Variant value = node.getValue().getValue();
return (AASAssetKindDataType) value.asEnum(AASAssetKindDataType.class);
}
use of com.prosysopc.ua.stack.builtintypes.Variant in project FAAAST-Service by FraunhoferIOSB.
the class AASDataSpecificationIEC61360TypeNodeBase method getLevelType.
@Optional
@Override
public AASLevelTypeDataType getLevelType() {
UaVariable node = getLevelTypeNode();
if (node == null) {
return null;
}
Variant value = node.getValue().getValue();
return (AASLevelTypeDataType) value.asEnum(AASLevelTypeDataType.class);
}
use of com.prosysopc.ua.stack.builtintypes.Variant in project FAAAST-Service by FraunhoferIOSB.
the class AASQualifierTypeNodeBase method getValueType.
@Mandatory
@Override
public AASValueTypeDataType getValueType() {
UaVariable node = getValueTypeNode();
if (node == null) {
throw new RuntimeException("Mandatory node ValueType does not exist");
}
Variant value = node.getValue().getValue();
return (AASValueTypeDataType) value.asEnum(AASValueTypeDataType.class);
}
Aggregations