|
||||||||||
| 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
public abstract class NodeImpl
Implementation of SSWAPNode (a SSWAP entity that requires special handling in SSWAP protocol)
| 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 |
| Constructor Summary | |
|---|---|
NodeImpl()
|
|
| Method Summary | ||
|---|---|---|
private
|
as(java.lang.Class<T> clazz)
|
|
SSWAPGraph |
asSSWAPGraph()
Type-safe cast to SSWAPGraph. |
|
SSWAPObject |
asSSWAPObject()
Type-safe cast to SSWAPObject. |
|
SSWAPProvider |
asSSWAPProvider()
Type-safe cast to SSWAPProvider. |
|
SSWAPResource |
asSSWAPResource()
Type-safe cast to SSWAPResource. |
|
SSWAPSubject |
asSSWAPSubject()
Type-safe cast to SSWAPSubject. |
|
void |
dereference()
Dereferences this node, by first calling dereference() on the source model (if there is one; in case there is no source model, this method immediately returns). |
|
java.net.URI |
getID()
Gets a unique identifier of this node. |
|
private static java.lang.Class<? extends ModelImpl> |
getImplClass(java.lang.Class<? extends SSWAPModel> apiClass)
|
|
boolean |
isDereferenced()
Returns whether this object represents a dereferenced content stored under the URI, or is it just the URI. |
|
boolean |
isEmpireGenerated()
Checks whether the final implementation of this object is provided by Empire. |
|
private
|
isOfType(java.lang.Class<T> clazz)
|
|
boolean |
isSSWAPGraph()
Checks whether this node is a SSWAPGraph |
|
boolean |
isSSWAPObject()
Checks whether this node is a SSWAPObject |
|
boolean |
isSSWAPProvider()
Checks whether this node is a SSWAPProvider. |
|
boolean |
isSSWAPResource()
Checks whether this node is a SSWAPResource. |
|
boolean |
isSSWAPSubject()
Checks whether this node is a SSWAPSubject |
|
| 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, persist, refresh, 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, 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.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, doClosure, getDocument, getImports, getInputStream, getNsPrefixMap, getReasoningService, getTypeSignature, getURI, removeImport, removeNsPrefix, serialize, serialize, setNsPrefix, validate |
| Methods inherited from interface com.clarkparsia.empire.SupportsRdfId |
|---|
getRdfId, setRdfId |
| Constructor Detail |
|---|
public NodeImpl()
| Method Detail |
|---|
public void dereference()
throws DataAccessException
dereference in interface SSWAPModeldereference in class ModelImplDataAccessException - when trying to access the underlying data source while dereferencingpublic boolean isDereferenced()
SSWAPModel
isDereferenced in interface SSWAPModelisDereferenced in class ModelImplpublic SSWAPGraph asSSWAPGraph()
SSWAPNode
asSSWAPGraph in interface SSWAPNodepublic SSWAPObject asSSWAPObject()
SSWAPNode
asSSWAPObject in interface SSWAPNodepublic SSWAPProvider asSSWAPProvider()
SSWAPNode
asSSWAPProvider in interface SSWAPNodepublic SSWAPResource asSSWAPResource()
SSWAPNode
asSSWAPResource in interface SSWAPNodepublic SSWAPSubject asSSWAPSubject()
SSWAPNode
asSSWAPSubject in interface SSWAPNodepublic java.net.URI getID()
SSWAPNode
getID in interface SSWAPNodepublic boolean isEmpireGenerated()
public boolean isSSWAPGraph()
SSWAPNode
isSSWAPGraph in interface SSWAPNodepublic boolean isSSWAPObject()
SSWAPNode
isSSWAPObject in interface SSWAPNodepublic boolean isSSWAPProvider()
SSWAPNode
isSSWAPProvider in interface SSWAPNodepublic boolean isSSWAPResource()
SSWAPNode
isSSWAPResource in interface SSWAPNodepublic boolean isSSWAPSubject()
SSWAPNode
isSSWAPSubject in interface SSWAPNodeprivate <T extends SSWAPModel> boolean isOfType(java.lang.Class<T> clazz)
private <T extends SSWAPModel> T as(java.lang.Class<T> clazz)
private static java.lang.Class<? extends ModelImpl> getImplClass(java.lang.Class<? extends SSWAPModel> apiClass)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||