com.ideanest.attributes.dev
Class AttributesBuilder
java.lang.Object
com.ideanest.attributes.dev.AttributesBuilder
- All Implemented Interfaces:
- com.thoughtworks.qdox.parser.Builder
- public class AttributesBuilder
- extends java.lang.Object
- implements com.thoughtworks.qdox.parser.Builder
QDox Builder implementation for creating Properties containing attributes.
An AttributesBuilder can only be used to parse one file at a time. Call the reset()
method before reusing an instance.
Based on a similar class written by Joe Walnes.
- Version:
- $Revision: 1.4 $ ($Date: 2003/08/01 04:52:05 $)
- Author:
- Piotr Kaminski
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JAVADOC_TAGS
public static final java.util.Set JAVADOC_TAGS
AttributesBuilder
public AttributesBuilder(AttributesBuilder.Mode mode)
addField
public void addField(com.thoughtworks.qdox.parser.structs.FieldDef def)
- Specified by:
addField
in interface com.thoughtworks.qdox.parser.Builder
addImport
public void addImport(java.lang.String importName)
- Specified by:
addImport
in interface com.thoughtworks.qdox.parser.Builder
addJavaDoc
public void addJavaDoc(java.lang.String text)
- Specified by:
addJavaDoc
in interface com.thoughtworks.qdox.parser.Builder
addJavaDocTag
public void addJavaDocTag(java.lang.String tag,
java.lang.String text)
- Specified by:
addJavaDocTag
in interface com.thoughtworks.qdox.parser.Builder
addMethod
public void addMethod(com.thoughtworks.qdox.parser.structs.MethodDef def)
- Specified by:
addMethod
in interface com.thoughtworks.qdox.parser.Builder
addPackage
public void addPackage(java.lang.String packageName)
- Specified by:
addPackage
in interface com.thoughtworks.qdox.parser.Builder
beginClass
public void beginClass(com.thoughtworks.qdox.parser.structs.ClassDef def)
- Specified by:
beginClass
in interface com.thoughtworks.qdox.parser.Builder
endClass
public void endClass()
- Specified by:
endClass
in interface com.thoughtworks.qdox.parser.Builder
getPacks
public java.util.Map getPacks()
ignore
public void ignore(java.lang.String tag)
ignoreAll
public void ignoreAll(java.util.Collection tags)
parse
public void parse(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
setMode
public void setMode(AttributesBuilder.Mode mode)