Skip to content

Commit 8f97ff9

Browse files
committed
Update JavaDoc
1 parent 587efe4 commit 8f97ff9

File tree

1 file changed

+31
-26
lines changed

1 file changed

+31
-26
lines changed

core/src/java/org/jdom2/Element.java

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public Namespace getNamespace() {
243243
* Sets the element's {@link Namespace}. If the provided namespace is null,
244244
* the element will have no namespace.
245245
*
246-
* @param namespace the new namespace
246+
* @param namespace the new namespace. A null implies Namespace.NO_NAMESPACE.
247247
* @return the target element
248248
* @throws IllegalAddException if there is a Namespace conflict
249249
*/
@@ -410,7 +410,7 @@ public boolean addNamespaceDeclaration(final Namespace additionalNamespace) {
410410
* relating directly to itself. If the declaration is not present, this
411411
* method does nothing.
412412
*
413-
* @param additionalNamespace namespace to remove
413+
* @param additionalNamespace namespace to remove. A null Namespace does nothing.
414414
*/
415415
public void removeNamespaceDeclaration(final Namespace additionalNamespace) {
416416
if (additionalNamespaces == null) {
@@ -617,11 +617,12 @@ public String getChildTextNormalize(final String cname) {
617617
/**
618618
* Returns the textual content of the named child element, or null if
619619
* there's no such child.
620-
*
621-
* @param cname the name of the child
622-
* @param ns the namespace of the child
623-
* @return text content for the named child, or null if
624-
* no such child
620+
*
621+
* @param cname
622+
* the name of the child
623+
* @param ns
624+
* the namespace of the child. A null implies Namespace.NO_NAMESPACE.
625+
* @return text content for the named child, or null if no such child
625626
*/
626627
public String getChildText(final String cname, final Namespace ns) {
627628
final Element child = getChild(cname, ns);
@@ -634,11 +635,13 @@ public String getChildText(final String cname, final Namespace ns) {
634635
/**
635636
* Returns the trimmed textual content of the named child element, or null
636637
* if there's no such child.
637-
*
638-
* @param cname the name of the child
639-
* @param ns the namespace of the child
640-
* @return trimmed text content for the named child, or
641-
* null if no such child
638+
*
639+
* @param cname
640+
* the name of the child
641+
* @param ns
642+
* the namespace of the child. A null implies Namespace.NO_NAMESPACE.
643+
* @return trimmed text content for the named child, or null if no such
644+
* child
642645
*/
643646
public String getChildTextTrim(final String cname, final Namespace ns) {
644647
final Element child = getChild(cname, ns);
@@ -651,11 +654,13 @@ public String getChildTextTrim(final String cname, final Namespace ns) {
651654
/**
652655
* Returns the normalized textual content of the named child element, or
653656
* null if there's no such child.
654-
*
655-
* @param cname the name of the child
656-
* @param ns the namespace of the child
657-
* @return normalized text content for the named child,
658-
* or null if no such child
657+
*
658+
* @param cname
659+
* the name of the child
660+
* @param ns
661+
* the namespace of the child. A null implies Namespace.NO_NAMESPACE.
662+
* @return normalized text content for the named child, or null if no such
663+
* child
659664
*/
660665
public String getChildTextNormalize(final String cname, final Namespace ns) {
661666
final Element child = getChild(cname, ns);
@@ -1120,7 +1125,7 @@ public Attribute getAttribute(final String attname) {
11201125
* </p>
11211126
*
11221127
* @param attname name of the attribute to return
1123-
* @param ns <code>Namespace</code> to search within
1128+
* @param ns <code>Namespace</code> to search within. A null implies Namespace.NO_NAMESPACE.
11241129
* @return attribute for the element
11251130
*/
11261131
public Attribute getAttribute(final String attname, final Namespace ns) {
@@ -1173,7 +1178,7 @@ public String getAttributeValue(final String attname, final String def) {
11731178
* </p>
11741179
*
11751180
* @param attname name of the attribute whose valud is to be returned
1176-
* @param ns <code>Namespace</code> to search within
1181+
* @param ns <code>Namespace</code> to search within. A null implies Namespace.NO_NAMESPACE.
11771182
* @return the named attribute's value, or null if no such attribute
11781183
*/
11791184
public String getAttributeValue(final String attname, final Namespace ns) {
@@ -1191,7 +1196,7 @@ public String getAttributeValue(final String attname, final Namespace ns) {
11911196
* </p>
11921197
*
11931198
* @param attname name of the attribute whose valud is to be returned
1194-
* @param ns <code>Namespace</code> to search within
1199+
* @param ns <code>Namespace</code> to search within. A null implies Namespace.NO_NAMESPACE.
11951200
* @param def a default value to return if the attribute does not exist
11961201
* @return the named attribute's value, or the default if no such attribute
11971202
*/
@@ -1290,7 +1295,7 @@ public Element setAttribute(final String name, final String value) {
12901295
*
12911296
* @param name name of the attribute to set
12921297
* @param value value of the attribute to set
1293-
* @param ns namespace of the attribute to set
1298+
* @param ns namespace of the attribute to set. A null implies Namespace.NO_NAMESPACE.
12941299
* @return this element modified
12951300
* @throws IllegalNameException if the given name is illegal as an
12961301
* attribute name, or if the namespace is an unprefixed default
@@ -1351,7 +1356,7 @@ public boolean removeAttribute(final String attname) {
13511356
* </p>
13521357
*
13531358
* @param attname name of attribute to remove
1354-
* @param ns namespace URI of attribute to remove
1359+
* @param ns namespace URI of attribute to remove. A null implies Namespace.NO_NAMESPACE.
13551360
* @return whether the attribute was removed
13561361
*/
13571362
public boolean removeAttribute(final String attname, final Namespace ns) {
@@ -1554,7 +1559,7 @@ public List<Element> getChildren(final String cname) {
15541559
* </p>
15551560
*
15561561
* @param cname local name for the children to match
1557-
* @param ns <code>Namespace</code> to search within
1562+
* @param ns <code>Namespace</code> to search within. A null implies Namespace.NO_NAMESPACE.
15581563
* @return all matching child elements
15591564
*/
15601565
public List<Element> getChildren(final String cname, final Namespace ns) {
@@ -1568,7 +1573,7 @@ public List<Element> getChildren(final String cname, final Namespace ns) {
15681573
* returned.
15691574
*
15701575
* @param cname local name of child element to match
1571-
* @param ns <code>Namespace</code> to search within
1576+
* @param ns <code>Namespace</code> to search within. A null implies Namespace.NO_NAMESPACE.
15721577
* @return the first matching child element, or null if not found
15731578
*/
15741579
public Element getChild(final String cname, final Namespace ns) {
@@ -1615,7 +1620,7 @@ public boolean removeChild(final String cname) {
16151620
* </p>
16161621
*
16171622
* @param cname the name of child element to remove
1618-
* @param ns <code>Namespace</code> to search within
1623+
* @param ns <code>Namespace</code> to search within. A null implies Namespace.NO_NAMESPACE.
16191624
* @return whether deletion occurred
16201625
*/
16211626
public boolean removeChild(final String cname, final Namespace ns) {
@@ -1653,7 +1658,7 @@ public boolean removeChildren(final String cname) {
16531658
* </p>
16541659
*
16551660
* @param cname the name of child elements to remove
1656-
* @param ns <code>Namespace</code> to search within
1661+
* @param ns <code>Namespace</code> to search within. A null implies Namespace.NO_NAMESPACE.
16571662
* @return whether deletion occurred
16581663
*/
16591664
public boolean removeChildren(final String cname, final Namespace ns) {

0 commit comments

Comments
 (0)