Java Doc for IntrospectedInfo.java in  » IDE-Netbeans » library » org » apache » tools » ant » module » api » 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 » IDE Netbeans » library » org.apache.tools.ant.module.api 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.tools.ant.module.api.IntrospectedInfo

IntrospectedInfo
final public class IntrospectedInfo (Code)
Represents Ant-style introspection info for a set of classes. There should be one instance which is loaded automatically from defaults.properties files, i.e. standard tasks/datatypes. A second is loaded from settings and represents custom tasks/datatypes. Uses Ant's IntrospectionHelper for the actual work, but manages the results and makes them safely serializable (stores only classnames, etc.).

All task and type names may be namespace-qualified for use in Ant 1.6: a name of the form nsuri:localname refers to an XML element with namespace nsuri and local name localname. Attribute names could also be similarly qualified, but in practice attributes used in Ant never have a defined namespace. The prefix antlib:org.apache.tools.ant: is implied, not expressed, on Ant core element names (for backwards compatibility). Subelement names are *not* namespace-qualified here, even though in the script they would be - because the namespace used in the script will actually vary according to how an antlib is imported and used. An unqualified subelement name should be understood to inherit a namespace from its parent element. (Namespace support since org.apache.tools.ant.module/3 3.6)




Constructor Summary
public  IntrospectedInfo()
     Make new empty set of info.

Method Summary
public  voidaddChangeListener(ChangeListener l)
     Add a listener to changes in the definition set.
public  Map<String, String>getAttributes(String clazz)
     Get all attributes supported by this class.
public static synchronized  IntrospectedInfogetDefaults()
     Get default definitions specified by Ant's defaults.properties.
public  Map<String, String>getDefs(String kind)
     Get definitions.
Parameters:
  kind - the kind of definition, e.g.
public  Map<String, String>getElements(String clazz)
     Get all subelements supported by this class.
public static synchronized  IntrospectedInfogetKnownInfo()
     Get all known introspected definitions. Includes all those in IntrospectedInfo.getDefaults plus custom definitions encountered in actual build scripts (details unspecified). a set of all known definitions, e.g.
public  String[]getTags(String clazz)
     Get tags represented by this class if it is an EnumeratedAttribute.
public  booleanisKnown(String clazz)
    
public synchronized  voidregister(String name, Class clazz, String kind)
     Register a new definition. May change the defined task/type for a given name, but will not redefine structure if classes are modified. Also any class definitions contained in the default map (if not this one) are just ignored; you should refer to the default map for info on them. Throws various errors if the class could not be resolved, e.g.
public  voidremoveChangeListener(ChangeListener l)
     Remove a listener to changes in the definition set.
public  voidscanProject(Map<String, Map<String, Class>> defs)
     Scan an existing (already-run) project to see if it has any new tasks/types.
public  booleansupportsText(String clazz)
    
public  StringtoString()
    
public synchronized  voidunregister(String name, String kind)
     Unregister a definition.


Constructor Detail
IntrospectedInfo
public IntrospectedInfo()(Code)
Make new empty set of info.




Method Detail
addChangeListener
public void addChangeListener(ChangeListener l)(Code)
Add a listener to changes in the definition set.
Parameters:
  l - the listener to add
since:
   2.6



getAttributes
public Map<String, String> getAttributes(String clazz) throws IllegalArgumentException(Code)
Get all attributes supported by this class.
Parameters:
  clazz - the class name an immutable map from attribute name to type (class name)
throws:
  IllegalArgumentException - if the class is unknown



getDefaults
public static synchronized IntrospectedInfo getDefaults()(Code)
Get default definitions specified by Ant's defaults.properties. the singleton defaults



getDefs
public Map<String, String> getDefs(String kind)(Code)
Get definitions.
Parameters:
  kind - the kind of definition, e.g. task an immutable map from definition names to class names



getElements
public Map<String, String> getElements(String clazz) throws IllegalArgumentException(Code)
Get all subelements supported by this class.
Parameters:
  clazz - the class name an immutable map from element name to type (class name)
throws:
  IllegalArgumentException - if the class is unknown



getKnownInfo
public static synchronized IntrospectedInfo getKnownInfo()(Code)
Get all known introspected definitions. Includes all those in IntrospectedInfo.getDefaults plus custom definitions encountered in actual build scripts (details unspecified). a set of all known definitions, e.g. of tasks and types
since:
   2.14



getTags
public String[] getTags(String clazz) throws IllegalArgumentException(Code)
Get tags represented by this class if it is an EnumeratedAttribute.
Parameters:
  clazz - the class name a list of tag names, or null if the class is not a subclass of EnumeratedAttribute
throws:
  IllegalArgumentException - if the class is unknown
since:
   org.apache.tools.ant.module/3 3.3



isKnown
public boolean isKnown(String clazz)(Code)
Is anything known about this class?
Parameters:
  clazz - the class name true if it is known, false if never encountered



register
public synchronized void register(String name, Class clazz, String kind)(Code)
Register a new definition. May change the defined task/type for a given name, but will not redefine structure if classes are modified. Also any class definitions contained in the default map (if not this one) are just ignored; you should refer to the default map for info on them. Throws various errors if the class could not be resolved, e.g. NoClassDefFoundError.
Parameters:
  name - name of the task or type as it appears in scripts
Parameters:
  clazz - the implementing class
Parameters:
  kind - the kind of definition to register (task or type currently)
since:
   2.4



removeChangeListener
public void removeChangeListener(ChangeListener l)(Code)
Remove a listener to changes in the definition set.
Parameters:
  l - the listener to remove
since:
   2.6



scanProject
public void scanProject(Map<String, Map<String, Class>> defs)(Code)
Scan an existing (already-run) project to see if it has any new tasks/types. Any new definitions found will automatically be added to the known list. This will try to change existing definitions in the custom set, i.e. if a task is defined to be implemented with a different class, or if a class changes structure. Will not try to define anything contained in the defaults list.
Parameters:
  defs - map from kinds to maps from names to classes



supportsText
public boolean supportsText(String clazz) throws IllegalArgumentException(Code)
Does this class support inserting text data?
Parameters:
  clazz - the class name true if so
throws:
  IllegalArgumentException - if the class is unknown



toString
public String toString()(Code)



unregister
public synchronized void unregister(String name, String kind)(Code)
Unregister a definition. Removes it from the definition mapping, though structural information about the implementing class (and classes referenced by that class) will not be removed. If the definition was not registered before, does nothing.
Parameters:
  name - the definition name
Parameters:
  kind - the kind of definition (task etc.)
since:
   2.4



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.