Class Uint16.Support
java.lang.Object
org.opendaylight.yangtools.yang.common.AbstractCanonicalValueSupport<Uint16>
org.opendaylight.yangtools.yang.common.Uint16.Support
- All Implemented Interfaces:
Immutable
,CanonicalValueSupport<Uint16>
,CanonicalValueValidator<Uint16,
Uint16>
- Enclosing class:
- Uint16
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromString
(String str) Create a instance for a string representation.Methods inherited from class org.opendaylight.yangtools.yang.common.AbstractCanonicalValueSupport
getRepresentationClass, getValidatedRepresentationClass, validateRepresentation, validateRepresentation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opendaylight.yangtools.yang.common.CanonicalValueSupport
fromCanonicalString, unsafe
-
Constructor Details
-
Support
public Support()
-
-
Method Details
-
fromString
Description copied from interface:CanonicalValueSupport
Create a instance for a string representation. Implementations of this method are required to perform checks equivalent to the YANG data model restrictions attached to the corresponding YANG type. Non-canonical format strings must be accepted and result in objects equal to objects obtained from the corresponding canonical format.- Parameters:
str
- String representation- Returns:
- A
CanonicalValue
instance or CanonicalValueViolation ifstr
does not conform
-