Search in sources :

Example 11 with Optional

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

the class AASSubmodelElementCollectionTypeImplBase method setAllowDuplicates.

@Optional
@Override
public void setAllowDuplicates(Boolean value) throws StatusException {
    UaVariable node = getAllowDuplicatesNode();
    if (node == null) {
        throw new RuntimeException("Setting AllowDuplicates 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 12 with Optional

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

the class AASDataSpecificationIEC61360TypeImplBase method setDefinition.

@Optional
@Override
public void setDefinition(LocalizedText[] value) throws StatusException {
    UaVariable node = getDefinitionNode();
    if (node == null) {
        throw new RuntimeException("Setting Definition 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 13 with Optional

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

the class AASDataSpecificationIEC61360TypeImplBase method getSourceOfDefinition.

@Optional
@Override
public String getSourceOfDefinition() {
    UaVariable node = getSourceOfDefinitionNode();
    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)

Example 14 with Optional

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

the class AASDataSpecificationIEC61360TypeImplBase method getSymbol.

@Optional
@Override
public String getSymbol() {
    UaVariable node = getSymbolNode();
    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)

Example 15 with Optional

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

the class AASDataSpecificationIEC61360TypeImplBase method setLevelType.

@Optional
@Override
public void setLevelType(AASLevelTypeDataType value) throws StatusException {
    UaVariable node = getLevelTypeNode();
    if (node == null) {
        throw new RuntimeException("Setting LevelType 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