ModifiableMetadata changes for revisions 7196:7197

This commit contains change in code that do not exist anymore in SIS or Geotk. See revision 6942 for more information.

Command line:

svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r7196:7197 https://svn.osgeo.org/geotools/trunk/modules/library/metadata/src/main/java/org/geotools/metadata/ModifiableMetadata.java
Revision 7196Revision 7197
import org.opengis.util.Cloneable;

// Geotools dependencies
import org.geotools.catalog.XPath;
import org.geotools.resources.Utilities;
import org.geotools.resources.rsc.Resources;
import org.geotools.resources.rsc.ResourceKeys;


/**
import org.opengis.util.Cloneable;

// Geotools dependencies
import org.geotools.resources.Utilities;
import org.geotools.resources.rsc.Resources;
import org.geotools.resources.rsc.ResourceKeys;
import org.geotools.xml.XPathFactory;


/**
 * @return element value, List of element value, or null if xPath did not match anything.
 */
public final Object getElement(final String xpath) {
    final List elements = XPath.getValue(xpath, this);
    switch (elements.size()) {
        case 0:  return null;
        case 1:  return elements.get(0);
 * @return element value, List of element value, or null if xPath did not match anything.
 */
public final Object getElement(final String xpath) {
    final List elements = XPathFactory.value(xpath, this);
    switch (elements.size()) {
        case 0:  return null;
        case 1:  return elements.get(0);
 * 		A List is many Elements are found to match the xpath.
 */
public Object getElement(final String xpath) {
    final List result = XPath.getElement(xpath, this);
    switch (result.size()) {
        case 0:  return null;
        case 1:  return result.get(0);
 * 		A List is many Elements are found to match the xpath.
 */
public Object getElement(final String xpath) {
    final List result = XPathFactory.find(xpath, this);
    switch (result.size()) {
        case 0:  return null;
        case 1:  return result.get(0);