Java Doc for MapType.java in  » Web-Crawler » heritrix » org » archive » crawler » settings » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Crawler » heritrix » org.archive.crawler.settings 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.archive.crawler.settings.Type
   org.archive.crawler.settings.ComplexType
      org.archive.crawler.settings.MapType

MapType
public class MapType extends ComplexType (Code)
This class represents a container of settings. This class is usually used to make it possible to have a dynamic number of ModuleTypes like for instance a list of filters of different type. When this type is overridden on a per domain basis, the following restrictions apply:
  • Added elements is placed after the elements in the map it overrides.
  • You can not remove elements from the map it overrides. If it is necessary to be able to remove an element, this has to be done by adding some disable feature to the modules referenced by the map. An example of this is the enabled attribute on the org.archive.crawler.framework.Filter class.
  • All elements defined in maps that this map overrides might have their settings changed, but the order can not be changed.

author:
   John Erik Halse



Constructor Summary
public  MapType(String name, String description)
     Construct a new MapType object.
public  MapType(String name, String description, Class type)
     Construct a new MapType object.

Method Summary
public  voidaddConstraint(Constraint constraint)
    
public  TypeaddElement(CrawlerSettings settings, Type element)
     Add a new element to this map.
Parameters:
  settings - the settings object for this method to have effect.
Parameters:
  element - the element to be added.
 FailedCheckcheckValue(CrawlerSettings settings, String attributeName, Type definition, Object value)
    
public  ListgetConstraints()
    
public  ClassgetContentType()
     Get the content type allowed for this map.
 TypegetDefinition(String attributeName)
     Get the content type definition for attributes of this map.
Parameters:
  attributeName - since all attributes of a map are of the same type,this value is not used.
public  booleanisEmpty(Object context)
     Returns true if this map is empty.
Parameters:
  context - the settings object for which this set of elementsare valid.
public  booleanmoveElementDown(CrawlerSettings settings, String name)
     Move an attribute down one place in the list.
Parameters:
  settings - the settings object for which this method has effect.
Parameters:
  name - name of attribute to move.
public  booleanmoveElementUp(CrawlerSettings settings, String name)
     Move an attribute up one place in the list.
Parameters:
  settings - the settings object for which this method has effect.
Parameters:
  name - name of attribute to move.
public  ObjectremoveElement(CrawlerSettings settings, String name)
     Remove an attribute from the map.
Parameters:
  settings - the settings object for which this method has effect.
Parameters:
  name - name of the attribute to remove.
public  intsize(Object context)
     Get the number of elements in this map.
Parameters:
  context - the settings object for which this set of elementsare valid.


Constructor Detail
MapType
public MapType(String name, String description)(Code)
Construct a new MapType object.
Parameters:
  name - the name of this element.
Parameters:
  description - the description of the attribute.



MapType
public MapType(String name, String description, Class type)(Code)
Construct a new MapType object.
Parameters:
  name - the name of this element.
Parameters:
  description - the description of the attribute.
Parameters:
  type - the type allowed for this map




Method Detail
addConstraint
public void addConstraint(Constraint constraint)(Code)



addElement
public Type addElement(CrawlerSettings settings, Type element) throws InvalidAttributeValueException(Code)
Add a new element to this map.
Parameters:
  settings - the settings object for this method to have effect.
Parameters:
  element - the element to be added. Element added.
throws:
  InvalidAttributeValueException -



checkValue
FailedCheck checkValue(CrawlerSettings settings, String attributeName, Type definition, Object value)(Code)



getConstraints
public List getConstraints()(Code)



getContentType
public Class getContentType()(Code)
Get the content type allowed for this map. the content type allowed for this map.



getDefinition
Type getDefinition(String attributeName)(Code)
Get the content type definition for attributes of this map.
Parameters:
  attributeName - since all attributes of a map are of the same type,this value is not used. the content type definition for attributes of this map.



isEmpty
public boolean isEmpty(Object context)(Code)
Returns true if this map is empty.
Parameters:
  context - the settings object for which this set of elementsare valid. true if this map is empty.



moveElementDown
public boolean moveElementDown(CrawlerSettings settings, String name) throws AttributeNotFoundException(Code)
Move an attribute down one place in the list.
Parameters:
  settings - the settings object for which this method has effect.
Parameters:
  name - name of attribute to move. true if attribute was moved, false if attribute was alreadyat bottom.
throws:
  AttributeNotFoundException - is thrown if there is no attributewith the submitted name.



moveElementUp
public boolean moveElementUp(CrawlerSettings settings, String name) throws AttributeNotFoundException(Code)
Move an attribute up one place in the list.
Parameters:
  settings - the settings object for which this method has effect.
Parameters:
  name - name of attribute to move. true if attribute was moved, false if attribute was alreadyat the top.
throws:
  AttributeNotFoundException - is thrown if there is no attributewith the submitted name.



removeElement
public Object removeElement(CrawlerSettings settings, String name) throws AttributeNotFoundException(Code)
Remove an attribute from the map.
Parameters:
  settings - the settings object for which this method has effect.
Parameters:
  name - name of the attribute to remove. the element that was removed.
