Package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev220720.graph.topology
Interface Graph
- All Superinterfaces:
org.opendaylight.yangtools.binding.Augmentable<Graph>,org.opendaylight.yangtools.binding.BindingContract<org.opendaylight.yangtools.binding.DataContainer>,org.opendaylight.yangtools.binding.BindingObject,org.opendaylight.yangtools.binding.ChildOf<GraphTopology>,org.opendaylight.yangtools.binding.DataContainer,org.opendaylight.yangtools.binding.DataObject,org.opendaylight.yangtools.binding.EntryObject<Graph,,GraphKey> org.opendaylight.yangtools.binding.KeyAware<GraphKey>
@Generated("mdsal-binding-generator")
public interface Graph
extends org.opendaylight.yangtools.binding.ChildOf<GraphTopology>, org.opendaylight.yangtools.binding.EntryObject<Graph,GraphKey>
Graph representation of the Network Topology
This class represents the following YANG schema fragment defined in module graph
list graph {
key name;
leaf name {
type string;
}
leaf domain-scope {
type enumeration {
enum intra-domain {
value 1;
}
enum inter-domain {
value 2;
}
}
default intra-domain;
}
leaf asn {
type uint32;
}
list vertex {
key vertex-id;
uses vertex;
}
list edge {
key edge-id;
uses edge;
}
list prefix {
key prefix;
uses prefix;
}
}
To create instances of this class use GraphBuilder.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThis class represents the following YANG schema fragment defined in module graph -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QNameYANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanbindingEquals(@NonNull Graph thisObj, Object obj) Default implementation ofObject.equals(Object)contract for this interface.static intbindingHashCode(@NonNull Graph obj) Default implementation ofObject.hashCode()contract for this interface.static StringbindingToString(@NonNull Graph obj) Default implementation ofObject.toString()contract for this interface.org.opendaylight.yangtools.yang.common.Uint32getAsn()Return asn, ornullif it is not present.Return domainScope, ornullif it is not present.getEdge()Return edge, ornullif it is not present.getName()Return name, ornullif it is not present.Return prefix, ornullif it is not present.Return vertex, ornullif it is not present.key()Return edge, or an empty list if it is not present.Return prefix, or an empty list if it is not present.Return vertex, or an empty list if it is not present.default @NonNull org.opendaylight.yangtools.yang.common.Uint32Return asn, guaranteed to be non-null.default @NonNull Graph.DomainScopeReturn domainScope, guaranteed to be non-null.default @NonNull StringReturn name, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yangtools.binding.Augmentable
augmentation, augmentationOrElseThrow, augmentationOrElseThrow, augmentations
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.binding.BindingContract<org.opendaylight.yangtools.binding.DataContainer>- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.binding.DataObject
-
bindingHashCode
Default implementation ofObject.hashCode()contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent hashing results across all implementations.- Parameters:
obj- Object for which to generate hashCode() result.- Returns:
- Hash code value of data modeled by this interface.
- Throws:
NullPointerException- ifobjisnull
-
bindingEquals
Default implementation ofObject.equals(Object)contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent equality results across all implementations.- Parameters:
thisObj- Object acting as the receiver of equals invocationobj- Object acting as argument to equals invocation- Returns:
- True if thisObj and obj are considered equal
- Throws:
NullPointerException- ifthisObjisnull
-
bindingToString
Default implementation ofObject.toString()contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent string representations across all implementations.- Parameters:
obj- Object for which to generate toString() result.- Returns:
Stringvalue of data modeled by this interface.- Throws:
NullPointerException- ifobjisnull
-
key
GraphKey key()- Specified by:
keyin interfaceorg.opendaylight.yangtools.binding.KeyAware<GraphKey>
-
getName
String getName()Return name, ornullif it is not present.- Returns:
Stringname, ornullif it is not present.
-
requireName
Return name, guaranteed to be non-null.- Returns:
Stringname, guaranteed to be non-null.- Throws:
NoSuchElementException- if name is not present
-
getDomainScope
Graph.DomainScope getDomainScope()Return domainScope, ornullif it is not present.Network domain scope: intra or inter domain- Returns:
DomainScopedomainScope, ornullif it is not present.
-
requireDomainScope
Return domainScope, guaranteed to be non-null.Network domain scope: intra or inter domain- Returns:
DomainScopedomainScope, guaranteed to be non-null.- Throws:
NoSuchElementException- if domainScope is not present
-
getAsn
org.opendaylight.yangtools.yang.common.Uint32 getAsn()Return asn, ornullif it is not present.AS Number- Returns:
Uint32asn, ornullif it is not present.
-
requireAsn
default @NonNull org.opendaylight.yangtools.yang.common.Uint32 requireAsn()Return asn, guaranteed to be non-null.AS Number- Returns:
Uint32asn, guaranteed to be non-null.- Throws:
NoSuchElementException- if asn is not present
-
getVertex
Return vertex, ornullif it is not present.The list of Vertices defined for the Graph.- Returns:
Map<VertexKey, Vertex>vertex, ornullif it is not present.
-
nonnullVertex
Return vertex, or an empty list if it is not present.- Returns:
Map<VertexKey, Vertex>vertex, or an empty list if it is not present.
-
getEdge
Return edge, ornullif it is not present.The list of Edges defined for the Graph.- Returns:
Map<EdgeKey, Edge>edge, ornullif it is not present.
-
nonnullEdge
Return edge, or an empty list if it is not present.- Returns:
Map<EdgeKey, Edge>edge, or an empty list if it is not present.
-
getPrefix
Return prefix, ornullif it is not present.The list of prefixes for the Graph.- Returns:
Map<PrefixKey, Prefix>prefix, ornullif it is not present.
-
nonnullPrefix
Return prefix, or an empty list if it is not present.- Returns:
Map<PrefixKey, Prefix>prefix, or an empty list if it is not present.
-