|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.sswap.impl.empire.model.ModelImpl
info.sswap.impl.empire.model.ElementImpl
info.sswap.impl.empire.model.PropertyImpl
public class PropertyImpl
Implementation of SSWAPProperty
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.clarkparsia.empire.SupportsRdfId |
---|
com.clarkparsia.empire.SupportsRdfId.BNodeKey, com.clarkparsia.empire.SupportsRdfId.RdfKey<T>, com.clarkparsia.empire.SupportsRdfId.URIKey |
Field Summary | |
---|---|
private SSWAPIndividual |
individual
|
private static int |
ODD_PRIME
An arbitrary odd prime used in the hash function. |
private java.net.URI |
uri
|
private SSWAPElement |
value
The value of the property. |
Constructor Summary | |
---|---|
PropertyImpl(SSWAPIndividual individual,
com.hp.hpl.jena.rdf.model.Property property)
Initializes the SSWAPProperty based on the information from a Jena Property (the predicate between SSWAPIndividual and the value). |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
SSWAPIndividual |
getIndividual()
Gets the individual for which this property is assigned. |
SSWAPPredicate |
getPredicate()
Gets the SSWAPPredicate for this property. |
com.clarkparsia.empire.SupportsRdfId.RdfKey |
getRdfId()
|
java.net.URI |
getURI()
Get the URI. |
SSWAPElement |
getValue()
Gets the value of the property. |
int |
hashCode()
Overridden hash code method to make sure that the generated hashcodes are consistent with the overriden equals() method. |
void |
removeProperty()
Removes the property from the individual. |
(package private) void |
setIndividual(SSWAPIndividual individual)
|
void |
setRdfId(com.clarkparsia.empire.SupportsRdfId.RdfKey rdfIdentifier)
|
void |
setURI(java.net.URI uri)
Sets the URI of this object. |
(package private) void |
setValue(SSWAPElement value)
|
Methods inherited from class info.sswap.impl.empire.model.ElementImpl |
---|
addComment, addLabel, asBoolean, asDouble, asIndividual, asInteger, asList, asLiteral, asString, getComment, getJenaResource, getLabel, isAnonymous, isIndividual, isList, isLiteral |
Methods inherited from class info.sswap.impl.empire.model.ModelImpl |
---|
addImport, assertModel, assertSourceModel, checkProfile, dereference, dereference, doClosure, getAllDependentObjects, getDependentObject, getDocument, getExpressivity, getImports, getInputStream, getNsPrefixMap, getReasoningService, getSourceModel, getTypeSignature, hasSourceModel, hasSourceModelWithEntityManager, isDereferenced, persist, rdfIdEquals, rdfIdHashCode, refresh, refreshSiblings, removeImport, removeNsPrefix, serialize, serialize, setDereferenced, setNsPrefix, setSourceModel, validate |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface info.sswap.api.model.SSWAPElement |
---|
addComment, addLabel, asBoolean, asDouble, asIndividual, asInteger, asList, asLiteral, asString, getComment, getLabel, isIndividual, isList, isLiteral |
Methods inherited from interface info.sswap.api.model.SSWAPModel |
---|
addImport, checkProfile, dereference, dereference, doClosure, getDocument, getImports, getInputStream, getNsPrefixMap, getReasoningService, getTypeSignature, isDereferenced, removeImport, removeNsPrefix, serialize, serialize, setNsPrefix, validate |
Field Detail |
---|
private java.net.URI uri
private SSWAPIndividual individual
private SSWAPElement value
private static final int ODD_PRIME
Constructor Detail |
---|
PropertyImpl(SSWAPIndividual individual, com.hp.hpl.jena.rdf.model.Property property)
property
- the Jena PropertyMethod Detail |
---|
public com.clarkparsia.empire.SupportsRdfId.RdfKey getRdfId()
getRdfId
in interface com.clarkparsia.empire.SupportsRdfId
public void setRdfId(com.clarkparsia.empire.SupportsRdfId.RdfKey rdfIdentifier)
setRdfId
in interface com.clarkparsia.empire.SupportsRdfId
public void setURI(java.net.URI uri)
ModelImpl
setURI
in class ModelImpl
uri
- the new uri of the objectpublic java.net.URI getURI()
SSWAPModel
getURI
in interface SSWAPModel
getURI
in class ModelImpl
public SSWAPElement getValue()
SSWAPProperty
getValue
in interface SSWAPProperty
void setValue(SSWAPElement value)
public SSWAPPredicate getPredicate()
SSWAPProperty
getPredicate
in interface SSWAPProperty
public SSWAPIndividual getIndividual()
SSWAPProperty
getIndividual
in interface SSWAPProperty
void setIndividual(SSWAPIndividual individual)
public void removeProperty()
SSWAPProperty
removeProperty
in interface SSWAPProperty
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |