com.ontotext.ordi.tripleset
Class DataSourceImpl
java.lang.Object
com.ontotext.ordi.tripleset.WarningAwareImpl
com.ontotext.ordi.tripleset.DataSourceImpl
- All Implemented Interfaces:
- DataSource, WarningAware, Wrapper
- Direct Known Subclasses:
- TSourceImpl, WsmoSourceImpl
public abstract class DataSourceImpl
- extends WarningAwareImpl
- implements DataSource
Method Summary |
Map<Object,Object> |
getMetaData()
Retrieves the meta-data properties used to create this DataSource . |
boolean |
isWrapperFor(Class<?> iface)
Returns true if this either implements the interface argument or is
directly or indirectly a wrapper for an object that does. |
|
unwrap(Class<T> iface)
Returns an object that implements the given interface to allow access to
non-standard methods, or standard methods not exposed by the proxy. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
properties
protected final Map<Object,Object> properties
DataSourceImpl
public DataSourceImpl(Map<Object,Object> properties)
getMetaData
public Map<Object,Object> getMetaData()
- Description copied from interface:
DataSource
- Retrieves the meta-data properties used to create this
DataSource
.
- Specified by:
getMetaData
in interface DataSource
- Returns:
- collection of key/values
isWrapperFor
public boolean isWrapperFor(Class<?> iface)
throws ORDIException
- Description copied from interface:
Wrapper
- Returns true if this either implements the interface argument or is
directly or indirectly a wrapper for an object that does.
- Specified by:
isWrapperFor
in interface Wrapper
- Parameters:
iface
- A Class defining an interface that the result must implement.
- Returns:
- an object that implements the interface. May be a proxy for the
actual implementing object.
- Throws:
ORDIException
unwrap
public <T> T unwrap(Class<T> iface)
throws ORDIException
- Description copied from interface:
Wrapper
- Returns an object that implements the given interface to allow access to
non-standard methods, or standard methods not exposed by the proxy.
- Specified by:
unwrap
in interface Wrapper
- Parameters:
iface
- a Class defining an interface.
- Returns:
- true if this implements the interface or directly or indirectly
wraps an object that does.
- Throws:
ORDIException
Copyright © 2008. All Rights Reserved.