Search in sources :

Example 21 with UaVariable

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

the class AASRangeTypeImplBase method getMin.

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

Example 22 with UaVariable

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

the class AASRangeTypeImplBase method getValueType.

@Mandatory
@Override
public AASValueTypeDataType getValueType() {
    UaVariable node = getValueTypeNode();
    if (node == null) {
        return null;
    }
    Variant value = node.getValue().getValue();
    return (AASValueTypeDataType) value.asEnum(AASValueTypeDataType.class);
}
Also used : Variant(com.prosysopc.ua.stack.builtintypes.Variant) AASValueTypeDataType(opc.i4aas.AASValueTypeDataType) UaVariable(com.prosysopc.ua.nodes.UaVariable) Mandatory(com.prosysopc.ua.nodes.Mandatory)

Example 23 with UaVariable

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

the class AASEntityTypeImplBase method setEntityType.

@Mandatory
@Override
public void setEntityType(AASEntityTypeDataType value) throws StatusException {
    UaVariable node = getEntityTypeNode();
    if (node == null) {
        throw new RuntimeException("Setting EntityType 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 UaVariable

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

the class AASFileTypeImplBase method setMimeType.

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

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

the class AASIdentifierKeyValuePairTypeImplBase method setKey.

@Mandatory
@Override
public void setKey(String value) throws StatusException {
    UaVariable node = getKeyNode();
    if (node == null) {
        throw new RuntimeException("Setting Key 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

UaVariable (com.prosysopc.ua.nodes.UaVariable)127 Mandatory (com.prosysopc.ua.nodes.Mandatory)69 Optional (com.prosysopc.ua.nodes.Optional)57 Variant (com.prosysopc.ua.stack.builtintypes.Variant)21 AASValueTypeDataType (opc.i4aas.AASValueTypeDataType)6 ByteString (com.prosysopc.ua.stack.builtintypes.ByteString)4 AASModelingKindDataType (opc.i4aas.AASModelingKindDataType)4 AASAssetKindDataType (opc.i4aas.AASAssetKindDataType)2 AASDataTypeIEC61360DataType (opc.i4aas.AASDataTypeIEC61360DataType)2 AASEntityTypeDataType (opc.i4aas.AASEntityTypeDataType)2 AASIdentifierTypeDataType (opc.i4aas.AASIdentifierTypeDataType)2 AASLevelTypeDataType (opc.i4aas.AASLevelTypeDataType)2 UaType (com.prosysopc.ua.nodes.UaType)1 DataValue (com.prosysopc.ua.stack.builtintypes.DataValue)1 ExpandedNodeId (com.prosysopc.ua.stack.builtintypes.ExpandedNodeId)1 NodeId (com.prosysopc.ua.stack.builtintypes.NodeId)1 QualifiedName (com.prosysopc.ua.stack.builtintypes.QualifiedName)1 BrowsePathTarget (com.prosysopc.ua.stack.core.BrowsePathTarget)1 RelativePathElement (com.prosysopc.ua.stack.core.RelativePathElement)1 ArrayList (java.util.ArrayList)1