public KiWiIntLiteral(Long content, KiWiUriResource type) { super(); setIntContent(content); setType(type); }
/** * Returns the <tt>double</tt> value of this literal. * * @return The <tt>double</tt> value of the literal. * @throws NumberFormatException If the literal's label cannot be represented by a <tt>double</tt>. */ @Override public double doubleValue() { return getDoubleContent(); }
/** * 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(); } }
public KiWiDoubleLiteral(Double content, KiWiUriResource type) { super(); setType(type); setDoubleContent(content); }
/** * Gets the label of this literal. * * @return The literal's label. */ @Override public String getLabel() { return getContent(); }
/** * Gets the label of this literal. * * @return The literal's label. */ @Override public String getLabel() { return getContent(); }
/** * Return a unique key to be used in caches and similar. * * @return */ public String getKey() { return toString(); }
/** * Gets the namespace of this URI. The namespace is defined as per the * algorithm described in the class documentation. * * @return The URI's namespace. */ @Override public String getNamespace() { initNamespace(); return namespace; }
/** * Returns the String-value of a <tt>Value</tt> object. This returns either * a {@link org.openrdf.model.Literal}'s label, a {@link org.openrdf.model.URI}'s URI or a {@link org.openrdf.model.BNode}'s ID. */ @Override public String stringValue() { return getLabel(); } }
public KiWiIntLiteral(Long content, KiWiUriResource type) { super(); setIntContent(content); setType(type); }
public KiWiDoubleLiteral(Double content, KiWiUriResource type, Date created) { super(created); setType(type); setDoubleContent(content); }
/** * Returns the <tt>double</tt> value of this literal. * * @return The <tt>double</tt> value of the literal. * @throws NumberFormatException If the literal's label cannot be represented by a <tt>double</tt>. */ @Override public double doubleValue() { return getDoubleContent(); }
/** * 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(); } }
/** * Gets the local name of this URI. The local name is defined as per the * algorithm described in the class documentation. * * @return The URI's local name. */ @Override public String getLocalName() { initNamespace(); return localName; }
public KiWiIntLiteral(Long content, KiWiUriResource type, Date created) { super(created); setIntContent(content); setType(type); }
public KiWiDoubleLiteral(Double content, KiWiUriResource type) { super(); setType(type); setDoubleContent(content); }
/** * Gets the namespace of this URI. The namespace is defined as per the * algorithm described in the class documentation. * * @return The URI's namespace. */ @Override public String getNamespace() { initNamespace(); return namespace; }