java.lang.Object
org.eclipse.milo.opcua.sdk.core.Reference

public class Reference extends Object
  • Field Details

    • HAS_COMPONENT_PREDICATE

      public static final Predicate<Reference> HAS_COMPONENT_PREDICATE
    • HAS_ORDERED_COMPONENT_PREDICATE

      public static final Predicate<Reference> HAS_ORDERED_COMPONENT_PREDICATE
    • COMPONENT_OF_PREDICATE

      public static final Predicate<Reference> COMPONENT_OF_PREDICATE
    • ORDERED_COMPONENT_OF_PREDICATE

      public static final Predicate<Reference> ORDERED_COMPONENT_OF_PREDICATE
    • HAS_PROPERTY_PREDICATE

      public static final Predicate<Reference> HAS_PROPERTY_PREDICATE
    • HAS_TYPE_DEFINITION_PREDICATE

      public static final Predicate<Reference> HAS_TYPE_DEFINITION_PREDICATE
    • HAS_EVENT_SOURCE_PREDICATE

      public static final Predicate<Reference> HAS_EVENT_SOURCE_PREDICATE
    • HAS_NOTIFIER_PREDICATE

      public static final Predicate<Reference> HAS_NOTIFIER_PREDICATE
    • ORGANIZES_PREDICATE

      public static final Predicate<Reference> ORGANIZES_PREDICATE
    • HAS_ENCODING_PREDICATE

      public static final Predicate<Reference> HAS_ENCODING_PREDICATE
    • HAS_DESCRIPTION_PREDICATE

      public static final Predicate<Reference> HAS_DESCRIPTION_PREDICATE
    • HAS_MODELLING_RULE_PREDICATE

      public static final Predicate<Reference> HAS_MODELLING_RULE_PREDICATE
    • ALWAYS_GENERATES_EVENT_PREDICATE

      public static final Predicate<Reference> ALWAYS_GENERATES_EVENT_PREDICATE
    • HAS_SUBTYPE

      public static final Predicate<Reference> HAS_SUBTYPE
    • SUBTYPE_OF

      public static final Predicate<Reference> SUBTYPE_OF
  • Constructor Details

    • Reference

      public Reference(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId sourceNodeId, org.eclipse.milo.opcua.stack.core.types.builtin.NodeId referenceTypeId, org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId targetNodeId, boolean forward)
    • Reference

      public Reference(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId sourceNodeId, org.eclipse.milo.opcua.stack.core.types.builtin.NodeId referenceTypeId, org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId targetNodeId, Reference.Direction direction)
  • Method Details

    • getSourceNodeId

      public org.eclipse.milo.opcua.stack.core.types.builtin.NodeId getSourceNodeId()
    • getReferenceTypeId

      public org.eclipse.milo.opcua.stack.core.types.builtin.NodeId getReferenceTypeId()
    • getTargetNodeId

      public org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId getTargetNodeId()
    • getDirection

      public Reference.Direction getDirection()
    • isForward

      public boolean isForward()
    • isInverse

      public boolean isInverse()
    • invert

      public Optional<Reference> invert(org.eclipse.milo.opcua.stack.core.NamespaceTable namespaceTable)
      Return an inverted instance of this Reference so long as the target NodeId resides within this server.
      Returns:
      an inverted instance of this Reference so long as the target NodeId resides within this server.
    • reindex

      public Reference reindex(org.eclipse.milo.opcua.stack.core.NamespaceTable namespaceTable, String sourceNamespaceUri, String referenceNamespaceUri, String targetNamespaceUri)
      Re-index the source, target, and reference type NodeIds in this Reference from their current namespace index to the index for namespaceUri.

      If the target namespace URI is not present in the namespace table this Reference is returned.

      Parameters:
      namespaceTable - the NamespaceTable.
      sourceNamespaceUri - the target namespace URI for the source NodeId.
      referenceNamespaceUri - the target namespace URI for the reference type NodeId.
      targetNamespaceUri - the target namespace URI for the target NodeId.
      Returns:
      a new NodeId in the namespace index indicated by namespaceUri.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object