Search in sources :

Example 1 with Mandatory

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

the class AASBlobTypeNodeBase method getMimeType.

@Mandatory
@Override
public String getMimeType() {
    UaVariable node = getMimeTypeNode();
    if (node == null) {
        throw new RuntimeException("Mandatory node MimeType does not exist");
    }
    Object value = node.getValue().getValue().getValue();
    return (String) value;
}
Also used : UaVariable(com.prosysopc.ua.nodes.UaVariable) ByteString(com.prosysopc.ua.stack.builtintypes.ByteString) Mandatory(com.prosysopc.ua.nodes.Mandatory)

Example 2 with Mandatory

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

the class AASDataSpecificationIEC61360TypeNodeBase method getDefaultInstanceBrowseName.

@Mandatory
@Override
public String getDefaultInstanceBrowseName() {
    UaVariable node = getDefaultInstanceBrowseNameNode();
    if (node == null) {
        throw new RuntimeException("Mandatory node DefaultInstanceBrowseName does not exist");
    }
    Object value = node.getValue().getValue().getValue();
    return (String) value;
}
Also used : UaVariable(com.prosysopc.ua.nodes.UaVariable) Mandatory(com.prosysopc.ua.nodes.Mandatory)

Example 3 with Mandatory

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

the class AASPropertyTypeNodeBase method getValueType.

@Mandatory
@Override
public AASValueTypeDataType getValueType() {
    UaVariable node = getValueTypeNode();
    if (node == null) {
        throw new RuntimeException("Mandatory node ValueType does not exist");
    }
    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 4 with Mandatory

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

the class AASEntityTypeNodeBase method getEntityType.

@Mandatory
@Override
public AASEntityTypeDataType getEntityType() {
    UaVariable node = getEntityTypeNode();
    if (node == null) {
        throw new RuntimeException("Mandatory node EntityType does not exist");
    }
    Variant value = node.getValue().getValue();
    return (AASEntityTypeDataType) value.asEnum(AASEntityTypeDataType.class);
}
Also used : Variant(com.prosysopc.ua.stack.builtintypes.Variant) AASEntityTypeDataType(opc.i4aas.AASEntityTypeDataType) UaVariable(com.prosysopc.ua.nodes.UaVariable) Mandatory(com.prosysopc.ua.nodes.Mandatory)

Example 5 with Mandatory

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

the class AASFileTypeNodeBase method getMimeType.

@Mandatory
@Override
public String getMimeType() {
    UaVariable node = getMimeTypeNode();
    if (node == null) {
        throw new RuntimeException("Mandatory node MimeType does not exist");
    }
    Object value = node.getValue().getValue().getValue();
    return (String) value;
}
Also used : UaVariable(com.prosysopc.ua.nodes.UaVariable) Mandatory(com.prosysopc.ua.nodes.Mandatory)

Aggregations

Mandatory (com.prosysopc.ua.nodes.Mandatory)69 UaVariable (com.prosysopc.ua.nodes.UaVariable)69 Variant (com.prosysopc.ua.stack.builtintypes.Variant)16 AASValueTypeDataType (opc.i4aas.AASValueTypeDataType)6 AASModelingKindDataType (opc.i4aas.AASModelingKindDataType)4 ByteString (com.prosysopc.ua.stack.builtintypes.ByteString)2 AASAssetKindDataType (opc.i4aas.AASAssetKindDataType)2 AASEntityTypeDataType (opc.i4aas.AASEntityTypeDataType)2 AASIdentifierTypeDataType (opc.i4aas.AASIdentifierTypeDataType)2