|
||||||||||
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.IndividualImpl
info.sswap.impl.empire.model.NodeImpl
info.sswap.impl.empire.model.EmpireGeneratedNodeImpl
info.sswap.impl.empire.model.SubjectImpl
public abstract class SubjectImpl
Implementation of SSWAPSubject. This abstract class contains a few abstract methods whose implementation will be automatically provided by Empire at run-time.
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 java.util.Set<GraphImpl> |
graphs
|
Constructor Summary | |
---|---|
SubjectImpl()
The default constructor |
Method Summary | |
---|---|
(package private) void |
addGraph(SSWAPGraph graph)
|
void |
addObject(SSWAPObject object)
Adds a new object for this SSWAPSubject (i.e., existing objects are preserved, and the added object is appended). |
private void |
detachExistingObjects()
|
SSWAPGraph |
getGraph()
Gets the graph to which this subject belongs. |
java.util.Collection<SSWAPGraph> |
getGraphs()
Gets the graphs to which this subject belongs. |
abstract java.util.List<ObjectImpl> |
getMapsToEmpireList()
Gets a list of SSWAPObject implementations that are all connected to this SSWAPSubject by sswap:mapsTo predicate. |
java.util.List<ObjectImpl> |
getMapsToList()
|
SSWAPObject |
getObject()
Gets the object, onto which this subject is mapped. |
java.util.Collection<SSWAPObject> |
getObjects()
Gets all the objects, onto which this subject is mapped. |
(package private) void |
removeGraph(SSWAPGraph graph)
|
abstract void |
setMapsToEmpireList(java.util.List<ObjectImpl> mapsToList)
Sets a list of SSWAPObject implementations that will all be connected to this SSWAPSubject by sswap:mapsTo predicate. |
void |
setObject(SSWAPObject object)
Sets a new SSWAPObject for this SSWAPSubject. |
void |
setObjects(java.util.Collection<SSWAPObject> objects)
Maps this subject onto the provided collection |
void |
validate()
Verifies whether the underlying RDF data conforms to SSWAP syntax and requirements. |
Methods inherited from class info.sswap.impl.empire.model.EmpireGeneratedNodeImpl |
---|
ensureProperView, ensureProperView, isEmpireGenerated, listFromImpl, listToImpl, persist, refresh, setSourceModel, toListImpl |
Methods inherited from class info.sswap.impl.empire.model.NodeImpl |
---|
asSSWAPGraph, asSSWAPObject, asSSWAPProvider, asSSWAPResource, asSSWAPSubject, dereference, getID, isDereferenced, isSSWAPGraph, isSSWAPObject, isSSWAPProvider, isSSWAPResource, isSSWAPSubject |
Methods inherited from class info.sswap.impl.empire.model.IndividualImpl |
---|
addComment, addIgnoredProperty, addIgnoredType, addLabel, addProperty, addProperty, addProperty, addProperty, addProperty, addType, asIndividual, assertType, clearProperty, clearProperty, closeWorld, equals, getDeclaredType, getDeclaredTypes, getIgnoredProperties, getIgnoredTypes, getInferredIndividual, getProperties, getProperties, getProperty, getType, getTypes, hashCode, hasValue, hasValue, isCompatibleWith, isIndividual, isOfType, removeProperty, removeProperty, removeType, setDefaultParameterValues, setProperty, setProperty, setProperty, setProperty, setProperty, setSourceModel |
Methods inherited from class info.sswap.impl.empire.model.ElementImpl |
---|
asBoolean, asDouble, asInteger, asList, asLiteral, asString, getComment, getJenaResource, getLabel, isAnonymous, isList, isLiteral |
Methods inherited from class info.sswap.impl.empire.model.ModelImpl |
---|
addImport, assertModel, assertSourceModel, checkProfile, dereference, doClosure, getAllDependentObjects, getDependentObject, getDocument, getExpressivity, getImports, getInputStream, getNsPrefixMap, getReasoningService, getSourceModel, getTypeSignature, getURI, hasSourceModel, hasSourceModelWithEntityManager, rdfIdEquals, rdfIdHashCode, refreshSiblings, removeImport, removeNsPrefix, serialize, serialize, setDereferenced, setNsPrefix, setURI |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface info.sswap.api.model.SSWAPNode |
---|
asSSWAPGraph, asSSWAPObject, asSSWAPProvider, asSSWAPResource, asSSWAPSubject, getID, isSSWAPGraph, isSSWAPObject, isSSWAPProvider, isSSWAPResource, isSSWAPSubject |
Methods inherited from interface info.sswap.api.model.SSWAPIndividual |
---|
addProperty, addProperty, addProperty, addProperty, addType, clearProperty, getDeclaredType, getDeclaredTypes, getInferredIndividual, getProperties, getProperties, getProperty, getType, getTypes, hasValue, hasValue, isAnonymous, isCompatibleWith, isOfType, removeProperty, removeProperty, removeType, setProperty, setProperty, setProperty, setProperty |
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 |
Methods inherited from interface com.clarkparsia.empire.SupportsRdfId |
---|
getRdfId, setRdfId |
Field Detail |
---|
private java.util.Set<GraphImpl> graphs
Constructor Detail |
---|
public SubjectImpl()
Method Detail |
---|
public SSWAPGraph getGraph()
SSWAPSubject
getGraph
in interface SSWAPSubject
public java.util.Collection<SSWAPGraph> getGraphs()
SSWAPSubject
getGraphs
in interface SSWAPSubject
void addGraph(SSWAPGraph graph)
void removeGraph(SSWAPGraph graph)
public SSWAPObject getObject()
SSWAPSubject
getObject
in interface SSWAPSubject
public java.util.Collection<SSWAPObject> getObjects()
SSWAPSubject
getObjects
in interface SSWAPSubject
public void setObject(SSWAPObject object)
SSWAPSubject
setObject
in interface SSWAPSubject
object
- the new SSWAPObjectpublic void addObject(SSWAPObject object)
SSWAPSubject
addObject
in interface SSWAPSubject
object
- the object to be addedpublic void setObjects(java.util.Collection<SSWAPObject> objects)
SSWAPSubject
setObjects
in interface SSWAPSubject
objects
- Collection of SSWAPObjects to be associated with (mapped from) this SSWAPSubjectprivate void detachExistingObjects()
public abstract java.util.List<ObjectImpl> getMapsToEmpireList()
public java.util.List<ObjectImpl> getMapsToList()
public abstract void setMapsToEmpireList(java.util.List<ObjectImpl> mapsToList)
mapsToList
- a list of SSWAPObject implementations. The list may be either empty or null, if there are no such
objects.public void validate() throws ValidationException
SSWAPModel
validate
in interface SSWAPModel
validate
in class ModelImpl
ValidationException
- if the data violates SSWAP syntax or requirements
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |