/** The public URI of the ARK. */
private final String publicURI;
+ /** The private URI of the ARK. */
+ private final String privateURI;
+
/** The number of the ARK. */
private final int number;
* The number of the ARK
*/
public ARK(String publicURI, String number) {
+ this(publicURI, null, number);
+ }
+
+ /**
+ * Creates a new ARK with the given URIs and number.
+ *
+ * @param publicURI
+ * The public URI of the ARK
+ * @param privateURI
+ * The private URI of the ARK
+ * @param number
+ * The number of the ARK
+ */
+ public ARK(String publicURI, String privateURI, String number) {
if ((publicURI == null) || (number == null)) {
throw new NullPointerException(((publicURI == null) ? "publicURI" : "number") + " must not be null");
}
this.publicURI = publicURI;
+ this.privateURI = privateURI;
try {
this.number = Integer.valueOf(number);
} catch (NumberFormatException nfe1) {
}
/**
+ * Returns the private URI of the ARK.
+ *
+ * @return The private URI of the ARK
+ */
+ public String getPrivateURI() {
+ return privateURI;
+ }
+
+ /**
* Returns the number of the ARK.
*
* @return The number of the ARK