diff options
author | 2019-12-14 00:50:38 +0100 | |
---|---|---|
committer | 2019-12-16 11:26:39 +0000 | |
commit | 6b98928b7b1b0ebc28d2ef286e8c932fca67c305 (patch) | |
tree | d734c78f257acfb7dd3dc4a74229ee23d93d79e3 /sdnr/wt/devicemanager-gran/provider/src/main/java/org/opendaylight/yang/gen/v1/urn/_3gpp/tsg/sa5/nrm/types/rev180731/TMnc.java | |
parent | 2cf702de0b65fe132ec32b6abfffe4c2c976dca0 (diff) |
add new devicemanager
v2 add disaggregated devicemanager bundled
Issue-ID: SDNC-1007
Signed-off-by: herbert <herbert.eiselt@highstreet-technologies.com>
Change-Id: Ibb65f7f21deade7b3cef62c53b439519a931e301
Signed-off-by: herbert <herbert.eiselt@highstreet-technologies.com>
Diffstat (limited to 'sdnr/wt/devicemanager-gran/provider/src/main/java/org/opendaylight/yang/gen/v1/urn/_3gpp/tsg/sa5/nrm/types/rev180731/TMnc.java')
-rw-r--r-- | sdnr/wt/devicemanager-gran/provider/src/main/java/org/opendaylight/yang/gen/v1/urn/_3gpp/tsg/sa5/nrm/types/rev180731/TMnc.java | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/sdnr/wt/devicemanager-gran/provider/src/main/java/org/opendaylight/yang/gen/v1/urn/_3gpp/tsg/sa5/nrm/types/rev180731/TMnc.java b/sdnr/wt/devicemanager-gran/provider/src/main/java/org/opendaylight/yang/gen/v1/urn/_3gpp/tsg/sa5/nrm/types/rev180731/TMnc.java new file mode 100644 index 000000000..d5de22dfe --- /dev/null +++ b/sdnr/wt/devicemanager-gran/provider/src/main/java/org/opendaylight/yang/gen/v1/urn/_3gpp/tsg/sa5/nrm/types/rev180731/TMnc.java @@ -0,0 +1,85 @@ +package org.opendaylight.yang.gen.v1.urn._3gpp.tsg.sa5.nrm.types.rev180731; +import com.google.common.base.MoreObjects; +import com.google.common.collect.ImmutableList; +import java.beans.ConstructorProperties; +import java.io.Serializable; +import java.lang.Override; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.regex.Pattern; +import org.opendaylight.yangtools.yang.binding.CodeHelpers; +import org.opendaylight.yangtools.yang.binding.TypeObject; + +public class TMnc + implements TypeObject, Serializable { + private static final long serialVersionUID = 7207647705509368021L; + public static final List<String> PATTERN_CONSTANTS = ImmutableList.of("^(?:[0-9][0-9][0-9]|[0-9][0-9])$"); + private static final Pattern patterns = Pattern.compile(PATTERN_CONSTANTS.get(0)); + private static final String regexes = "[0-9][0-9][0-9]|[0-9][0-9]"; + private final String _value; + + private static void check_valueLength(final String value) { + } + + @ConstructorProperties("value") + public TMnc(String _value) { + if (_value != null) { + check_valueLength(_value); + } + + Objects.requireNonNull(_value, "Supplied value may not be null"); + CodeHelpers.checkPattern(_value, patterns, regexes); + + this._value = _value; + } + + /** + * Creates a copy from Source Object. + * + * @param source Source object + */ + public TMnc(TMnc source) { + this._value = source._value; + } + + public static TMnc getDefaultInstance(String defaultValue) { + return new TMnc(defaultValue); + } + + public String getValue() { + return _value; + } + + + @Override + public int hashCode() { + return CodeHelpers.wrapperHashCode(_value); + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null) { + return false; + } + if (getClass() != obj.getClass()) { + return false; + } + TMnc other = (TMnc) obj; + if (!Objects.equals(_value, other._value)) { + return false; + } + return true; + } + + @Override + public String toString() { + final MoreObjects.ToStringHelper helper = MoreObjects.toStringHelper(TMnc.class); + CodeHelpers.appendValue(helper, "_value", _value); + return helper.toString(); + } +} + |