@@ -243,7 +243,7 @@ public Namespace getNamespace() {
243
243
* Sets the element's {@link Namespace}. If the provided namespace is null,
244
244
* the element will have no namespace.
245
245
*
246
- * @param namespace the new namespace
246
+ * @param namespace the new namespace. A null implies Namespace.NO_NAMESPACE.
247
247
* @return the target element
248
248
* @throws IllegalAddException if there is a Namespace conflict
249
249
*/
@@ -410,7 +410,7 @@ public boolean addNamespaceDeclaration(final Namespace additionalNamespace) {
410
410
* relating directly to itself. If the declaration is not present, this
411
411
* method does nothing.
412
412
*
413
- * @param additionalNamespace namespace to remove
413
+ * @param additionalNamespace namespace to remove. A null Namespace does nothing.
414
414
*/
415
415
public void removeNamespaceDeclaration (final Namespace additionalNamespace ) {
416
416
if (additionalNamespaces == null ) {
@@ -617,11 +617,12 @@ public String getChildTextNormalize(final String cname) {
617
617
/**
618
618
* Returns the textual content of the named child element, or null if
619
619
* 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
625
626
*/
626
627
public String getChildText (final String cname , final Namespace ns ) {
627
628
final Element child = getChild (cname , ns );
@@ -634,11 +635,13 @@ public String getChildText(final String cname, final Namespace ns) {
634
635
/**
635
636
* Returns the trimmed textual content of the named child element, or null
636
637
* 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
642
645
*/
643
646
public String getChildTextTrim (final String cname , final Namespace ns ) {
644
647
final Element child = getChild (cname , ns );
@@ -651,11 +654,13 @@ public String getChildTextTrim(final String cname, final Namespace ns) {
651
654
/**
652
655
* Returns the normalized textual content of the named child element, or
653
656
* 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
659
664
*/
660
665
public String getChildTextNormalize (final String cname , final Namespace ns ) {
661
666
final Element child = getChild (cname , ns );
@@ -1120,7 +1125,7 @@ public Attribute getAttribute(final String attname) {
1120
1125
* </p>
1121
1126
*
1122
1127
* @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.
1124
1129
* @return attribute for the element
1125
1130
*/
1126
1131
public Attribute getAttribute (final String attname , final Namespace ns ) {
@@ -1173,7 +1178,7 @@ public String getAttributeValue(final String attname, final String def) {
1173
1178
* </p>
1174
1179
*
1175
1180
* @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.
1177
1182
* @return the named attribute's value, or null if no such attribute
1178
1183
*/
1179
1184
public String getAttributeValue (final String attname , final Namespace ns ) {
@@ -1191,7 +1196,7 @@ public String getAttributeValue(final String attname, final Namespace ns) {
1191
1196
* </p>
1192
1197
*
1193
1198
* @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.
1195
1200
* @param def a default value to return if the attribute does not exist
1196
1201
* @return the named attribute's value, or the default if no such attribute
1197
1202
*/
@@ -1290,7 +1295,7 @@ public Element setAttribute(final String name, final String value) {
1290
1295
*
1291
1296
* @param name name of the attribute to set
1292
1297
* @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.
1294
1299
* @return this element modified
1295
1300
* @throws IllegalNameException if the given name is illegal as an
1296
1301
* attribute name, or if the namespace is an unprefixed default
@@ -1351,7 +1356,7 @@ public boolean removeAttribute(final String attname) {
1351
1356
* </p>
1352
1357
*
1353
1358
* @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.
1355
1360
* @return whether the attribute was removed
1356
1361
*/
1357
1362
public boolean removeAttribute (final String attname , final Namespace ns ) {
@@ -1554,7 +1559,7 @@ public List<Element> getChildren(final String cname) {
1554
1559
* </p>
1555
1560
*
1556
1561
* @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.
1558
1563
* @return all matching child elements
1559
1564
*/
1560
1565
public List <Element > getChildren (final String cname , final Namespace ns ) {
@@ -1568,7 +1573,7 @@ public List<Element> getChildren(final String cname, final Namespace ns) {
1568
1573
* returned.
1569
1574
*
1570
1575
* @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.
1572
1577
* @return the first matching child element, or null if not found
1573
1578
*/
1574
1579
public Element getChild (final String cname , final Namespace ns ) {
@@ -1615,7 +1620,7 @@ public boolean removeChild(final String cname) {
1615
1620
* </p>
1616
1621
*
1617
1622
* @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.
1619
1624
* @return whether deletion occurred
1620
1625
*/
1621
1626
public boolean removeChild (final String cname , final Namespace ns ) {
@@ -1653,7 +1658,7 @@ public boolean removeChildren(final String cname) {
1653
1658
* </p>
1654
1659
*
1655
1660
* @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.
1657
1662
* @return whether deletion occurred
1658
1663
*/
1659
1664
public boolean removeChildren (final String cname , final Namespace ns ) {
0 commit comments