commonsrdf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject [40/50] incubator-commonsrdf git commit: about ConversionException
Date Fri, 07 Oct 2016 14:23:34 GMT
about ConversionException


Project: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/commit/afbcf114
Tree: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/tree/afbcf114
Diff: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/diff/afbcf114

Branch: refs/heads/rdf4j
Commit: afbcf114dbe296d7e20eec26c437a7e0a7dddbf9
Parents: fd87f5a
Author: Stian Soiland-Reyes <stain@apache.org>
Authored: Fri Oct 7 09:42:26 2016 +0100
Committer: Stian Soiland-Reyes <stain@apache.org>
Committed: Fri Oct 7 09:42:26 2016 +0100

----------------------------------------------------------------------
 .../org/apache/commons/rdf/jena/JenaRDFTermFactory.java   | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/afbcf114/jena/src/main/java/org/apache/commons/rdf/jena/JenaRDFTermFactory.java
----------------------------------------------------------------------
diff --git a/jena/src/main/java/org/apache/commons/rdf/jena/JenaRDFTermFactory.java b/jena/src/main/java/org/apache/commons/rdf/jena/JenaRDFTermFactory.java
index 6793335..5b9bebc 100644
--- a/jena/src/main/java/org/apache/commons/rdf/jena/JenaRDFTermFactory.java
+++ b/jena/src/main/java/org/apache/commons/rdf/jena/JenaRDFTermFactory.java
@@ -212,8 +212,9 @@ public final class JenaRDFTermFactory implements RDFTermFactory {
 	 *            The Jena Node to adapt. It's {@link Node#isConcrete()} must be
 	 *            <code>true</code>.
 	 * @return Adapted {@link JenaRDFTerm}
-	 * @throws ConversionException
-	 *             if the node is not concrete.
+	 * @throws ConversionException If the {@link Node} can't be represented as an {@link RDFTerm},
e.g.
+	 *             if the node is not {@link Node#isConcrete()},
+	 *             is {@link Node#isVariable()}, or is {@link Node.ANY}
 	 */
 	public JenaRDFTerm fromJena(Node node) throws ConversionException {
 		return JenaFactory.fromJena(node, getSalt());
@@ -238,8 +239,9 @@ public final class JenaRDFTermFactory implements RDFTermFactory {
 	 *            UUID salt for the purpose of
 	 *            {@link BlankNode#uniqueReference()}
 	 * @return Adapted {@link JenaRDFTerm}
-	 * @throws ConversionException
-	 *             if the node is not concrete.
+	 * @throws ConversionException If the {@link Node} can't be represented as an {@link RDFTerm},
e.g.
+	 *             if the node is not {@link Node#isConcrete()},
+	 *             is {@link Node#isVariable()}, or is {@link Node.ANY}
 	 */
 	public static JenaRDFTerm fromJena(Node node, UUID salt) {
 		return JenaFactory.fromJena(node, salt);


Mime
View raw message