Package org.openrdf.model

Examples of org.openrdf.model.Literal.booleanValue()


            throw new ValueExprEvaluationException(e.getMessage(), e);
          }
        }
        else if (datatype.equals(XMLSchema.BOOLEAN)) {
          try {
            return valueFactory.createLiteral(literal.booleanValue() ? "1" : "0", XMLSchema.INTEGER);
          }
          catch (IllegalArgumentException e) {
            throw new ValueExprEvaluationException(e.getMessage(), e);
          }
        }
View Full Code Here


            throw new ValueExprEvaluationException(e.getMessage(), e);
          }
        }
        else if (datatype.equals(XMLSchema.BOOLEAN)) {
          try {
            return valueFactory.createLiteral(literal.booleanValue() ? "1.0" : "0.0", XMLSchema.DECIMAL);
          }
          catch (IllegalArgumentException e) {
            throw new ValueExprEvaluationException(e.getMessage(), e);
          }
        }
View Full Code Here

            throw new ValueExprEvaluationException(e.getMessage(), e);
          }
        }
        else if (datatype.equals(XMLSchema.BOOLEAN)) {
          try {
            return valueFactory.createLiteral(literal.booleanValue() ? 1f : 0f);
          }
          catch (IllegalArgumentException e) {
            throw new ValueExprEvaluationException(e.getMessage(), e);
          }
        }
View Full Code Here

      }

      Literal forceSyncLit = GraphUtil.getOptionalObjectLiteral(graph, implNode, FORCE_SYNC);
      if (forceSyncLit != null) {
        try {
          setForceSync(forceSyncLit.booleanValue());
        }
        catch (IllegalArgumentException e) {
          throw new SailConfigException("Boolean value required for " + FORCE_SYNC + " property, found "
              + forceSyncLit);
        }
View Full Code Here

            } else if (XMLSchema.DATETIME.equals(datatype)) {
                return l.calendarValue();
            } else if (XMLSchema.DOUBLE.equals(datatype)) {
                return l.doubleValue();
            } else if (XMLSchema.BOOLEAN.equals(datatype)) {
                return l.booleanValue();
            } else if (XMLSchema.DECIMAL.equals(datatype)) {
                return l.decimalValue();
            } else {
                return l.getLabel();
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.