Search in sources :

Example 51 with Optional

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

the class AASDataSpecificationIEC61360TypeImplBase method setShortName.

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

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

the class AASAdministrativeInformationTypeImplBase method setRevision.

@Optional
@Override
public void setRevision(String value) throws StatusException {
    UaVariable node = getRevisionNode();
    if (node == null) {
        throw new RuntimeException("Setting Revision 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 53 with Optional

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

the class AASAdministrativeInformationTypeImplBase method setVersion.

@Optional
@Override
public void setVersion(String value) throws StatusException {
    UaVariable node = getVersionNode();
    if (node == null) {
        throw new RuntimeException("Setting Version 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 54 with Optional

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

the class AASAdministrativeInformationTypeImplBase 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 55 with Optional

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

the class AASMultiLanguagePropertyTypeImplBase method setValue.

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