|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xcmis.spi.basic.BasicTypeManager
public abstract class BasicTypeManager
Basic Type Manager
| Field Summary | |
|---|---|
protected Map<String,Set<String>> |
typeChildren
|
protected Map<String,TypeDefinition> |
types
|
| Constructor Summary | |
|---|---|
BasicTypeManager()
|
|
| 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 . |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Map<String,TypeDefinition> types
protected final Map<String,Set<String>> typeChildren
| Constructor Detail |
|---|
public BasicTypeManager()
| Method Detail |
|---|
public String addType(TypeDefinition type)
throws StorageException
addType in interface TypeManagertype - the type definition
StorageException - if type can't be added cause to storage internal
problem
public ItemsIterator<TypeDefinition> getTypeChildren(String typeId,
boolean includePropertyDefinitions)
throws TypeNotFoundException
getTypeChildren in interface TypeManagertypeId - 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
public TypeDefinition getTypeDefinition(String typeId,
boolean includePropertyDefinition)
throws TypeNotFoundException
typeId .
getTypeDefinition in interface TypeManagertypeId - type IdincludePropertyDefinition - if true property definition
should be included
TypeNotFoundException - if type typeId does not exist
public void removeType(String typeId)
throws TypeNotFoundException,
ConstraintException,
StorageException
typeId .
removeType in interface TypeManagertypeId - type Id
TypeNotFoundException - if type typeId not found in
repository
ConstraintException - if removing type violates a storage
constraint. For example, if storage already contains object of
this type
StorageException - if type can't be added cause to storage internal
problem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||