use of com.prosysopc.ua.nodes.UaVariable in project FAAAST-Service by FraunhoferIOSB.
the class AASCustomConceptDescriptionTypeNodeBase method getCategory.
@Mandatory
@Override
public String getCategory() {
UaVariable node = getCategoryNode();
if (node == null) {
throw new RuntimeException("Mandatory node Category does not exist");
}
Object value = node.getValue().getValue().getValue();
return (String) value;
}
use of com.prosysopc.ua.nodes.UaVariable 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.nodes.UaVariable in project FAAAST-Service by FraunhoferIOSB.
the class AASDataSpecificationIEC61360TypeNodeBase method getUnit.
@Optional
@Override
public String getUnit() {
UaVariable node = getUnitNode();
if (node == null) {
return null;
}
Object value = node.getValue().getValue().getValue();
return (String) value;
}
use of com.prosysopc.ua.nodes.UaVariable in project FAAAST-Service by FraunhoferIOSB.
the class AASDataSpecificationIEC61360TypeNodeBase method getPreferredName.
@Mandatory
@Override
public LocalizedText[] getPreferredName() {
UaVariable node = getPreferredNameNode();
if (node == null) {
throw new RuntimeException("Mandatory node PreferredName does not exist");
}
Object value = node.getValue().getValue().getValue();
return (LocalizedText[]) value;
}
use of com.prosysopc.ua.nodes.UaVariable in project FAAAST-Service by FraunhoferIOSB.
the class AASDataSpecificationIEC61360TypeNodeBase method getShortName.
@Optional
@Override
public LocalizedText[] getShortName() {
UaVariable node = getShortNameNode();
if (node == null) {
return null;
}
Object value = node.getValue().getValue().getValue();
return (LocalizedText[]) value;
}
Aggregations