use of com.prosysopc.ua.stack.builtintypes.Variant in project FAAAST-Service by FraunhoferIOSB.
the class AASIdentifierTypeNodeBase method getIdType.
@Mandatory
@Override
public AASIdentifierTypeDataType getIdType() {
UaVariable node = getIdTypeNode();
if (node == null) {
throw new RuntimeException("Mandatory node IdType does not exist");
}
Variant value = node.getValue().getValue();
return (AASIdentifierTypeDataType) value.asEnum(AASIdentifierTypeDataType.class);
}
use of com.prosysopc.ua.stack.builtintypes.Variant in project FAAAST-Service by FraunhoferIOSB.
the class AASRangeTypeNodeBase 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);
}
use of com.prosysopc.ua.stack.builtintypes.Variant in project FAAAST-Service by FraunhoferIOSB.
the class AASDataSpecificationIEC61360TypeImplBase 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 AASDataSpecificationIEC61360TypeImplBase method getDataType.
@Optional
@Override
public AASDataTypeIEC61360DataType getDataType() {
UaVariable node = getDataTypeNode();
if (node == null) {
return null;
}
Variant value = node.getValue().getValue();
return (AASDataTypeIEC61360DataType) value.asEnum(AASDataTypeIEC61360DataType.class);
}
use of com.prosysopc.ua.stack.builtintypes.Variant 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