/** * Returns the <tt>long</tt> value of this literal. * * @return The <tt>long</tt> value of the literal. * @throws NumberFormatException If the literal's label cannot be represented by to a <tt>long</tt>. */ @Override public long longValue() { return getIntContent(); } }
/** * Returns the <tt>long</tt> value of this literal. * * @return The <tt>long</tt> value of the literal. * @throws NumberFormatException If the literal's label cannot be represented by to a <tt>long</tt>. */ @Override public long longValue() { return getIntContent(); } }
/** * Returns the <tt>int</tt> value of this literal. * * @return The <tt>int</tt> value of the literal. * @throws NumberFormatException If the literal's label cannot be represented by a <tt>int</tt>. */ @Override public int intValue() { return getIntContent().intValue(); }
/** * Returns the <tt>int</tt> value of this literal. * * @return The <tt>int</tt> value of the literal. * @throws NumberFormatException If the literal's label cannot be represented by a <tt>int</tt>. */ @Override public int intValue() { return getIntContent().intValue(); }
/** * Returns the <tt>short</tt> value of this literal. * * @return The <tt>short</tt> value of the literal. * @throws NumberFormatException If the literal's label cannot be represented by a <tt>short</tt>. */ @Override public short shortValue() { return getIntContent().shortValue(); }
/** * Returns the <tt>short</tt> value of this literal. * * @return The <tt>short</tt> value of the literal. * @throws NumberFormatException If the literal's label cannot be represented by a <tt>short</tt>. */ @Override public short shortValue() { return getIntContent().shortValue(); }
/** * Returns the <tt>byte</tt> value of this literal. * * @return The <tt>byte value of the literal. * @throws NumberFormatException If the literal cannot be represented by a <tt>byte</tt>. */ @Override public byte byteValue() { return getIntContent().byteValue(); }
/** * Returns the <tt>byte</tt> value of this literal. * * @return The <tt>byte value of the literal. * @throws NumberFormatException If the literal cannot be represented by a <tt>byte</tt>. */ @Override public byte byteValue() { return getIntContent().byteValue(); }
/** * Efficiently serialize a KiWiIntLiteral to a DataOutput destination. * * @param out the destination * @param literal the KiWiIntLiteral to serialize * @throws IOException */ public static void writeIntLiteral(DataOutput out, KiWiIntLiteral literal) throws IOException { if(literal == null) { out.writeLong(-1L); } else { out.writeLong(literal.getId()); out.writeLong(literal.getIntContent()); writeURI(out, literal.getType()); out.writeLong(literal.getCreated().getTime()); } }
/** * Efficiently serialize a KiWiIntLiteral to a DataOutput destination. * * @param out the destination * @param literal the KiWiIntLiteral to serialize * @throws IOException */ public static void writeIntLiteral(DataOutput out, KiWiIntLiteral literal) throws IOException { if(literal == null) { out.writeLong(-1L); } else { out.writeLong(literal.getId()); out.writeLong(literal.getIntContent()); writeURI(out, literal.getType()); out.writeLong(literal.getCreated().getTime()); } }
insertNode.setString(2, intLiteral.getContent()); insertNode.setDouble(3, intLiteral.getDoubleContent()); insertNode.setLong(4, intLiteral.getIntContent()); if (intLiteral.getType() != null) insertNode.setLong(5,intLiteral.getType().getId());
insertNode.setString(2, intLiteral.getContent()); insertNode.setDouble(3, intLiteral.getDoubleContent()); insertNode.setLong(4, intLiteral.getIntContent()); if (intLiteral.getType() != null) insertNode.setLong(5,intLiteral.getType().getId());
} else if(n instanceof KiWiIntLiteral) { KiWiIntLiteral l = (KiWiIntLiteral)n; createNodeList(rowArray, l.getId(), l.getClass(), l.getContent(), l.getDoubleContent(), l.getIntContent(), null, null, null, l.getDatatype(), l.getLocale(), l.getCreated()); } else if(n instanceof KiWiDoubleLiteral) { KiWiDoubleLiteral l = (KiWiDoubleLiteral)n;
} else if(n instanceof KiWiIntLiteral) { KiWiIntLiteral l = (KiWiIntLiteral)n; createNodeList(rowArray, l.getId(), l.getClass(), l.getContent(), l.getDoubleContent(), l.getIntContent(), null, null, null, l.getDatatype(), l.getLocale(), l.getCreated()); } else if(n instanceof KiWiDoubleLiteral) { KiWiDoubleLiteral l = (KiWiDoubleLiteral)n;
} else if(n instanceof KiWiIntLiteral) { KiWiIntLiteral l = (KiWiIntLiteral)n; createNodeList(rowArray, l.getId(), l.getClass(), l.getContent(), l.getDoubleContent(), l.getIntContent(), null, null, null, l.getDatatype(), l.getLocale(), l.getCreated()); } else if(n instanceof KiWiDoubleLiteral) { KiWiDoubleLiteral l = (KiWiDoubleLiteral)n;
} else if(n instanceof KiWiIntLiteral) { KiWiIntLiteral l = (KiWiIntLiteral)n; createNodeList(rowArray, l.getId(), l.getClass(), l.getContent(), l.getDoubleContent(), l.getIntContent(), null, null, null, l.getDatatype(), l.getLocale(), l.getCreated()); } else if(n instanceof KiWiDoubleLiteral) { KiWiDoubleLiteral l = (KiWiDoubleLiteral)n;