Skip to content

Commit

Permalink
JavaDoc tidyup
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfl committed Mar 13, 2012
1 parent a854727 commit 1b78d60
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build.xml
Expand Up @@ -11,6 +11,7 @@ For instructions on how to build JDOM, please view the README.txt file.
<!-- =================================================================== --> <!-- =================================================================== -->
<tstamp > <tstamp >
<format property="snapshot.time" pattern="yyyy.MM.dd.HH.mm" /> <format property="snapshot.time" pattern="yyyy.MM.dd.HH.mm" />
<format property="year" pattern="yyyy" />
</tstamp> </tstamp>


<!-- <!--
Expand All @@ -34,7 +35,6 @@ For instructions on how to build JDOM, please view the README.txt file.
<property name="version" value="2.x-${snapshot.time}"/> <property name="version" value="2.x-${snapshot.time}"/>
<property name="version.impl" value="${version}"/> <property name="version.impl" value="${version}"/>
<property name="version.spec" value="2.alpha"/> <property name="version.spec" value="2.alpha"/>
<property name="year" value="2011"/>


<property name="gpg" value="gpg" <property name="gpg" value="gpg"
description="Path to the GNU gpg program for maven target"/> description="Path to the GNU gpg program for maven target"/>
Expand Down
19 changes: 18 additions & 1 deletion core/src/java/org/jdom2/JDOMFactory.java
@@ -1,6 +1,6 @@
/*-- /*--
Copyright (C) 2000-2007 Jason Hunter & Brett McLaughlin. Copyright (C) 2000-2012 Jason Hunter & Brett McLaughlin.
All rights reserved. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -65,6 +65,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* @author Ken Rune Holland * @author Ken Rune Holland
* @author Phil Nelson * @author Phil Nelson
* @author Bradley S. Huffman * @author Bradley S. Huffman
* @author Rolf Lear
*/ */
public interface JDOMFactory { public interface JDOMFactory {


Expand Down Expand Up @@ -183,6 +184,7 @@ public Attribute attribute(String name, String value,
* @param col The column on the line at which this content begins. * @param col The column on the line at which this content begins.
* @param str <code>String</code> content of CDATA. * @param str <code>String</code> content of CDATA.
* @return the created CDATA instance * @return the created CDATA instance
* @since JDOM2
*/ */
public CDATA cdata(int line, int col, String str); public CDATA cdata(int line, int col, String str);


Expand All @@ -195,6 +197,7 @@ public Attribute attribute(String name, String value,
* @param col The column on the line at which this content begins. * @param col The column on the line at which this content begins.
* @param str <code>String</code> content of Text. * @param str <code>String</code> content of Text.
* @return the created Text instance * @return the created Text instance
* @since JDOM2
*/ */
public Text text(int line, int col, String str); public Text text(int line, int col, String str);


Expand Down Expand Up @@ -225,6 +228,7 @@ public Attribute attribute(String name, String value,
* @param col The column on the line at which this content begins. * @param col The column on the line at which this content begins.
* @param text <code>String</code> content of comment. * @param text <code>String</code> content of comment.
* @return the created Comment instance * @return the created Comment instance
* @since JDOM2
*/ */
public Comment comment(int line, int col, String text); public Comment comment(int line, int col, String text);


Expand Down Expand Up @@ -283,6 +287,7 @@ public DocType docType(String elementName,
* @param systemID <code>String</code> system ID of * @param systemID <code>String</code> system ID of
* referenced DTD * referenced DTD
* @return the created DocType instance * @return the created DocType instance
* @since JDOM2
*/ */
public DocType docType(int line, int col, String elementName, public DocType docType(int line, int col, String elementName,
String publicID, String systemID); String publicID, String systemID);
Expand All @@ -299,6 +304,7 @@ public DocType docType(int line, int col, String elementName,
* @param systemID <code>String</code> system ID of * @param systemID <code>String</code> system ID of
* referenced DTD * referenced DTD
* @return the created DocType instance * @return the created DocType instance
* @since JDOM2
*/ */
public DocType docType(int line, int col, String elementName, String systemID); public DocType docType(int line, int col, String elementName, String systemID);


Expand All @@ -311,6 +317,7 @@ public DocType docType(int line, int col, String elementName,
* @param elementName <code>String</code> name of * @param elementName <code>String</code> name of
* element being constrained. * element being constrained.
* @return the created DocType instance * @return the created DocType instance
* @since JDOM2
*/ */
public DocType docType(int line, int col, String elementName); public DocType docType(int line, int col, String elementName);


Expand Down Expand Up @@ -412,6 +419,7 @@ public DocType docType(int line, int col, String elementName,
* @param name <code>String</code> name of element. * @param name <code>String</code> name of element.
* @param namespace <code>Namespace</code> to put element in. * @param namespace <code>Namespace</code> to put element in.
* @return the created Element instance * @return the created Element instance
* @since JDOM2
*/ */
public Element element(int line, int col, String name, Namespace namespace); public Element element(int line, int col, String name, Namespace namespace);


Expand All @@ -423,6 +431,7 @@ public DocType docType(int line, int col, String elementName,
* @param col The column on the line at which this content begins. * @param col The column on the line at which this content begins.
* @param name <code>String</code> name of element. * @param name <code>String</code> name of element.
* @return the created Element instance * @return the created Element instance
* @since JDOM2
*/ */
public Element element(int line, int col, String name); public Element element(int line, int col, String name);


Expand All @@ -439,6 +448,7 @@ public DocType docType(int line, int col, String elementName,
* @param uri <code>String</code> URI for <code>Namespace</code> element * @param uri <code>String</code> URI for <code>Namespace</code> element
* should be in. * should be in.
* @return the created Element instance * @return the created Element instance
* @since JDOM2
*/ */
public Element element(int line, int col, String name, String uri); public Element element(int line, int col, String name, String uri);


Expand All @@ -455,6 +465,7 @@ public DocType docType(int line, int col, String elementName,
* @param uri <code>String</code> URI for <code>Namespace</code> element * @param uri <code>String</code> URI for <code>Namespace</code> element
* should be in. * should be in.
* @return the created Element instance * @return the created Element instance
* @since JDOM2
*/ */
public Element element(int line, int col, String name, String prefix, String uri); public Element element(int line, int col, String name, String prefix, String uri);


Expand Down Expand Up @@ -502,6 +513,7 @@ public ProcessingInstruction processingInstruction(String target,
* @param data <code>Map</code> data for PI, in * @param data <code>Map</code> data for PI, in
* name/value pairs * name/value pairs
* @return the created ProcessingInstruction instance * @return the created ProcessingInstruction instance
* @since JDOM2
*/ */
public ProcessingInstruction processingInstruction(int line, int col, String target, public ProcessingInstruction processingInstruction(int line, int col, String target,
Map<String,String> data); Map<String,String> data);
Expand All @@ -515,6 +527,7 @@ public ProcessingInstruction processingInstruction(int line, int col, String tar
* @param target <code>String</code> target of PI. * @param target <code>String</code> target of PI.
* @param data <code>String</code> data for PI. * @param data <code>String</code> data for PI.
* @return the created ProcessingInstruction instance * @return the created ProcessingInstruction instance
* @since JDOM2
*/ */
public ProcessingInstruction processingInstruction(int line, int col, String target, public ProcessingInstruction processingInstruction(int line, int col, String target,
String data); String data);
Expand All @@ -527,6 +540,7 @@ public ProcessingInstruction processingInstruction(int line, int col, String tar
* @param col The column on the line at which this content begins. * @param col The column on the line at which this content begins.
* @param target <code>String</code> target of PI. * @param target <code>String</code> target of PI.
* @return the created ProcessingInstruction instance * @return the created ProcessingInstruction instance
* @since JDOM2
*/ */
public ProcessingInstruction processingInstruction(int line, int col, String target); public ProcessingInstruction processingInstruction(int line, int col, String target);


Expand Down Expand Up @@ -570,6 +584,7 @@ public ProcessingInstruction processingInstruction(int line, int col, String tar
* @param col The column on the line at which this content begins. * @param col The column on the line at which this content begins.
* @param name <code>String</code> name of element. * @param name <code>String</code> name of element.
* @return the created EntityRef instance * @return the created EntityRef instance
* @since JDOM2
*/ */
public EntityRef entityRef(int line, int col, String name); public EntityRef entityRef(int line, int col, String name);


Expand All @@ -583,6 +598,7 @@ public ProcessingInstruction processingInstruction(int line, int col, String tar
* @param publicID <code>String</code> public ID of element. * @param publicID <code>String</code> public ID of element.
* @param systemID <code>String</code> system ID of element. * @param systemID <code>String</code> system ID of element.
* @return the created EntityRef instance * @return the created EntityRef instance
* @since JDOM2
*/ */
public EntityRef entityRef(int line, int col, String name, String publicID, String systemID); public EntityRef entityRef(int line, int col, String name, String publicID, String systemID);


Expand All @@ -595,6 +611,7 @@ public ProcessingInstruction processingInstruction(int line, int col, String tar
* @param name <code>String</code> name of element. * @param name <code>String</code> name of element.
* @param systemID <code>String</code> system ID of element. * @param systemID <code>String</code> system ID of element.
* @return the created EntityRef instance * @return the created EntityRef instance
* @since JDOM2
*/ */
public EntityRef entityRef(int line, int col, String name, String systemID); public EntityRef entityRef(int line, int col, String name, String systemID);


Expand Down
5 changes: 3 additions & 2 deletions core/src/java/org/jdom2/NamespaceAware.java
Expand Up @@ -60,7 +60,8 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* Classes implementing this interface are all sensitive to their * Classes implementing this interface are all sensitive to their
* {@link Namespace} context. All the core JDOM classes are NamespaceAware ( * {@link Namespace} context. All the core JDOM classes are NamespaceAware (
* {@link Parent} and subtypes, {@link Content} and subtypes, and * {@link Parent} and subtypes, {@link Content} and subtypes, and
* {@link Attribute}). You can use these methods to query the Namespace context. * {@link Attribute}). You can use the methods that this interface provides
* to query the Namespace context.
* <p> * <p>
* JDOM2 introduces a consistency in reporting Namespace context. XML standards * JDOM2 introduces a consistency in reporting Namespace context. XML standards
* do not dictate any conditions on Namespace reporting or ordering, but * do not dictate any conditions on Namespace reporting or ordering, but
Expand Down Expand Up @@ -96,7 +97,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* <p> * <p>
* In addition to the Element's Namespace, there could be other Namespaces that * In addition to the Element's Namespace, there could be other Namespaces that
* are 'in scope' for the Element. The set of Namespaces that are in scope for * are 'in scope' for the Element. The set of Namespaces that are in scope for
* an Element are the union of five sets: * an Element is the union of five sets:
* <table> * <table>
* <tr> * <tr>
* <th valign="top">XML</th> * <th valign="top">XML</th>
Expand Down
4 changes: 2 additions & 2 deletions core/src/java/org/jdom2/Parent.java
Expand Up @@ -59,8 +59,8 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
import org.jdom2.filter.Filter; import org.jdom2.filter.Filter;


/** /**
* Superclass for JDOM objects which are allowed to contain * Interface for JDOM objects which are allowed to contain
* {@link Content} content. * {@link Content} content - {@link Element} and {@link Document}.
* *
* @see org.jdom2.Content * @see org.jdom2.Content
* @see org.jdom2.Document * @see org.jdom2.Document
Expand Down
4 changes: 2 additions & 2 deletions core/src/java/org/jdom2/input/SAXBuilder.java
Expand Up @@ -113,8 +113,8 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* Please read the full documentation of this class, {@link SAXHandler}, * Please read the full documentation of this class, {@link SAXHandler},
* {@link SAXHandlerFactory}, {@link JDOMFactory}, and the package documentation * {@link SAXHandlerFactory}, {@link JDOMFactory}, and the package documentation
* for {@link org.jdom2.input.sax} before overriding this class. Future versions * for {@link org.jdom2.input.sax} before overriding this class. Future versions
* of JDOM2 may make this class may be made 'final'. I you feel you have a good * of JDOM2 may make this class 'final'. I you feel you have a good reason to
* reason to subclass SAXBuilder please mention it on <a * subclass SAXBuilder please mention it on <a
* href="http://www.jdom.org/involved/lists.html">jdom-interest</a> mailing list * href="http://www.jdom.org/involved/lists.html">jdom-interest</a> mailing list
* so that SAXBuilder can be extended or adapted to handle your use-case. * so that SAXBuilder can be extended or adapted to handle your use-case.
* <p> * <p>
Expand Down
4 changes: 2 additions & 2 deletions core/src/java/org/jdom2/input/sax/package-info.java
@@ -1,6 +1,6 @@
/*-- /*--
Copyright (C) 2011 Jason Hunter & Brett McLaughlin. Copyright (C) 2011-2012 Jason Hunter & Brett McLaughlin.
All rights reserved. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -53,7 +53,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
*/ */


/** /**
Tools to build JDOM documents and content using SAX parsers. Support classes for building JDOM documents and content using SAX parsers.
<h2>Introduction</h2> <h2>Introduction</h2>
Skip to the <a href="#Examples">Examples</a> section for a quick bootstrap. Skip to the <a href="#Examples">Examples</a> section for a quick bootstrap.
Expand Down
2 changes: 1 addition & 1 deletion core/src/java/org/jdom2/package.html
Expand Up @@ -56,7 +56,7 @@ <h1>JDOM helper classes</h1>
If you have custom JDOM classes or want special treatment for content as it is If you have custom JDOM classes or want special treatment for content as it is
being created you can supply you own JDOMFactory instance to the input Builder. being created you can supply you own JDOMFactory instance to the input Builder.
Typically you would extend the DefaultJDOMFactory for this purpose. Typically you would extend the DefaultJDOMFactory for this purpose.
The DefaultJDOMFactory ensures all XML rules are followed correctly, the The DefaultJDOMFactory ensures all XML rules are followed correctly. The
UncheckedJDOMFactory may create JDOM content that does not follow XML UncheckedJDOMFactory may create JDOM content that does not follow XML
well-formedness rules. Use the UncheckedJDOMFactory in places where you are well-formedness rules. Use the UncheckedJDOMFactory in places where you are
certain the input is correct (perhaps the results of a document parsed by a certain the input is correct (perhaps the results of a document parsed by a
Expand Down

0 comments on commit 1b78d60

Please sign in to comment.