|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TypeManager
Produces type definition.
| Method Summary | |
|---|---|
String |
addType(TypeDefinition type)
Add new type in repository. |
ItemsIterator<TypeDefinition> |
getTypeChildren(String typeId,
boolean includePropertyDefinitions)
Iterator over object types. |
TypeDefinition |
getTypeDefinition(String typeId,
boolean includePropertyDefinition)
Get type definition for type typeId . |
void |
removeType(String typeId)
Remove type definition for type typeId . |
| Method Detail |
|---|
String addType(TypeDefinition type)
throws ConstraintException,
StorageException
type - the type definition
StorageException - if type can't be added cause to storage internal
problem
ConstraintException - if any of the following conditions are met:
TypeDefinition.getId()TypeDefinition.getBaseId()TypeDefinition.getParentId()NotSupportedException - if storage does not support adding new types
TypeDefinition getTypeDefinition(String typeId,
boolean includePropertyDefinition)
throws TypeNotFoundException
typeId .
typeId - type IdincludePropertyDefinition - if true property definition
should be included
TypeNotFoundException - if type typeId does not exist
ItemsIterator<TypeDefinition> getTypeChildren(String typeId,
boolean includePropertyDefinitions)
throws TypeNotFoundException
typeId - the type id, if not null then return only
specified Object Type and its direct descendant. If
null then return base typesincludePropertyDefinitions - true if property definition
should be included false otherwise
TypeNotFoundException - if type typeId does not exist
void removeType(String typeId)
throws ConstraintException,
TypeNotFoundException,
StorageException
typeId .
typeId - type Id
TypeNotFoundException - if type typeId not found in
repository
StorageException - if type can't be added cause to storage internal
problem
ConstraintException - if removing type violates a storage
constraint. For example, if storage already contains object of
this type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||