Package org.hippoecm.frontend.types
Class BuiltinTypeStore
java.lang.Object
org.hippoecm.frontend.types.BuiltinTypeStore
- All Implemented Interfaces:
Serializable
,org.apache.wicket.util.io.IClusterable
,IStore<ITypeDescriptor>
,ITypeStore
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delete
(ITypeDescriptor object) Remove an object from storage.Search for objects that meet the specified criteria.getTypeDescriptor
(String type) Retrieve the type descriptor of a particular nameRetrieve all types in a namespace.Load an object by its id.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.
-
Constructor Details
-
BuiltinTypeStore
public BuiltinTypeStore()
-
-
Method Details
-
getTypeLocator
-
setTypeLocator
Set the type locator that will be used by type descriptors to resolve super types.- Parameters:
locator
-
-
getTypeDescriptor
Description copied from interface:ITypeStore
Retrieve the type descriptor of a particular name- Specified by:
getTypeDescriptor
in interfaceITypeStore
- Parameters:
type
- the name of the type- Returns:
- the type descriptor
-
getTypes
Description copied from interface:ITypeStore
Retrieve all types in a namespace. The namespace is identified by a prefix.- Specified by:
getTypes
in interfaceITypeStore
- Parameters:
namespace
- the prefix for the namespace- Returns:
- the list of type descriptors in the specified namespace
-
delete
Description copied from interface:IStore
Remove an object from storage.- Specified by:
delete
in interfaceIStore<ITypeDescriptor>
-
find
Description copied from interface:IStore
Search for objects that meet the specified criteria.- Specified by:
find
in interfaceIStore<ITypeDescriptor>
- Returns:
- iterator over objects that meet the criteria
- Throws:
StoreException
-
load
Description copied from interface:IStore
Load an object by its id. A StoreException is thrown if the object cannot be found.- Specified by:
load
in interfaceIStore<ITypeDescriptor>
- Returns:
- object with the specified id
- Throws:
StoreException
-
save
Description copied from interface:IStore
Store an object. The object need not be created by the store, it only needs to conform to the interface T. An id is generated for the object when one did not exist yet, otherwise the existing id is returned.- Specified by:
save
in interfaceIStore<ITypeDescriptor>
- Returns:
- id of the object
- Throws:
StoreException
-