org.openanzo.model.proxy
Class NamedGraphProxy

java.lang.Object
  extended by org.openanzo.model.proxy.ProxyGraph
      extended by org.openanzo.model.proxy.NamedGraphProxy
All Implemented Interfaces:
INamedGraph, IProxyGraph
Direct Known Subclasses:
MetadataProxyGraph, ReplicaGraph

public class NamedGraphProxy
extends ProxyGraph

NamedGraphProxy is a ProxyGraph that named by a URI. It is either a regular NamedGraph, or a MetadataGraph for a NamedGraph.

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Constructor Summary
NamedGraphProxy(INamedGraph parentGraph, boolean isMetaDataGraph)
          Create new NamedGraphProxy which proxies a parentgraph
NamedGraphProxy(org.openrdf.model.URI namedGraphUri, INamedGraph parentGraph, boolean isMetaDataGraph)
          Create new NamedGraphProxy which proxies a parentgraph with an INamedGraph with given URI
 
Method Summary
 org.openrdf.model.URI getNamedGraphUri()
          Get NamedGraph's URI
 INamedGraph getParentGraph()
          Get the graph to which this proxy is proxing information.
 ITransactionManager getTransactionManager()
          Return ITransactionManager for this graph
 boolean isClosed()
          Return if graph is closed
 boolean isMetadataGraph()
          Determine if this is a metadata graph
 void setNamedGraphUri(org.openrdf.model.URI namedGraphUri)
          Set NamedGraph's URI
 java.lang.String toString()
           
 
Methods inherited from class org.openanzo.model.proxy.ProxyGraph
add, add, add, clear, close, contains, contains, delete, delete, delete, find, getEventManager, getStatements, isEmpty, size
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NamedGraphProxy

public NamedGraphProxy(org.openrdf.model.URI namedGraphUri,
                       INamedGraph parentGraph,
                       boolean isMetaDataGraph)
Create new NamedGraphProxy which proxies a parentgraph with an INamedGraph with given URI

Parameters:
namedGraphUri - URI for proxy graph
parentGraph - being proxied
isMetaDataGraph - whether this is a metadatagraph or not

NamedGraphProxy

public NamedGraphProxy(INamedGraph parentGraph,
                       boolean isMetaDataGraph)
Create new NamedGraphProxy which proxies a parentgraph

Parameters:
parentGraph - being proxied
isMetaDataGraph - whether this is a metadatagraph or not
Method Detail

getParentGraph

public INamedGraph getParentGraph()
Description copied from interface: IProxyGraph
Get the graph to which this proxy is proxing information.

Specified by:
getParentGraph in interface IProxyGraph
Specified by:
getParentGraph in class ProxyGraph
Returns:
parent graph to which this proxy is proxing information

getNamedGraphUri

public org.openrdf.model.URI getNamedGraphUri()
Description copied from interface: INamedGraph
Get NamedGraph's URI

Returns:
URI for this grpah

setNamedGraphUri

public void setNamedGraphUri(org.openrdf.model.URI namedGraphUri)
Description copied from interface: INamedGraph
Set NamedGraph's URI


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isMetadataGraph

public boolean isMetadataGraph()
Determine if this is a metadata graph

Returns:
true if this a metadata graph

isClosed

public boolean isClosed()
Description copied from interface: INamedGraph
Return if graph is closed

Returns:
true if graph is closed

getTransactionManager

public ITransactionManager getTransactionManager()
Description copied from interface: INamedGraph
Return ITransactionManager for this graph

Specified by:
getTransactionManager in interface INamedGraph
Overrides:
getTransactionManager in class ProxyGraph
Returns:
ITransactionManager for this graph


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.