aboutsummaryrefslogtreecommitdiffstats
path: root/sdnr/wt/devicemanager-gran/provider/src/main/java/org/opendaylight/yang/gen/v1/urn/_3gpp/tsg/sa5/nrm/types/rev180731/TAMFRegionId.java
blob: bb70b4fc495db842229ec837df506e2c19f7919f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
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 TAMFRegionId
 implements TypeObject, Serializable {
    private static final long serialVersionUID = -4812289071560773109L;
    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 == 8) {
            return;
        }
        CodeHelpers.throwInvalidLength("[[8..8]]", value);
    }

    @ConstructorProperties("value")
    public TAMFRegionId(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 TAMFRegionId(TAMFRegionId source) {
        this._value = source._value;
    }

    public static TAMFRegionId getDefaultInstance(String defaultValue) {
        return new TAMFRegionId(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;
        }
        TAMFRegionId other = (TAMFRegionId) obj;
        if (!Objects.equals(_value, other._value)) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        final MoreObjects.ToStringHelper helper = MoreObjects.toStringHelper(TAMFRegionId.class);
        CodeHelpers.appendValue(helper, "_value", _value);
        return helper.toString();
    }
}
config false; description "none"; } description "none"; } grouping network-element-configuration-g { list problem-type-severity-list { key 'problem-type-name'; uses problem-severity-type-g; description "Severity of the problem to be configured."; } leaf trigger-refresh { type boolean; description "A trigger to instruct the netconf server to refresh its internal database/cache. It is primary used for alarms status, but could be used for anything else too. It is assumed that the refresh mechanism takes some time. In order to indicate the process to the controller a refreshStatus attribute is used."; } description "none"; } grouping network-element-status-g { leaf refresh-status { type processing-type; config false; description "none"; } description "none"; } grouping network-element-current-problems-g { list current-problem-list { key 'sequence-number'; config false; uses network-element-current-problem-type-g; description "none"; } description "none"; } /*********************** * package equipment **********************/ list equipment-pac { key 'equipment'; leaf equipment { type leafref { path '/core-model:equipment/core-model:uuid'; } description "none"; } container equipment-capability { config false; uses equipment-capability-g; description "none"; } container equipment-configuration { uses equipment-configuration-g; description "none"; } container equipment-status { config false; uses equipment-status-g; description "none"; } container equipment-current-problems { config false; uses equipment-current-problems-g; description "none"; } description "none"; } grouping equipment-capability-g { leaf-list supported-alarms { type string; config false; description "Available alarms to be listed. Names are to be separated by commas."; } description "none"; } grouping equipment-configuration-g { list problem-type-severity-list { key 'problem-type-name'; uses problem-severity-type-g; description "Severity of the problem to be configured."; } description "none"; } grouping equipment-status-g { description "none"; } grouping equipment-current-problems-g { list current-problem-list { key 'sequence-number'; config false; uses current-problem-type-g; description "none"; } description "none"; } /*********************** * package holder **********************/ list holder-pac { key 'holder'; leaf holder { type leafref { path '/core-model:equipment/core-model:contained-holder/core-model:uuid'; } description "none"; } container holder-capability { config false; uses holder-capability-g; description "none"; } container holder-configuration { uses holder-configuration-g; description "none"; } container holder-status { config false; uses holder-status-g; description "none"; } container holder-current-problems { config false; uses holder-current-problems-g; description "none"; } description "none"; } grouping holder-capability-g { leaf-list supported-alarms { type string; config false; description "Available alarms to be listed. Names are to be separated by commas."; } description "none"; } grouping holder-configuration-g { list problem-type-severity-list { key 'problem-type-name'; uses problem-severity-type-g; description "Severity of the problem to be configured."; } description "none"; } grouping holder-status-g { description "none"; } grouping holder-current-problems-g { list current-problem-list { key 'sequence-number'; config false; uses current-problem-type-g; description "none"; } description "none"; } /*********************** * package connector **********************/ list connector-pac { key 'connector'; leaf connector { type leafref { path '/core-model:equipment/core-model:exposed-cable/core-model:connector/core-model:uuid'; } description "none"; } container connector-capability { config false; uses connector-capability-g; description "none"; } container connector-configuration { uses connector-configuration-g; description "none"; } container connector-status { config false; uses connector-status-g; description "none"; } container connector-current-problems { config false; uses connector-current-problems-g; description "none"; } description "none"; } grouping connector-capability-g { leaf-list supported-alarms { type string; config false; description "Available alarms to be listed. Names are to be separated by commas."; } description "none"; } grouping connector-configuration-g { list problem-type-severity-list { key 'problem-type-name'; uses problem-severity-type-g; description "Severity of the problem to be configured."; } leaf remote-end-point { type string; description "A network wide identifier of the remote connector. The value is used for topology discovery. Please see also ConnectorStatus::localEndPoint."; } description "none"; } grouping connector-status-g { leaf local-end-point { type string; description "A network wide global identifier of the this connector, which can be used to discover the physical connectivitiy. The value should contain the network element name, because the network element software can assume that the network element name is unique in the network. The value should be formated: <connector:uuid>@<network-element-name> Please see also ConnectorConfiguration::remoteEndPoint"; } description "none"; } grouping connector-current-problems-g { list current-problem-list { key 'sequence-number'; config false; uses current-problem-type-g; description "none"; } description "none"; } }