Search in sources :

Example 6 with Mandatory

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

the class AASSubmodelElementTypeImplBase method setModelingKind.

@Mandatory
@Override
public void setModelingKind(AASModelingKindDataType value) throws StatusException {
    UaVariable node = getModelingKindNode();
    if (node == null) {
        throw new RuntimeException("Setting ModelingKind failed, the Optional node does not exist)");
    }
    node.setValue(value);
}
Also used : UaVariable(com.prosysopc.ua.nodes.UaVariable) Mandatory(com.prosysopc.ua.nodes.Mandatory)

Example 7 with Mandatory

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

the class AASPropertyTypeImplBase method setValueType.

@Mandatory
@Override
public void setValueType(AASValueTypeDataType value) throws StatusException {
    UaVariable node = getValueTypeNode();
    if (node == null) {
        throw new RuntimeException("Setting ValueType failed, the Optional node does not exist)");
    }
    node.setValue(value);
}
Also used : UaVariable(com.prosysopc.ua.nodes.UaVariable) Mandatory(com.prosysopc.ua.nodes.Mandatory)

Example 8 with Mandatory

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

the class AASQualifierTypeImplBase method setValueType.

@Mandatory
@Override
public void setValueType(AASValueTypeDataType value) throws StatusException {
    UaVariable node = getValueTypeNode();
    if (node == null) {
        throw new RuntimeException("Setting ValueType failed, the Optional node does not exist)");
    }
    node.setValue(value);
}
Also used : UaVariable(com.prosysopc.ua.nodes.UaVariable) Mandatory(com.prosysopc.ua.nodes.Mandatory)

Example 9 with Mandatory

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

the class AASQualifierTypeImplBase method setType.

@Mandatory
@Override
public void setType(String value) throws StatusException {
    UaVariable node = getTypeNode();
    if (node == null) {
        throw new RuntimeException("Setting Type failed, the Optional node does not exist)");
    }
    node.setValue(value);
}
Also used : UaVariable(com.prosysopc.ua.nodes.UaVariable) Mandatory(com.prosysopc.ua.nodes.Mandatory)

Example 10 with Mandatory

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

the class AASQualifierTypeImplBase method getType.

@Mandatory
@Override
public String getType() {
    UaVariable node = getTypeNode();
    if (node == null) {
        return null;
    }
    Object value = node.getValue().getValue().getValue();
    return (String) value;
}
Also used : UaVariable(com.prosysopc.ua.nodes.UaVariable) Mandatory(com.prosysopc.ua.nodes.Mandatory)

Aggregations

Mandatory (com.prosysopc.ua.nodes.Mandatory)69 UaVariable (com.prosysopc.ua.nodes.UaVariable)69 Variant (com.prosysopc.ua.stack.builtintypes.Variant)16 AASValueTypeDataType (opc.i4aas.AASValueTypeDataType)6 AASModelingKindDataType (opc.i4aas.AASModelingKindDataType)4 ByteString (com.prosysopc.ua.stack.builtintypes.ByteString)2 AASAssetKindDataType (opc.i4aas.AASAssetKindDataType)2 AASEntityTypeDataType (opc.i4aas.AASEntityTypeDataType)2 AASIdentifierTypeDataType (opc.i4aas.AASIdentifierTypeDataType)2