throws:
  AttributeNotFoundException - is thrown if there is no attributewith the submitted name.



size
public int size(Object context)(Code)
Get the number of elements in this map.
Parameters:
  context - the settings object for which this set of elementsare valid. the number of elements in this map.



Fields inherited from org.archive.crawler.settings.ComplexType
final protected List<Type> definition(Code)(Java Doc)
final protected Map<String, Type> definitionMap(Code)(Java Doc)

Methods inherited from org.archive.crawler.settings.ComplexType
public Type addElement(CrawlerSettings settings, Type type) throws InvalidAttributeValueException(Code)(Java Doc)
public Type addElementToDefinition(Type type)(Code)(Java Doc)
public FailedCheck checkValue(CrawlerSettings settings, String attributeName, Object value)(Code)(Java Doc)
FailedCheck checkValue(CrawlerSettings settings, String attributeName, Type definition, Object value)(Code)(Java Doc)
public void earlyInitialize(CrawlerSettings settings)(Code)(Java Doc)
public String getAbsoluteName()(Code)(Java Doc)
public Object getAttribute(String name) throws AttributeNotFoundException, MBeanException, ReflectionException(Code)(Java Doc)
public Object getAttribute(String name, CrawlURI uri) throws AttributeNotFoundException(Code)(Java Doc)
public Object getAttribute(Object context, String name) throws AttributeNotFoundException(Code)(Java Doc)
public MBeanAttributeInfo getAttributeInfo(CrawlerSettings settings, String name)(Code)(Java Doc)
public MBeanAttributeInfo getAttributeInfo(String name)(Code)(Java Doc)
public MBeanAttributeInfoIterator getAttributeInfoIterator(Object context)(Code)(Java Doc)
public AttributeList getAttributes(String[] name)(Code)(Java Doc)
protected DataContainer getDataContainerRecursive(Context context)(Code)(Java Doc)
protected DataContainer getDataContainerRecursive(Context context, String key) throws AttributeNotFoundException(Code)(Java Doc)
public Object getDefaultValue()(Code)(Java Doc)
Type getDefinition(String attributeName)(Code)(Java Doc)
public String getDescription()(Code)(Java Doc)
public Type getElementFromDefinition(String name)(Code)(Java Doc)
public Object[] getLegalValues()(Code)(Java Doc)
public Object getLocalAttribute(CrawlerSettings settings, String name) throws AttributeNotFoundException(Code)(Java Doc)
public MBeanInfo getMBeanInfo()(Code)(Java Doc)
public MBeanInfo getMBeanInfo(Object context)(Code)(Java Doc)
public ComplexType getParent()(Code)(Java Doc)
protected String[] getPreservedFields()(Code)(Java Doc)
Context getSettingsFromObject(Object o, String attributeName)(Code)(Java Doc)
Context getSettingsFromObject(Object o)(Code)(Java Doc)
public SettingsHandler getSettingsHandler()(Code)(Java Doc)
public Object getUncheckedAttribute(Object context, String name)(Code)(Java Doc)
public Object getValue()(Code)(Java Doc)
public CrawlerSettings globalSettings()(Code)(Java Doc)
public Object invoke(String arg0, Object[] arg1, String[] arg2) throws MBeanException, ReflectionException(Code)(Java Doc)
public boolean isInitialized()(Code)(Java Doc)
public boolean isOverridden(CrawlerSettings settings, String name) throws AttributeNotFoundException(Code)(Java Doc)
public Iterator iterator(Object context)(Code)(Java Doc)
protected Type removeElementFromDefinition(String name)(Code)(Java Doc)
protected void setAsOrder(SettingsHandler settingsHandler) throws InvalidAttributeValueException(Code)(Java Doc)
final public synchronized void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException(Code)(Java Doc)
final public synchronized void setAttribute(CrawlerSettings settings, Attribute attribute) throws InvalidAttributeValueException, AttributeNotFoundException(Code)(Java Doc)
public AttributeList setAttributes(AttributeList attributes)(Code)(Java Doc)
public void setDescription(String string)(Code)(Java Doc)
protected void setPreservedFields(String[] preservedFields)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public Object unsetAttribute(CrawlerSettings settings, String name) throws AttributeNotFoundException(Code)(Java Doc)

Methods inherited from org.archive.crawler.settings.Type
public void addConstraint(Constraint constraint)(Code)(Java Doc)
public boolean equals(Object o)(Code)(Java Doc)
public List getConstraints()(Code)(Java Doc)
abstract Object getDefaultValue()(Code)(Java Doc)
abstract String getDescription()(Code)(Java Doc)
public Class getLegalValueType()(Code)(Java Doc)
abstract Object[] getLegalValues()(Code)(Java Doc)
public boolean isExpertSetting()(Code)(Java Doc)
public boolean isOverrideable()(Code)(Java Doc)
public boolean isTransient()(Code)(Java Doc)
public void setExpertSetting(boolean isExpertSetting)(Code)(Java Doc)
public void setLegalValueType(Class legalValueType)(Code)(Java Doc)
public void setOverrideable(boolean b)(Code)(Java Doc)
public void setTransient(boolean b)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.