/**
* Parse given tree and get first string value.
- *
+ *
* @param treeNode
* tree to parse
* @return first string value from given tree
/**
* Parse 'description', 'reference' and 'status' statements and fill in
* given builder.
- *
+ *
* @param ctx
* context to parse
* @param builder
/**
* Parse given context and return its value;
- *
+ *
* @param ctx
* status context
* @return value parsed from context
/**
* 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
/**
* 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
/**
* Create SchemaPath from actualPath and new node name.
- *
+ *
* @param actualPath
* current position in model
* @return SchemaPath object
/**
* Create java.util.List of QName objects from given key definition as
* string.
- *
+ *
* @param keyDefinition
* key definition as string
* @param namespace
/**
* Parse given type body of enumeration statement.
- *
+ *
* @param ctx
* type body context to parse
* @param path
/**
* Parse enum statement context
- *
+ *
* @param ctx
* enum statement context
* @param highestValue
/**
* Get and parse range from given type body context.
- *
+ *
* @param ctx
* type body context to parse
* @param moduleName
/**
* Parse given range context.
- *
+ *
* @param ctx
* range context to parse
* @param moduleName
/**
* Get and parse length from given type body context.
- *
+ *
* @param ctx
* type body context to parse
* @param moduleName
/**
* Parse given length context.
- *
+ *
* @param ctx
* length context to parse
* @param moduleName
/**
* @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'
*/
/**
* Parse type body and return pattern constraints.
- *
+ *
* @param ctx
* type body
* @return list of pattern constraints
/**
* Internal helper method.
- *
+ *
* @param ctx
* pattern context
* @return PatternConstraint object
/**
* Parse given context and return pattern value.
- *
+ *
* @param ctx
* context to parse
* @return pattern value as String
/**
* Get fraction digits value from type body.
- *
+ *
* @param ctx
* type body context to parse
* @param moduleName
/**
* Parse decimal64 fraction-digits value.
- *
+ *
* @param ctx
* decimal64 context
* @param moduleName
/**
* Internal helper method for parsing bit statements from given type body
* context.
- *
+ *
* @param ctx
* type body context to parse
* @param actualPath
/**
* Internal helper method for parsing bit context.
- *
+ *
* @param ctx
* bit statement context to parse
* @param highestPosition
/**
* 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
/**
* Get config statement from given context. If there is no config statement,
* return config value of parent
- *
+ *
* @param ctx
* context to parse
* @param parent
/**
* Parse config statement.
- *
+ *
* @param ctx
* config context to parse
* @param moduleName
/**
* Parse type body and create UnknownType definition.
- *
+ *
* @param typedefQName
* qname of current type
* @param ctx
/**
* Create TypeDefinition object based on given type name and type body.
- *
+ *
* @param typeName
* name of type
* @param typeBody
/**
* Parse given context and find identityref base value.
- *
+ *
* @param ctx
* type body
* @return identityref base value as String
/**
* Parse type body statement and find require-instance value.
- *
+ *
* @param ctx
* type body context
* @return require-instance value
/**
* Parse type body statement and find leafref path.
- *
+ *
* @param ctx
* type body context
* @return leafref path as String
/**
* Internal helper method for parsing must statement.
- *
+ *
* @param ctx
* Must_stmtContext
* @return MustDefinition object based on parsed context
/**
* Parse given context and set constraints to constraints builder.
- *
+ *
* @param ctx
* context to parse
* @param constraints
/**
* Parse given context and return yin value.
- *
+ *
* @param ctx
* context to parse
* @return true if value is 'true', false otherwise
/**
* Check this base type.
- *
+ *
* @param typeName
* base YANG type name
* @param moduleName
* 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'.");
/**
* 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) {