Record Class Prefix
java.lang.Object
java.lang.Record
org.opendaylight.yangtools.rfc8819.model.api.Prefix
YANG Module Tag Prefixes Registry, as defined in
RFC8819.
This registry allocates tag prefixes. All YANG module tags SHOULD begin with one of the prefixes in this registry. Prefix entries in this registry should be short strings consisting of lowercase ASCII alpha-numeric characters and a final ":" character.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NonNull Prefix
intern()
final String
toString()
Returns a string representation of this record class.@NonNull String
value()
Returns the value of thevalue
record component.
-
Field Details
-
IETF
ietf:
Prefix
. Covers mechanics specified in RFC8819 section 7.1, table 1IETF tags allocated in the IANA "IETF YANG Module Tags" registry.
-
VENDOR
vendor:
Prefix
. Covers mechanics specified in RFC8819 section 7.1, table 1Non-registered tags allocated by the module implementer.
-
USER
user:
Prefix
. Covers mechanics specified in RFC8819 section 7.1, table 1Non-registered tags allocated by and for the user.
-
-
Constructor Details
-
Prefix
Creates an instance of aPrefix
record class.- Parameters:
value
- the value for thevalue
record component
-
-
Method Details
-
intern
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
value
Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-