KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > xml > crypto > URIReference


1 /*
2  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
3  */

4 /*
5  * $Id: URIReference.java,v 1.4 2005/05/10 15:47:42 mullan Exp $
6  */

7 package javax.xml.crypto;
8
9 /**
10  * Identifies a data object via a URI-Reference, as specified by
11  * <a HREF="http://www.ietf.org/rfc/rfc2396.txt">RFC 2396</a>.
12  *
13  * <p>Note that some subclasses may not have a <code>type</code> attribute
14  * and for objects of those types, the {@link #getType} method always returns
15  * <code>null</code>.
16  *
17  * @author Sean Mullan
18  * @author JSR 105 Expert Group
19  * @since 1.6
20  * @see URIDereferencer
21  */

22 public interface URIReference {
23
24     /**
25      * Returns the URI of the referenced data object.
26      *
27      * @return the URI of the data object in RFC 2396 format (may be
28      * <code>null</code> if not specified)
29      */

30     String JavaDoc getURI();
31
32     /**
33      * Returns the type of data referenced by this URI.
34      *
35      * @return the type (a URI) of the data object (may be <code>null</code>
36      * if not specified)
37      */

38     String JavaDoc getType();
39 }
40
Popular Tags