Java Doc for RuntimeConfigurable.java in  » Build » ANT » org » apache » tools » ant » 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 » Build » ANT » org.apache.tools.ant 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.tools.ant.RuntimeConfigurable

RuntimeConfigurable
public class RuntimeConfigurable implements Serializable(Code)
Wrapper class that holds the attributes of an element, its children, and any text within it. It then takes care of configuring that element at runtime.



Constructor Summary
public  RuntimeConfigurable(Object proxy, String elementTag)
     Sole constructor creating a wrapper for the specified object.
Parameters:
  proxy - The element to configure.

Method Summary
public synchronized  voidaddChild(RuntimeConfigurable child)
     Adds a child element to the wrapped element.
public synchronized  voidaddText(String data)
     Adds characters from #PCDATA areas to the wrapped element.
public synchronized  voidaddText(char[] buf, int start, int count)
     Adds characters from #PCDATA areas to the wrapped element.
public  voidapplyPreSet(RuntimeConfigurable r)
     Apply presets, attributes and text are set if not currently set.
public synchronized  HashtablegetAttributeMap()
     Return the attribute map.
public synchronized  AttributeListgetAttributes()
     Returns the list of attributes for the wrapped element. RuntimeConfigurable.getAttributeMap An AttributeList representing the attributes defined in theXML for this element.
synchronized  RuntimeConfigurablegetChild(int index)
     Returns the child wrapper at the specified position within the list.
Parameters:
  index - The index of the child to return.
public synchronized  EnumerationgetChildren()
     Returns an enumeration of all child wrappers.
public synchronized  StringgetElementTag()
     Returns the tag name of the wrapped element. The tag name of the wrapped element.
public synchronized  StringgetId()
     Returns the id for this element.
public synchronized  StringgetPolyType()
     Get the polymorphic type for this element.
public synchronized  ObjectgetProxy()
     Get the object for which this RuntimeConfigurable holds the configuration information.
public synchronized  StringBuffergetText()
     Get the text content of this element.
public  voidmaybeConfigure(Project p)
     Configures the wrapped element and all its children. The attributes and text for the wrapped element are configured, and then each child is configured and added.
public synchronized  voidmaybeConfigure(Project p, boolean configureChildren)
     Configures the wrapped element.
public  voidreconfigure(Project p)
     Reconfigure the element, even if it has already been configured.
public synchronized  voidremoveAttribute(String name)
     Delete an attribute.
public synchronized  voidsetAttribute(String name, String value)
     Set an attribute to a given value.
public synchronized  voidsetAttributes(AttributeList attributes)
     Sets the attributes for the wrapped element.
Parameters:
  attributes - List of attributes defined in the XML for thiselement.
synchronized  voidsetCreator(IntrospectionHelper.Creator creator)
     Sets the creator of the element to be configured used to store the element in the parent.
public synchronized  voidsetElementTag(String elementTag)
     Set the element tag.
public synchronized  voidsetPolyType(String polyType)
     Set the polymorphic type for this element.
public synchronized  voidsetProxy(Object proxy)
     Sets the element to configure.
Parameters:
  proxy - The element to configure.


Constructor Detail
RuntimeConfigurable
public RuntimeConfigurable(Object proxy, String elementTag)(Code)
Sole constructor creating a wrapper for the specified object.
Parameters:
  proxy - The element to configure. Must not be null.
Parameters:
  elementTag - The tag name generating this element.




Method Detail
addChild
public synchronized void addChild(RuntimeConfigurable child)(Code)
Adds a child element to the wrapped element.
Parameters:
  child - The child element wrapper to add to this one.Must not be null.



addText
public synchronized void addText(String data)(Code)
Adds characters from #PCDATA areas to the wrapped element.
Parameters:
  data - Text to add to the wrapped element.Should not be null.



addText
public synchronized void addText(char[] buf, int start, int count)(Code)
Adds characters from #PCDATA areas to the wrapped element.
Parameters:
  buf - A character array of the text within the element.Must not be null.
Parameters:
  start - The start element in the array.
Parameters:
  count - The number of characters to read from the array.



