|
||||||||||
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.DatatypeImpl
public class DatatypeImpl
Implementation of SSWAPDatatype
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface info.sswap.api.model.SSWAPDatatype |
---|
SSWAPDatatype.XSD |
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 com.clarkparsia.empire.SupportsRdfId.RdfKey |
rdfKey
The RDF identifier of this data type. |
private com.hp.hpl.jena.rdf.model.Resource |
resource
The Jena resource that defines this data type (important for fast access to type information). |
Constructor Summary | |
---|---|
DatatypeImpl(SourceModel parent,
java.net.URI uri)
Creates a datatype |
Method Summary | |
---|---|
void |
addOneOf(java.util.Collection<SSWAPLiteral> oneOf)
Adds an owl:oneOf axiom to this datatype |
private com.hp.hpl.jena.rdf.model.Statement |
createRdfTypeStatement(java.net.URI typeURI)
Creates a Jena statement that states that this type is an owl:Class. |
boolean |
equals(java.lang.Object o)
|
com.clarkparsia.empire.SupportsRdfId.RdfKey |
getRdfId()
Gets the RDF identifier of this type. |
(package private) com.hp.hpl.jena.rdf.model.Resource |
getResource()
Gets the corresponding Jena resource for this datatype. |
int |
hashCode()
Overridden hash code method to make sure that the generated hashcodes are consistent with the overriden equals() method. |
void |
setRdfId(com.clarkparsia.empire.SupportsRdfId.RdfKey rdfKey)
Sets the RDF identifier of this type. |
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, getURI, hasSourceModel, hasSourceModelWithEntityManager, isDereferenced, persist, rdfIdEquals, rdfIdHashCode, refresh, refreshSiblings, removeImport, removeNsPrefix, serialize, serialize, setDereferenced, setNsPrefix, setSourceModel, setURI, 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, getURI, isDereferenced, removeImport, removeNsPrefix, serialize, serialize, setNsPrefix, validate |
Field Detail |
---|
private com.clarkparsia.empire.SupportsRdfId.RdfKey rdfKey
private com.hp.hpl.jena.rdf.model.Resource resource
Constructor Detail |
---|
public DatatypeImpl(SourceModel parent, java.net.URI uri)
parent
- the source model where the datatype should be createduri
- the URI of the datatype (may be null for an anonymous datatype)Method Detail |
---|
private com.hp.hpl.jena.rdf.model.Statement createRdfTypeStatement(java.net.URI typeURI)
public void addOneOf(java.util.Collection<SSWAPLiteral> oneOf)
SSWAPDatatype
addOneOf
in interface SSWAPDatatype
oneOf
- the collection of literals that will be the only valid values for this datatypepublic com.clarkparsia.empire.SupportsRdfId.RdfKey getRdfId()
getRdfId
in interface com.clarkparsia.empire.SupportsRdfId
public void setRdfId(com.clarkparsia.empire.SupportsRdfId.RdfKey rdfKey)
setRdfId
in interface com.clarkparsia.empire.SupportsRdfId
rdfKey
- the RDF identifier of this type (URL or BNode identifier).com.hp.hpl.jena.rdf.model.Resource getResource()
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 |