diff options
author | 2020-02-02 00:26:55 +0000 | |
---|---|---|
committer | 2020-02-02 00:26:55 +0000 | |
commit | ff8cf309fba867c2e641ea20c2ddf074fda5e3e5 (patch) | |
tree | 8528ec24f60b6d7f2250be7dea67f23264035c93 /sdnr/wt/devicemanager-gran/provider/src/main/java/org/opendaylight/yang/gen/v1/urn/_3gpp/tsg/sa5/nrm/types/rev180731/TAMFSetId.java | |
parent | bdebae96aedfe84fe27d88e800155bc619c7146f (diff) | |
parent | 149a57edf72762c7e0eb4062851c06356e6a75ab (diff) |
Merge "SDN-R add updated devicemanager"
Diffstat (limited to 'sdnr/wt/devicemanager-gran/provider/src/main/java/org/opendaylight/yang/gen/v1/urn/_3gpp/tsg/sa5/nrm/types/rev180731/TAMFSetId.java')
-rw-r--r-- | sdnr/wt/devicemanager-gran/provider/src/main/java/org/opendaylight/yang/gen/v1/urn/_3gpp/tsg/sa5/nrm/types/rev180731/TAMFSetId.java | 90 |
1 files changed, 90 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/TAMFSetId.java b/sdnr/wt/devicemanager-gran/provider/src/main/java/org/opendaylight/yang/gen/v1/urn/_3gpp/tsg/sa5/nrm/types/rev180731/TAMFSetId.java new file mode 100644 index 000000000..6ecd82e95 --- /dev/null +++ b/sdnr/wt/devicemanager-gran/provider/src/main/java/org/opendaylight/yang/gen/v1/urn/_3gpp/tsg/sa5/nrm/types/rev180731/TAMFSetId.java @@ -0,0 +1,90 @@ +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 TAMFSetId + implements TypeObject, Serializable { + private static final long serialVersionUID = 6265848852591033404L; + public static final List<String> PATTERN_CONSTANTS = ImmutableList.of("^(?:[01]*)$"); + private static final Pattern patterns = Pattern.compile(PATTERN_CONSTANTS.get(0)); + private static final String regexes = "[01]*"; + private final String _value; + + private static void check_valueLength(final String value) { + final int length = value.length(); + if (length == 10) { + return; + } + CodeHelpers.throwInvalidLength("[[10..10]]", value); + } + + @ConstructorProperties("value") + public TAMFSetId(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 TAMFSetId(TAMFSetId source) { + this._value = source._value; + } + + public static TAMFSetId getDefaultInstance(String defaultValue) { + return new TAMFSetId(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; + } + TAMFSetId other = (TAMFSetId) obj; + if (!Objects.equals(_value, other._value)) { + return false; + } + return true; + } + + @Override + public String toString() { + final MoreObjects.ToStringHelper helper = MoreObjects.toStringHelper(TAMFSetId.class); + CodeHelpers.appendValue(helper, "_value", _value); + return helper.toString(); + } +} + |