/**
* Base class of YANG Schema source identifiers.
*
+ * <p>
* Source identifiers are designated to be carry only necessary information to
* look-up YANG model source and to be used by various SchemaSourceProviders.
*
+ * <p>
* (For further reference see: http://tools.ietf.org/html/rfc6020#section-5.2
* and http://tools.ietf.org/html/rfc6022#section-3.1 ).
*/
/**
* Simplified compiled revision pattern in format YYYY-mm-dd, which checks
* only distribution of number elements.
+ *
* <p>
- * For checking if supplied string is real date, use
- * {@link SimpleDateFormatUtil} instead.
+ * For checking if supplied string is real date, use {@link SimpleDateFormatUtil} instead.
*/
public static final Pattern REVISION_PATTERN = Pattern.compile(REVISION_PATTERN_STR);
private final String name;
/**
- *
* Creates new YANG Schema source identifier for sources without revision.
*
* @param name
}
/**
- * Returns model name
+ * Returns model name.
*
* @return model name
*/
}
/**
- * <p>
* Since we've got two ways of model versioning (revision & semantic version),
* this method shouldn't be called directly anymore. Eventually, callers of this method
* should be notified before method gets deleted.
* <li>{@link SemVerSourceIdentifier#create(String, SemVer)}</li>
* <li>{@link SemVerSourceIdentifier#create(String, Optional, SemVer)}</li>
* <li>{@link SemVerSourceIdentifier#create(String, String, SemVer)}</li>
- * </ul>
- * or
+ * </ul>or
* <ul>
* <li>{@link RevisionSourceIdentifier#create(String)}</li>
* <li>{@link RevisionSourceIdentifier#create(String, String)}</li>
*
* @param moduleName
* Name of schema
-
* @param revision
* Revision of source in format YYYY-mm-dd. If not present,
* default value will be used.
- *
* @return particular SourceIdentifier instance
- *
*/
@Deprecated
public static SourceIdentifier create(final String moduleName, final Optional<String> revision) {
/**
* Returns filename for this YANG module as specified in RFC 6020.
*
- * Returns filename in format <code>name ['@' revision] '.yang'</code>
- * <p>
- * Where revision is date in format YYYY-mm-dd.
* <p>
+ * Returns filename in format <code>name ['@' revision] '.yang'</code>,
+ * where revision is date in format YYYY-mm-dd.
*
+ * <p>
* @see <a href="http://tools.ietf.org/html/rfc6020#section-5.2">RFC6020</a>
*
* @return Filename for this source identifier.
/**
* Returns filename for this YANG module as specified in RFC 6020.
*
- * Returns filename in format <code>moduleName ['@' revision] '.yang'</code>
- *
- * Where Where revision-date is in format YYYY-mm-dd.
+ * <p>
+ * Returns filename in format <code>moduleName ['@' revision] '.yang'</code>,
+ * where Where revision-date is in format YYYY-mm-dd.
*
* <p>
* See http://tools.ietf.org/html/rfc6020#section-5.2