- return QName.create(BASE_TYPES_MODULE, "", typeName);
- }
-
- /**
- * Creates Schema Path from {@link QName}.
- *
- * @param typeName
- * yang type QName
- * @return Schema Path from Qname.
- * @deprecated Use {@link SchemaPath#create(boolean, QName...)} instead.
- */
- @Deprecated
- public static SchemaPath schemaPath(final QName typeName) {
- return SchemaPath.create(true, typeName);
- }
-
- /**
- * Creates Schema Path from List of partial paths defined as Strings, module
- * Namespace and module latest Revision Date.
- *
- * @param actualPath
- * List of partial paths
- * @param namespace
- * Module Namespace
- * @param revision
- * Revision Date
- * @return Schema Path
- *
- * @deprecated Use {@link SchemaPath#create(boolean, Iterable)} with QNames
- * manually constructed.
- */
- @Deprecated
- public static SchemaPath schemaPath(final List<String> actualPath, final URI namespace, final Date revision) {
- if (actualPath == null) {
- throw new IllegalArgumentException("The actual path List MUST be specified.");
- }
- final List<QName> pathList = new ArrayList<QName>();
- for (final String path : actualPath) {
- final QName qname = QName.create(namespace, revision, path);
- if (qname != null) {
- pathList.add(qname);
- }
- }
- return SchemaPath.create(pathList, true);