Fixed inconsistencies in yang types method names.
authorMartin Vitez <mvitez@cisco.com>
Mon, 16 Sep 2013 11:43:34 +0000 (13:43 +0200)
committerMartin Vitez <mvitez@cisco.com>
Mon, 16 Sep 2013 11:43:34 +0000 (13:43 +0200)
Different method names like getLengthStatements(), getLengthConstraints(), getLengths() were unified as getLengtConstraints(). Same with other get<constraint-type> method names.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
code-generator/binding-generator-impl/src/main/java/org/opendaylight/yangtools/sal/binding/yang/types/TypeProviderImpl.java

index 9bb36e07af7b9db928bc6a87e1636a34c525fe6c..fe3d6e1236fc5274c5157ffab9680303260ccbf9 100644 (file)
@@ -1007,7 +1007,7 @@ public final class TypeProviderImpl implements TypeProvider {
         Preconditions.checkArgument(typedef != null, "typedef can't be null");
         final TypeDefinition<?> strTypeDef = baseTypeDefForExtendedType(typedef);
         if (strTypeDef instanceof StringType) {
-            final List<PatternConstraint> patternConstraints = typedef.getPatterns();
+            final List<PatternConstraint> patternConstraints = typedef.getPatternConstraints();
             if (!patternConstraints.isEmpty()) {
                 String regEx;
                 String modifiedRegEx;