X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-parser-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fparser%2Futil%2FParserListenerUtils.java;fp=yang%2Fyang-parser-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fparser%2Futil%2FParserListenerUtils.java;h=45d46c69bb9b3cee186496e47f705ef9f2fe6c71;hb=84929adc0968c0ad916b85ba9cb49d622abd17a7;hp=27b28a40becc2486f195742939ff3d2c0631d78f;hpb=56d7e0525c7e580b6113cb82d0e7cb978a8e826b;p=yangtools.git diff --git a/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/util/ParserListenerUtils.java b/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/util/ParserListenerUtils.java index 27b28a40be..45d46c69bb 100644 --- a/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/util/ParserListenerUtils.java +++ b/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/util/ParserListenerUtils.java @@ -127,7 +127,7 @@ public final class ParserListenerUtils { /** * Parse given tree and get first string value. - * + * * @param treeNode * tree to parse * @return first string value from given tree @@ -148,7 +148,7 @@ public final class ParserListenerUtils { /** * Parse 'description', 'reference' and 'status' statements and fill in * given builder. - * + * * @param ctx * context to parse * @param builder @@ -172,7 +172,7 @@ public final class ParserListenerUtils { /** * Parse given context and return its value; - * + * * @param ctx * status context * @return value parsed from context @@ -199,7 +199,7 @@ public final class ParserListenerUtils { /** * Parse given tree and returns units statement as string. - * + * * @param ctx * context to parse * @return value of units statement as string or null if there is no units @@ -219,7 +219,7 @@ public final class ParserListenerUtils { /** * Parse given tree and returns default statement as string. - * + * * @param ctx * context to parse * @return value of default statement as string or null if there is no @@ -239,7 +239,7 @@ public final class ParserListenerUtils { /** * Create SchemaPath from actualPath and new node name. - * + * * @param actualPath * current position in model * @return SchemaPath object @@ -252,7 +252,7 @@ public final class ParserListenerUtils { /** * Create java.util.List of QName objects from given key definition as * string. - * + * * @param keyDefinition * key definition as string * @param namespace @@ -280,7 +280,7 @@ public final class ParserListenerUtils { /** * Parse given type body of enumeration statement. - * + * * @param ctx * type body context to parse * @param path @@ -314,7 +314,7 @@ public final class ParserListenerUtils { /** * Parse enum statement context - * + * * @param ctx * enum statement context * @param highestValue @@ -491,7 +491,7 @@ public final class ParserListenerUtils { /** * Get and parse range from given type body context. - * + * * @param ctx * type body context to parse * @param moduleName @@ -516,7 +516,7 @@ public final class ParserListenerUtils { /** * Parse given range context. - * + * * @param ctx * range context to parse * @param moduleName @@ -559,7 +559,7 @@ public final class ParserListenerUtils { /** * Get and parse length from given type body context. - * + * * @param ctx * type body context to parse * @param moduleName @@ -584,7 +584,7 @@ public final class ParserListenerUtils { /** * Parse given length context. - * + * * @param ctx * length context to parse * @param moduleName @@ -628,8 +628,10 @@ public final class ParserListenerUtils { /** * @param value * value to parse - * @param moduleName name of current module - * @param line current line in module + * @param moduleName + * name of current module + * @param line + * current line in module * @return wrapper object of primitive java type or UnknownBoundaryNumber if * type is one of special YANG values 'min' or 'max' */ @@ -649,7 +651,7 @@ public final class ParserListenerUtils { /** * Parse type body and return pattern constraints. - * + * * @param ctx * type body * @return list of pattern constraints @@ -673,7 +675,7 @@ public final class ParserListenerUtils { /** * Internal helper method. - * + * * @param ctx * pattern context * @return PatternConstraint object @@ -695,7 +697,7 @@ public final class ParserListenerUtils { /** * Parse given context and return pattern value. - * + * * @param ctx * context to parse * @return pattern value as String @@ -718,7 +720,7 @@ public final class ParserListenerUtils { /** * Get fraction digits value from type body. - * + * * @param ctx * type body context to parse * @param moduleName @@ -739,7 +741,7 @@ public final class ParserListenerUtils { /** * Parse decimal64 fraction-digits value. - * + * * @param ctx * decimal64 context * @param moduleName @@ -766,7 +768,7 @@ public final class ParserListenerUtils { /** * Internal helper method for parsing bit statements from given type body * context. - * + * * @param ctx * type body context to parse * @param actualPath @@ -799,7 +801,7 @@ public final class ParserListenerUtils { /** * Internal helper method for parsing bit context. - * + * * @param ctx * bit statement context to parse * @param highestPosition @@ -850,11 +852,11 @@ public final class ParserListenerUtils { /** * Parse 'ordered-by' statement. - * + * * The 'ordered-by' statement defines whether the order of entries within a * list are determined by the user or the system. The argument is one of the * strings "system" or "user". If not present, order defaults to "system". - * + * * @param ctx * Ordered_by_stmtContext * @return true, if ordered-by contains value 'user', false otherwise @@ -880,7 +882,7 @@ public final class ParserListenerUtils { /** * Get config statement from given context. If there is no config statement, * return config value of parent - * + * * @param ctx * context to parse * @param parent @@ -944,7 +946,7 @@ public final class ParserListenerUtils { /** * Parse config statement. - * + * * @param ctx * config context to parse * @param moduleName @@ -976,7 +978,7 @@ public final class ParserListenerUtils { /** * Parse type body and create UnknownType definition. - * + * * @param typedefQName * qname of current type * @param ctx @@ -1033,7 +1035,7 @@ public final class ParserListenerUtils { /** * Create TypeDefinition object based on given type name and type body. - * + * * @param typeName * name of type * @param typeBody @@ -1196,7 +1198,7 @@ public final class ParserListenerUtils { /** * Parse given context and find identityref base value. - * + * * @param ctx * type body * @return identityref base value as String @@ -1220,7 +1222,7 @@ public final class ParserListenerUtils { /** * Parse type body statement and find require-instance value. - * + * * @param ctx * type body context * @return require-instance value @@ -1247,7 +1249,7 @@ public final class ParserListenerUtils { /** * Parse type body statement and find leafref path. - * + * * @param ctx * type body context * @return leafref path as String @@ -1269,7 +1271,7 @@ public final class ParserListenerUtils { /** * Internal helper method for parsing must statement. - * + * * @param ctx * Must_stmtContext * @return MustDefinition object based on parsed context @@ -1318,7 +1320,7 @@ public final class ParserListenerUtils { /** * Parse given context and set constraints to constraints builder. - * + * * @param ctx * context to parse * @param constraints @@ -1388,7 +1390,7 @@ public final class ParserListenerUtils { /** * Parse given context and return yin value. - * + * * @param ctx * context to parse * @return true if value is 'true', false otherwise @@ -1415,7 +1417,7 @@ public final class ParserListenerUtils { /** * Check this base type. - * + * * @param typeName * base YANG type name * @param moduleName @@ -1426,8 +1428,7 @@ public final class ParserListenerUtils { * if this is one of YANG type which MUST contain additional * informations in its body */ - public static void checkMissingBody(final String typeName, final String moduleName, final int line) - throws YangParseException { + public static void checkMissingBody(final String typeName, final String moduleName, final int line) { if ("decimal64".equals(typeName)) { throw new YangParseException(moduleName, line, "The 'fraction-digits' statement MUST be present if the type is 'decimal64'."); @@ -1447,10 +1448,11 @@ public final class ParserListenerUtils { /** * Parse refine statement. - * + * * @param refineCtx * refine statement - * @param moduleName name of current module + * @param moduleName + * name of current module * @return RefineHolder object representing this refine statement */ public static RefineHolder parseRefine(Refine_stmtContext refineCtx, String moduleName) {