Search in sources :

Example 41 with Optional

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

the class AASDataSpecificationIEC61360TypeImplBase method getDefinition.

@Optional
@Override
public LocalizedText[] getDefinition() {
    UaVariable node = getDefinitionNode();
    if (node == null) {
        return null;
    }
    Object value = node.getValue().getValue().getValue();
    return (LocalizedText[]) value;
}
Also used : UaVariable(com.prosysopc.ua.nodes.UaVariable) Optional(com.prosysopc.ua.nodes.Optional)

Example 42 with Optional

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

the class AASDataSpecificationIEC61360TypeImplBase method setSourceOfDefinition.

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

Example 43 with Optional

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

the class AASDataSpecificationIEC61360TypeImplBase method setUnit.

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

Example 44 with Optional

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

the class AASDataSpecificationIEC61360TypeImplBase method setSymbol.

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

Example 45 with Optional

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

the class AASDataSpecificationIEC61360TypeImplBase method setValueFormat.

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