public abstract class GenericItemObject extends Object implements ItemI
Modifier and Type | Field and Description |
---|---|
protected Hashtable |
item_counts |
protected Hashtable<String,Object> |
props |
Constructor and Description |
---|
GenericItemObject() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
Boolean |
getBooleanProperty(String name)
Can take the sql name of a local field, or the XML dot syntax name for child fields.
|
boolean |
getBooleanProperty(String name,
boolean default_value)
Can take the sql name of a local field, or the XML dot syntax name for child fields.
|
boolean |
getBooleanProperty(String name,
String default_value)
Can take the sql name of a local field, or the XML dot syntax name for child fields.
|
ArrayList<XFTItem> |
getChildItems()
Gets all XFTItem child items.
|
Date |
getDateProperty(String name) |
Double |
getDoubleProperty(String xmlPath) |
Object |
getField(String key)
Get field from hashtable of properties (null if not found)
|
protected Object |
getField(String key,
boolean allowMultipleValues)
Get field from hashtable of properties (null if not found)
|
Float |
getFloatProperty(String xmlPath) |
Integer |
getIntegerProperty(String xmlPath) |
abstract Object |
getProperty(String id)
Can take the sql name of a local field, or the XML dot syntax name for child fields.
|
int |
getPropertyCount()
returns number of populated properties
|
Hashtable |
getProps()
properties hashtable
|
SecurityValues |
getSecurityValues() |
String |
getStringProperty(String name)
Can take the sql name of a local field, or the XML dot syntax name for child fields.
|
abstract String |
getXSIType()
Gets the data type name of this item.
|
boolean |
hasProperties() |
protected void |
setField(String key,
Object value)
Set field in hashtable of properties (Without any validation)
|
ArrayList<Throwable> |
setProperties(Map<String,? extends Object> hash,
boolean throwException)
If throwException=true, then encountered errors will be thrown when they are encountered and additional properties
will not be loaded.
|
abstract void |
setProperty(String xmlPath,
Object value)
Can take the sql name of a local field, or the XML dot syntax name for child fields.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
activate, canActivate, canCreate, canDelete, canEdit, canRead, extend, getChildItemCollection, getChildItems, getChildItems, getChildItems, getCurrentDBVersion, getCurrentDBVersion, getDBName, getItem, getParent, getPossibleValues, getUser, hasProperty, isActive, lock, needsActivation, output, output, quarantine, save, save, setParent, toHTML, toJoinedXML, toXML_BOS, toXML, toXML, toXML, toXML, toXML, validate
readExternal, writeExternal
protected final Hashtable item_counts
public Hashtable getProps()
public int getPropertyCount()
public boolean hasProperties()
public void clear()
public ArrayList<XFTItem> getChildItems() throws XFTInitException, ElementNotFoundException, FieldNotFoundException
ItemI
getChildItems
in interface ItemI
XFTInitException
ElementNotFoundException
FieldNotFoundException
public Object getField(String key)
key
- protected Object getField(String key, boolean allowMultipleValues)
key
- protected void setField(String key, Object value)
key
- value
- public boolean getBooleanProperty(String name, String default_value) throws XFTInitException, ElementNotFoundException, FieldNotFoundException
ItemI
getBooleanProperty
in interface ItemI
XFTInitException
ElementNotFoundException
FieldNotFoundException
public boolean getBooleanProperty(String name, boolean default_value) throws XFTInitException, ElementNotFoundException, FieldNotFoundException
ItemI
getBooleanProperty
in interface ItemI
XFTInitException
ElementNotFoundException
FieldNotFoundException
public Boolean getBooleanProperty(String name) throws XFTInitException, ElementNotFoundException, FieldNotFoundException
ItemI
getBooleanProperty
in interface ItemI
XFTInitException
ElementNotFoundException
FieldNotFoundException
public String getStringProperty(String name) throws XFTInitException, ElementNotFoundException, FieldNotFoundException
ItemI
getStringProperty
in interface ItemI
XFTInitException
ElementNotFoundException
FieldNotFoundException
public ArrayList<Throwable> setProperties(Map<String,? extends Object> hash, boolean throwException) throws ElementNotFoundException, FieldNotFoundException, InvalidValueException
hash
- throwException
- ElementNotFoundException
FieldNotFoundException
InvalidValueException
public Date getDateProperty(String name) throws XFTInitException, ElementNotFoundException, FieldNotFoundException, ParseException
getDateProperty
in interface ItemI
XFTInitException
ElementNotFoundException
FieldNotFoundException
ParseException
public abstract Object getProperty(String id) throws XFTInitException, ElementNotFoundException, FieldNotFoundException
ItemI
getProperty
in interface ItemI
XFTInitException
ElementNotFoundException
FieldNotFoundException
public abstract void setProperty(String xmlPath, Object value) throws XFTInitException, ElementNotFoundException, FieldNotFoundException, InvalidValueException
ItemI
setProperty
in interface ItemI
XFTInitException
ElementNotFoundException
FieldNotFoundException
InvalidValueException
public abstract String getXSIType()
ItemI
getXSIType
in interface ItemI
public SecurityValues getSecurityValues()
Copyright © 2015 Neuroinformatics Research Group. All rights reserved.