applyPreSet
public void applyPreSet(RuntimeConfigurable r)(Code)
Apply presets, attributes and text are set if not currently set. Nested elements are prepended.
Parameters:
  r - a RuntimeConfigurable value.



getAttributeMap
public synchronized Hashtable getAttributeMap()(Code)
Return the attribute map. Attribute name to attribute value map.
since:
   Ant 1.6



getAttributes
public synchronized AttributeList getAttributes()(Code)
Returns the list of attributes for the wrapped element. RuntimeConfigurable.getAttributeMap An AttributeList representing the attributes defined in theXML for this element. May be null.



getChild
synchronized RuntimeConfigurable getChild(int index)(Code)
Returns the child wrapper at the specified position within the list.
Parameters:
  index - The index of the child to return. The child wrapper at position index within thelist.



getChildren
public synchronized Enumeration getChildren()(Code)
Returns an enumeration of all child wrappers. an enumeration of the child wrappers.
since:
   Ant 1.6



getElementTag
public synchronized String getElementTag()(Code)
Returns the tag name of the wrapped element. The tag name of the wrapped element. This is unlikelyto be null, but may be.



getId
public synchronized String getId()(Code)
Returns the id for this element. the id.



getPolyType
public synchronized String getPolyType()(Code)
Get the polymorphic type for this element. the ant component type name, null if not set.



getProxy
public synchronized Object getProxy()(Code)
Get the object for which this RuntimeConfigurable holds the configuration information. the object whose configure is held by this instance.



getText
public synchronized StringBuffer getText()(Code)
Get the text content of this element. Various text chunks are concatenated, there is no way ( currently ) of keeping track of multiple fragments. the text content of this element.
since:
   Ant 1.6



maybeConfigure
public void maybeConfigure(Project p) throws BuildException(Code)
Configures the wrapped element and all its children. The attributes and text for the wrapped element are configured, and then each child is configured and added. Each time the wrapper is configured, the attributes and text for it are reset. If the element has an id attribute, a reference is added to the project as well.
Parameters:
  p - The project containing the wrapped element.Must not be null.
exception:
  BuildException - if the configuration fails, for instance dueto invalid attributes or children, or text being added toan element which doesn't accept it.



maybeConfigure
public synchronized void maybeConfigure(Project p, boolean configureChildren) throws BuildException(Code)
Configures the wrapped element. The attributes and text for the wrapped element are configured. Each time the wrapper is configured, the attributes and text for it are reset. If the element has an id attribute, a reference is added to the project as well.
Parameters:
  p - The project containing the wrapped element.Must not be null.
Parameters:
  configureChildren - ignored.
exception:
  BuildException - if the configuration fails, for instance dueto invalid attributes , or text being added toan element which doesn't accept it.



reconfigure
public void reconfigure(Project p)(Code)
Reconfigure the element, even if it has already been configured.
Parameters:
  p - the project instance for this configuration.



removeAttribute
public synchronized void removeAttribute(String name)(Code)
Delete an attribute. Not for the faint of heart.
Parameters:
  name - the name of the attribute to be removed.



setAttribute
public synchronized void setAttribute(String name, String value)(Code)
Set an attribute to a given value.
Parameters:
  name - the name of the attribute.
Parameters:
  value - the attribute's value.



setAttributes
public synchronized void setAttributes(AttributeList attributes)(Code)
Sets the attributes for the wrapped element.
Parameters:
  attributes - List of attributes defined in the XML for thiselement. May be null.



setCreator
synchronized void setCreator(IntrospectionHelper.Creator creator)(Code)
Sets the creator of the element to be configured used to store the element in the parent.
Parameters:
  creator - the creator object.



setElementTag
public synchronized void setElementTag(String elementTag)(Code)
Set the element tag.
Parameters:
  elementTag - The tag name generating this element.



setPolyType
public synchronized void setPolyType(String polyType)(Code)
Set the polymorphic type for this element.
Parameters:
  polyType - the ant component type name, null if not set.



setProxy
public synchronized void setProxy(Object proxy)(Code)
Sets the element to configure.
Parameters:
  proxy - The element to configure. Must not be null.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.