|
||||||||||
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.ProviderImpl
public abstract class ProviderImpl
Record describing a Provider in SSWAP. This object is created based on the data read from the underlying semantic web data. In general, if the information is missing from that graph, the corresponding method will return null reference.
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 | |
---|---|
ProviderImpl()
|
Method Summary | |
---|---|
void |
addProvidesResource(SSWAPResource resource)
Adds a resource that is provided by this provider to the list. |
(package private) boolean |
belongsToProvidersDomain(java.net.URI uri)
Checks whether the following URI (usually a Resource URI) belongs to this provider's "security domain"; that is, whether the resource is assumed to be provided by this provider just because of its URI and not because it is listed explicitly in the PDG. |
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). |
abstract java.net.URI |
getAboutURI()
Gets the URI pointing to a human-readable description of this provider. |
abstract java.net.URI |
getMetadata()
Gets the URI containing the machine-readable metadata for this provider. |
abstract java.lang.String |
getName()
Gets the name of the provider. |
abstract java.lang.String |
getOneLineDescription()
Gets one line description of the provider. |
PDG |
getPDG()
Gets the PDG that defines this provider |
abstract java.util.List<ResourceImpl> |
getProvidesResourceList()
Empire-generated method that returns a list of implementations for SSWAPResource connected to this PDG by sswap:providesResource predicate. |
java.util.Collection<SSWAPResource> |
getProvidesResources()
Gets the information about all the resources provided by this provider. |
abstract void |
setAboutURI(java.net.URI aboutURI)
Sets the URI pointing to a human-readable description of this provider. |
abstract void |
setMetadata(java.net.URI metadata)
Sets the URI pointing to the machine-readable metadata for this provider. |
abstract void |
setName(java.lang.String name)
Sets the name of the provider. |
abstract void |
setOneLineDescription(java.lang.String oneLineDescription)
Sets one line description of the provider. |
void |
setProvidesResource(java.util.Collection<SSWAPResource> resources)
Sets the information about all the resources provided by this provider. |
abstract void |
setProvidesResourceList(java.util.List<ResourceImpl> providesResourceData)
Empire-generated method for setting a list of implementations of SSWAPResource that will be connected to this PDG by sswap:providesResource predicate. |
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, 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, doClosure, getDocument, getImports, getInputStream, getNsPrefixMap, getReasoningService, getTypeSignature, getURI, isDereferenced, removeImport, removeNsPrefix, serialize, serialize, setNsPrefix |
Methods inherited from interface com.clarkparsia.empire.SupportsRdfId |
---|
getRdfId, setRdfId |
Constructor Detail |
---|
public ProviderImpl()
Method Detail |
---|
public void dereference() throws DataAccessException
NodeImpl
dereference
in interface SSWAPModel
dereference
in class NodeImpl
DataAccessException
- when trying to access the underlying data source while dereferencingpublic abstract java.lang.String getName()
getName
in interface SSWAPProvider
public abstract void setName(java.lang.String name)
setName
in interface SSWAPProvider
name
- the name of the provider (must not be null).public abstract java.lang.String getOneLineDescription()
getOneLineDescription
in interface SSWAPProvider
public abstract void setOneLineDescription(java.lang.String oneLineDescription)
setOneLineDescription
in interface SSWAPProvider
oneLineDescription
- the new one line description of the provider, or null if the current description is to be removed.public abstract java.net.URI getAboutURI()
getAboutURI
in interface SSWAPProvider
public abstract void setAboutURI(java.net.URI aboutURI)
setAboutURI
in interface SSWAPProvider
aboutURI
- URI pointing to a human-readable description of this provider, or null if there is no such description
for the provider.public abstract java.net.URI getMetadata()
getMetadata
in interface SSWAPProvider
public abstract void setMetadata(java.net.URI metadata)
setMetadata
in interface SSWAPProvider
metadata
- URI pointing to a machine-readable metadata for this provider, or null if there is no metadata for
this provider.public void addProvidesResource(SSWAPResource resource)
addProvidesResource
in interface SSWAPProvider
resource
- a SSWAPResource that is provided by this provider. (The object may not be dereferenced, since the only
information stored in a PDG about the provided resource is the resource's URI).public void setProvidesResource(java.util.Collection<SSWAPResource> resources)
setProvidesResource
in interface SSWAPProvider
resources
- a set of SSWAPResource that are provided by this provider. (The objects may not be dereferenced, since
the only information stored in a PDG about the provided resource is the resource's URI).public java.util.Collection<SSWAPResource> getProvidesResources()
getProvidesResources
in interface SSWAPProvider
public abstract java.util.List<ResourceImpl> getProvidesResourceList()
public abstract void setProvidesResourceList(java.util.List<ResourceImpl> providesResourceData)
providesResourceData
- a list of ResourceImpl objectsboolean belongsToProvidersDomain(java.net.URI uri)
uri
- the URI to be checked whether it belongs to the provider's domain
public void validate() throws ValidationException
SSWAPModel
validate
in interface SSWAPModel
validate
in class ModelImpl
ValidationException
- if the data violates SSWAP syntax or requirementspublic PDG getPDG()
SSWAPProvider
getPDG
in interface SSWAPProvider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |