Search in sources :

Example 1 with Optional

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

the class AASDataSpecificationIEC61360TypeNodeBase 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 2 with Optional

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

the class AASPropertyTypeNodeBase method getValue.

@Optional
@Override
public Object getValue() {
    UaVariable node = getValueNode();
    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 3 with Optional

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

the class AASAdministrativeInformationTypeNodeBase method getVersion.

@Optional
@Override
public String getVersion() {
    UaVariable node = getVersionNode();
    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 4 with Optional

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

the class AASAdministrativeInformationTypeNodeBase method getRevision.

@Optional
@Override
public String getRevision() {
    UaVariable node = getRevisionNode();
    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 5 with Optional

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

the class AASDataSpecificationIEC61360TypeNodeBase 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)

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