public class Reference extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Reference.Direction |
| Modifier and Type | Field and Description |
|---|---|
static Predicate<Reference> |
ALWAYS_GENERATES_EVENT_PREDICATE |
static Predicate<Reference> |
COMPONENT_OF_PREDICATE |
static Predicate<Reference> |
HAS_COMPONENT_PREDICATE |
static Predicate<Reference> |
HAS_DESCRIPTION_PREDICATE |
static Predicate<Reference> |
HAS_ENCODING_PREDICATE |
static Predicate<Reference> |
HAS_EVENT_SOURCE_PREDICATE |
static Predicate<Reference> |
HAS_MODELLING_RULE_PREDICATE |
static Predicate<Reference> |
HAS_NOTIFIER_PREDICATE |
static Predicate<Reference> |
HAS_ORDERED_COMPONENT_PREDICATE |
static Predicate<Reference> |
HAS_PROPERTY_PREDICATE |
static Predicate<Reference> |
HAS_SUBTYPE |
static Predicate<Reference> |
HAS_TYPE_DEFINITION_PREDICATE |
static Predicate<Reference> |
ORDERED_COMPONENT_OF_PREDICATE |
static Predicate<Reference> |
ORGANIZES_PREDICATE |
static Predicate<Reference> |
SUBTYPE_OF |
| Constructor and Description |
|---|
Reference(NodeId sourceNodeId,
NodeId referenceTypeId,
ExpandedNodeId targetNodeId,
boolean forward) |
Reference(NodeId sourceNodeId,
NodeId referenceTypeId,
ExpandedNodeId targetNodeId,
Reference.Direction direction) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Reference.Direction |
getDirection() |
NodeId |
getReferenceTypeId() |
NodeId |
getSourceNodeId() |
ExpandedNodeId |
getTargetNodeId() |
int |
hashCode() |
Optional<Reference> |
invert(NamespaceTable namespaceTable)
Return an inverted instance of this Reference so long as the target NodeId resides within this server.
|
boolean |
isForward() |
boolean |
isInverse() |
Reference |
reindex(NamespaceTable namespaceTable,
String sourceNamespaceUri,
String referenceNamespaceUri,
String targetNamespaceUri)
|
boolean |
subtypeOf(NodeId superTypeId)
Check if this reference is a subtype of the built-in reference identified by
superTypeId. |
boolean |
subtypeOf(NodeId superTypeId,
Map<NodeId,ReferenceType> referenceTypes) |
String |
toString() |
public static final Predicate<Reference> HAS_ORDERED_COMPONENT_PREDICATE
public static final Predicate<Reference> ORDERED_COMPONENT_OF_PREDICATE
public static final Predicate<Reference> HAS_TYPE_DEFINITION_PREDICATE
public static final Predicate<Reference> ALWAYS_GENERATES_EVENT_PREDICATE
public Reference(NodeId sourceNodeId, NodeId referenceTypeId, ExpandedNodeId targetNodeId, boolean forward)
public Reference(NodeId sourceNodeId, NodeId referenceTypeId, ExpandedNodeId targetNodeId, Reference.Direction direction)
public NodeId getSourceNodeId()
public NodeId getReferenceTypeId()
public ExpandedNodeId getTargetNodeId()
public Reference.Direction getDirection()
public boolean isForward()
public boolean isInverse()
public Optional<Reference> invert(NamespaceTable namespaceTable)
public Reference reindex(NamespaceTable namespaceTable, String sourceNamespaceUri, String referenceNamespaceUri, String targetNamespaceUri)
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.
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.NodeId in the namespace index indicated by namespaceUri.public boolean subtypeOf(NodeId superTypeId)
superTypeId.superTypeId - the NodeId of the supertype.true if this reference is a subtype of the built-in reference type identified by
superTypeId.BuiltinReferenceTypepublic boolean subtypeOf(NodeId superTypeId, Map<NodeId,ReferenceType> referenceTypes)
Copyright © 2025. All rights reserved.