org.codehaus.cargo.module
Class Identifier

java.lang.Object
  extended by org.codehaus.cargo.module.Identifier

public class Identifier
extends java.lang.Object

Class used to work out how to 'identify' instances of DescrtiptorTags.

Version:
$Id: Identifier.java 1705 2008-09-02 13:14:55Z adriana $

Constructor Summary
Identifier(java.util.Map namespaceMap, java.lang.String xpath)
           
Identifier(java.lang.String xpath)
          Constructor.
 
Method Summary
 java.lang.String getIdentifier(org.jdom.Element element)
          Get the value of the identifier for a particular element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Identifier

public Identifier(java.lang.String xpath)
Constructor.

Parameters:
xpath - XPath to use to identify field
Throws:
org.jdom.JDOMException

Identifier

public Identifier(java.util.Map namespaceMap,
                  java.lang.String xpath)
Parameters:
namespaceMap - The namespaceMap
xpath - The xpath
Throws:
org.jdom.JDOMException
Method Detail

getIdentifier

public java.lang.String getIdentifier(org.jdom.Element element)
Get the value of the identifier for a particular element.

Parameters:
element - element to use
Returns:
the value of the identifier


Copyright © 2004-2011 Codehaus. All Rights Reserved.