public class BuiltinTypeStore extends Object implements ITypeStore
Constructor and Description |
---|
BuiltinTypeStore() |
Modifier and Type | Method and Description |
---|---|
void |
delete(ITypeDescriptor object)
Remove an object from storage.
|
Iterator<ITypeDescriptor> |
find(Map<String,Object> criteria)
Search for objects that meet the specified criteria.
|
ITypeDescriptor |
getTypeDescriptor(String type)
Retrieve the type descriptor of a particular name
|
ITypeLocator |
getTypeLocator() |
List<ITypeDescriptor> |
getTypes(String namespace)
Retrieve all types in a namespace.
|
ITypeDescriptor |
load(String id)
Load an object by its id.
|
String |
save(ITypeDescriptor object)
Store an object.
|
void |
setTypeLocator(ITypeLocator locator)
Set the type locator that will be used by type descriptors to resolve super
types.
|
public ITypeLocator getTypeLocator()
public void setTypeLocator(ITypeLocator locator)
locator
- public ITypeDescriptor getTypeDescriptor(String type)
ITypeStore
getTypeDescriptor
in interface ITypeStore
type
- the name of the typepublic List<ITypeDescriptor> getTypes(String namespace)
ITypeStore
getTypes
in interface ITypeStore
namespace
- the prefix for the namespacepublic void delete(ITypeDescriptor object)
IStore
delete
in interface IStore<ITypeDescriptor>
public Iterator<ITypeDescriptor> find(Map<String,Object> criteria) throws StoreException
IStore
find
in interface IStore<ITypeDescriptor>
StoreException
public ITypeDescriptor load(String id) throws StoreException
IStore
load
in interface IStore<ITypeDescriptor>
StoreException
public String save(ITypeDescriptor object) throws StoreException
IStore
save
in interface IStore<ITypeDescriptor>
StoreException
Copyright © 2007–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.