|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.intermine.xml.full.ItemFactory
public class ItemFactory
ItemFactory class
| Field Summary | |
|---|---|
static ItemFactory |
NULL_MODEL_ITEM_FACTORY
An ItemFactory constructed with no Model, so the Items it creates do no type checking. |
| Constructor Summary | |
|---|---|
ItemFactory()
Create an ItemFactory that isn't specific to a particular model. |
|
ItemFactory(Model model)
Create an ItemFactory specific to a particular model. |
|
ItemFactory(Model model,
java.lang.String identifierPrefix)
Create an ItemFactory specific to a particular model. |
|
| Method Summary | |
|---|---|
protected static java.lang.String |
getImplements(java.lang.Object obj,
Model model)
Get all interfaces that an object implements. |
Item |
makeItem()
Make an empty Item with a unique identifier. |
Item |
makeItem(FastPathObject obj)
Convert an Object to Item format. |
Item |
makeItem(java.lang.String identifier)
Make an empty Item with the given identifier. |
Item |
makeItem(java.lang.String identifier,
java.lang.String className,
java.lang.String implementations)
Construct an item from an identifier, a class name and the names of implemented classes |
Item |
makeItemForClass(java.lang.String className)
Construct an item from a class name. |
Item |
makeItemImpl(FastPathObject obj,
java.util.Set<java.lang.String> includeFields)
Convert an Object to Item format, writing the fields provided in includeFields. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ItemFactory NULL_MODEL_ITEM_FACTORY
| Constructor Detail |
|---|
public ItemFactory()
public ItemFactory(Model model)
model - the Model to use when checking
public ItemFactory(Model model,
java.lang.String identifierPrefix)
model - the Model to use when checking - can be null to indicate that no checking should
be doneidentifierPrefix - the prefix to add to automatically created Item identifiers| Method Detail |
|---|
public Item makeItem()
public Item makeItem(java.lang.String identifier)
identifier - the identifier of the new Item
public Item makeItem(java.lang.String identifier,
java.lang.String className,
java.lang.String implementations)
identifier - item identifier - if null create a unique identifier prefixed with the
prefix argument to the constructorclassName - name of described classimplementations - names of implemented classes
public Item makeItemForClass(java.lang.String className)
className - name of described class
public Item makeItem(FastPathObject obj)
obj - object to convert
public Item makeItemImpl(FastPathObject obj,
java.util.Set<java.lang.String> includeFields)
obj - object to convertincludeFields - the field names to write
protected static java.lang.String getImplements(java.lang.Object obj,
Model model)
obj - the objectmodel - the parent model
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||