|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap<K,V> java.util.HashMap<java.lang.String,java.lang.Object> org.archive.crawler.settings.DataContainer
public class DataContainer
This class holds the data for a ComplexType for a settings object.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Constructor Summary | |
---|---|
DataContainer(CrawlerSettings settings,
ComplexType module)
Create a data container for a module. |
Method Summary | |
---|---|
void |
addElementType(Type type)
Appends the specified element to the end of this data container. |
void |
addElementType(Type type,
int index)
Add a new element to the data container. |
protected boolean |
copyAttribute(java.lang.String name,
DataContainer destination)
|
protected void |
copyAttributeInfo(java.lang.String name,
DataContainer destination)
|
java.lang.Object |
get(java.lang.Object key)
|
java.lang.Object |
get(java.lang.String key)
|
protected javax.management.MBeanAttributeInfo |
getAttributeInfo(java.lang.String name)
|
protected ComplexType |
getComplexType()
Get the ComplexType for which this DataContainer keeps data. |
protected java.util.List<javax.management.MBeanAttributeInfo> |
getLocalAttributeInfoList()
|
javax.management.MBeanInfo |
getMBeanInfo()
|
protected CrawlerSettings |
getSettings()
Get the settings object for which this DataContainers data are valid. |
protected boolean |
hasAttributes()
|
protected boolean |
moveElementDown(java.lang.String key)
Move an attribute down one place in the list. |
protected boolean |
moveElementUp(java.lang.String key)
Move an attribute up one place in the list. |
protected java.lang.Object |
put(java.lang.String key,
javax.management.MBeanAttributeInfo info,
java.lang.Object value)
|
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
|
protected java.lang.Object |
removeElement(java.lang.String key)
Remove an attribute from the DataContainer. |
int |
size()
|
Methods inherited from class java.util.HashMap |
---|
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, putAll, remove, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public DataContainer(CrawlerSettings settings, ComplexType module)
settings
- Settings to use.module
- the module to create the data container for.Method Detail |
---|
public void addElementType(Type type, int index) throws javax.management.InvalidAttributeValueException
type
- the element to add.index
- index at which the specified element is to be inserted.
javax.management.InvalidAttributeValueException
public void addElementType(Type type) throws javax.management.InvalidAttributeValueException
type
- the element to add.
javax.management.InvalidAttributeValueException
public javax.management.MBeanInfo getMBeanInfo()
protected java.util.List<javax.management.MBeanAttributeInfo> getLocalAttributeInfoList()
protected boolean hasAttributes()
public int size()
size
in interface java.util.Map<java.lang.String,java.lang.Object>
size
in class java.util.HashMap<java.lang.String,java.lang.Object>
protected javax.management.MBeanAttributeInfo getAttributeInfo(java.lang.String name)
protected void copyAttributeInfo(java.lang.String name, DataContainer destination)
protected boolean copyAttribute(java.lang.String name, DataContainer destination) throws javax.management.InvalidAttributeValueException, javax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.AttributeNotFoundException
public java.lang.Object put(java.lang.String key, java.lang.Object value)
put
in interface java.util.Map<java.lang.String,java.lang.Object>
put
in class java.util.HashMap<java.lang.String,java.lang.Object>
public java.lang.Object get(java.lang.Object key)
get
in interface java.util.Map<java.lang.String,java.lang.Object>
get
in class java.util.HashMap<java.lang.String,java.lang.Object>
protected java.lang.Object put(java.lang.String key, javax.management.MBeanAttributeInfo info, java.lang.Object value) throws javax.management.InvalidAttributeValueException, javax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.AttributeNotFoundException
public java.lang.Object get(java.lang.String key) throws javax.management.AttributeNotFoundException
javax.management.AttributeNotFoundException
protected boolean moveElementUp(java.lang.String key) throws javax.management.AttributeNotFoundException
key
- name of attribute to move.
javax.management.AttributeNotFoundException
- is thrown if there is no attribute
with the submitted key.protected boolean moveElementDown(java.lang.String key) throws javax.management.AttributeNotFoundException
key
- name of attribute to move.
javax.management.AttributeNotFoundException
- is thrown if there is no attribute
with the submitted key.protected java.lang.Object removeElement(java.lang.String key) throws javax.management.AttributeNotFoundException
key
- name of the attribute to remove.
javax.management.AttributeNotFoundException
- is thrown if there is no attribute
with the submitted key.protected ComplexType getComplexType()
protected CrawlerSettings getSettings()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |