Repository: commons-rdf
Updated Branches:
  refs/heads/master f4be79635 -> 6550f1243


COMMONSRDF-59: merged patch from @acoburn on github, closes #33

Signed-off-by: Sergio Fernández <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/commons-rdf/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-rdf/commit/6550f124
Tree: http://git-wip-us.apache.org/repos/asf/commons-rdf/tree/6550f124
Diff: http://git-wip-us.apache.org/repos/asf/commons-rdf/diff/6550f124

Branch: refs/heads/master
Commit: 6550f1243f4d342ec73a64e88a9b2a6866d80a6f
Parents: f4be796
Author: Sergio Fernández <[email protected]>
Authored: Wed May 10 12:08:16 2017 +0200
Committer: Sergio Fernández <[email protected]>
Committed: Wed May 10 12:08:16 2017 +0200

----------------------------------------------------------------------
 .../org/apache/commons/rdf/api/RDFSyntax.java     | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-rdf/blob/6550f124/api/src/main/java/org/apache/commons/rdf/api/RDFSyntax.java
----------------------------------------------------------------------
diff --git a/api/src/main/java/org/apache/commons/rdf/api/RDFSyntax.java 
b/api/src/main/java/org/apache/commons/rdf/api/RDFSyntax.java
index c82c0f5..954fe28 100644
--- a/api/src/main/java/org/apache/commons/rdf/api/RDFSyntax.java
+++ b/api/src/main/java/org/apache/commons/rdf/api/RDFSyntax.java
@@ -125,11 +125,13 @@ public interface RDFSyntax {
      * <code>Accept</code> for <em>content negotiation</em> in the
      * <a href="https://tools.ietf.org/html/rfc7231#section-3.1.1.1";>HTTP
      * protocol</a>.
+     *
+     * @return The registered media type of the RDF Syntax
      */
     public String mediaType();
 
     /**
-     * Set of <a href="https://tools.ietf.org/html/rfc2046";>IANA media 
types/a> that
+     * Set of <a href="https://tools.ietf.org/html/rfc2046";>IANA media 
types</a> that
      * covers this RDF syntax, including any non-official media types. 
      * <p>
      * The media type can be used as part of <code>Content-Type</code> and
@@ -139,6 +141,8 @@ public interface RDFSyntax {
      * <p>
      * The returned Set MUST include the value {@link #mediaType()}; this is 
the
      * behaviour of the default implementation.
+     *
+     * @return The media types corresponding to the RDF Syntax
      */
     default public Set<String> mediaTypes() {
         return Collections.singleton(mediaType());
@@ -149,6 +153,8 @@ public interface RDFSyntax {
      * file extension.
      * <p>
      * The file extension includes the leading period, e.g. 
<code>.jsonld</code>
+     *
+     * @return The registered file extension of the RDF Syntax
      */
     public String fileExtension();
 
@@ -159,6 +165,8 @@ public interface RDFSyntax {
      * <p>
      * The returned Set MUST include the value from {@link #fileExtension()}; 
this is
      * the behaviour of the default implementation.
+     *
+     * @return The file extensions corresponding to the RDF Syntax
      */
     default public Set<String> fileExtensions() {
         return Collections.singleton(fileExtension());
@@ -168,6 +176,8 @@ public interface RDFSyntax {
      * Indicate if this RDF syntax supports
      * <a href="https://www.w3.org/TR/rdf11-concepts/#section-dataset";>RDF
      * Datasets</a>.
+     *
+     * @return true if this RDF Syntax supports datasets; false otherwise
      */
     public boolean supportsDataset();
 
@@ -190,8 +200,8 @@ public interface RDFSyntax {
      * according to {@link String#toLowerCase(Locale)} with the locale
      * {@link Locale#ROOT}.
      * 
-     * @param obj
-     * @return
+     * @param obj the object with which to compare
+     * @return true if this object is the same as the obj argument; false 
otherwise
      */
     @Override
     boolean equals(Object obj);
@@ -295,4 +305,4 @@ public interface RDFSyntax {
     }
 
 
-}
\ No newline at end of file
+}

Reply via email to