Search in sources :

Example 26 with Optional

use of com.prosysopc.ua.nodes.Optional in project FAAAST-Service by FraunhoferIOSB.

the class AASSubmodelElementCollectionTypeImplBase method isAllowDuplicates.

@Optional
@Override
public Boolean isAllowDuplicates() {
    UaVariable node = getAllowDuplicatesNode();
    if (node == null) {
        return null;
    }
    Object value = node.getValue().getValue().getValue();
    return (Boolean) value;
}
Also used : UaVariable(com.prosysopc.ua.nodes.UaVariable) Optional(com.prosysopc.ua.nodes.Optional)

Example 27 with Optional

use of com.prosysopc.ua.nodes.Optional in project FAAAST-Service by FraunhoferIOSB.

the class AASSubmodelElementCollectionTypeNodeBase method isAllowDuplicates.

@Optional
@Override
public Boolean isAllowDuplicates() {
    UaVariable node = getAllowDuplicatesNode();
    if (node == null) {
        return null;
    }
    Object value = node.getValue().getValue().getValue();
    return (Boolean) value;
}
Also used : UaVariable(com.prosysopc.ua.nodes.UaVariable) Optional(com.prosysopc.ua.nodes.Optional)

Example 28 with Optional

use of com.prosysopc.ua.nodes.Optional in project FAAAST-Service by FraunhoferIOSB.

the class AASBlobTypeNodeBase method getValue.

@Optional
@Override
public ByteString getValue() {
    UaVariable node = getValueNode();
    if (node == null) {
        return null;
    }
    Object value = node.getValue().getValue().getValue();
    return (ByteString) value;
}
Also used : ByteString(com.prosysopc.ua.stack.builtintypes.ByteString) UaVariable(com.prosysopc.ua.nodes.UaVariable) Optional(com.prosysopc.ua.nodes.Optional)

Example 29 with Optional

use of com.prosysopc.ua.nodes.Optional 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);
}
Also used : Variant(com.prosysopc.ua.stack.builtintypes.Variant) AASLevelTypeDataType(opc.i4aas.AASLevelTypeDataType) UaVariable(com.prosysopc.ua.nodes.UaVariable) Optional(com.prosysopc.ua.nodes.Optional)

Example 30 with Optional

use of com.prosysopc.ua.nodes.Optional 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;
}
Also used : UaVariable(com.prosysopc.ua.nodes.UaVariable) Optional(com.prosysopc.ua.nodes.Optional)

Aggregations

Optional (com.prosysopc.ua.nodes.Optional)57 UaVariable (com.prosysopc.ua.nodes.UaVariable)57 Variant (com.prosysopc.ua.stack.builtintypes.Variant)4 ByteString (com.prosysopc.ua.stack.builtintypes.ByteString)2 AASDataTypeIEC61360DataType (opc.i4aas.AASDataTypeIEC61360DataType)2 AASLevelTypeDataType (opc.i4aas.AASLevelTypeDataType)2