X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-common%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fcommon%2FQName.java;h=0ac89ae8da2c1d634d134bc07977877e5a9c4484;hb=27555bc40477a5db7a6d453f47a589705b2d5362;hp=d2ccf637d78ec6096daeb56ddbf2a3b3380ffc76;hpb=c6d1b9854775c8828e04b836c18003da70b68633;p=yangtools.git diff --git a/yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/QName.java b/yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/QName.java index d2ccf637d7..0ac89ae8da 100644 --- a/yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/QName.java +++ b/yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/QName.java @@ -117,59 +117,6 @@ public final class QName implements Immutable, Serializable, Comparable { return localName; } - /** - * QName Constructor. - * - * @param namespace - * the namespace assigned to the YANG module - * @param revision - * the revision of the YANG module - * @param localName - * YANG schema identifier - * - * @deprecated Use {@link #create(URI, Date, String)} instead. - */ - @Deprecated - public QName(final URI namespace, final Date revision, final String localName) { - this(QNameModule.create(namespace, revision), null, localName); - } - - /** - * Construct new QName which reuses namespace, revision and prefix from - * base. - * - * @param base - * @param localName - * @deprecated Use {@link #create(QName, String)} instead. - */ - @Deprecated - public QName(final QName base, final String localName) { - this(base.getModule(), base.getPrefix(), localName); - } - - /** - * @deprecated Use {@link #create(String)} instead. This implementation is - * broken. - */ - @Deprecated - public QName(final String input) throws ParseException { - final String nsAndRev = input.substring(input.indexOf("(") + 1, input.indexOf(")")); - final Date revision; - final URI namespace; - if (nsAndRev.contains("?")) { - String[] splitted = nsAndRev.split("\\?"); - namespace = URI.create(splitted[0]); - revision = getRevisionFormat().parse(splitted[1]); - } else { - namespace = URI.create(nsAndRev); - revision = null; - } - - this.localName = checkLocalName(input.substring(input.indexOf(")") + 1)); - this.prefix = null; - this.module = QNameModule.create(namespace, revision); - } - public static QName create(final String input) { Matcher matcher = QNAME_PATTERN_FULL.matcher(input); if (matcher.matches()) {