Search in sources :

Example 21 with Mandatory

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

the class AASReferableTypeImplBase method setCategory.

@Mandatory
@Override
public void setCategory(String value) throws StatusException {
    UaVariable node = getCategoryNode();
    if (node == null) {
        throw new RuntimeException("Setting Category 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 22 with Mandatory

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

the class AASReferenceTypeImplBase method setKeys.

@Mandatory
@Override
public void setKeys(AASKeyDataType[] value) throws StatusException {
    UaVariable node = getKeysNode();
    if (node == null) {
        throw new RuntimeException("Setting Keys 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 23 with Mandatory

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

the class AASSubmodelElementTypeImplBase method setCategory.

@Mandatory
@Override
public void setCategory(String value) throws StatusException {
    UaVariable node = getCategoryNode();
    if (node == null) {
        throw new RuntimeException("Setting Category 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 24 with Mandatory

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

the class IAASReferableTypeImplBase method getCategory.

@Mandatory
@Override
public String getCategory() {
    UaVariable node = getCategoryNode();
    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)

Example 25 with Mandatory

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

the class IAASReferableTypeImplBase method setCategory.

@Mandatory
@Override
public void setCategory(String value) throws StatusException {
    UaVariable node = getCategoryNode();
    if (node == null) {
        throw new RuntimeException("Setting Category failed, the Optional node does not exist)");
    }
    node.setValue(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