org.jboss.maven.shared.xml.dom4j
Class NestedElementValueExtracter

java.lang.Object
  extended by org.jboss.maven.shared.xml.dom4j.ExtracterSupport
      extended by org.jboss.maven.shared.xml.dom4j.NestedElementValueExtracter
All Implemented Interfaces:
Extracter

public class NestedElementValueExtracter
extends ExtracterSupport

Extracts the text value from a named element of an element.

Author:
Steve Ebersole

Constructor Summary
NestedElementValueExtracter(java.lang.String elementName, boolean required, java.lang.String defaultValue)
           
 
Method Summary
 java.lang.String extractValue(org.dom4j.Element element)
          Extract the value according to the underlying implementations contract.
 
Methods inherited from class org.jboss.maven.shared.xml.dom4j.ExtracterSupport
extract, requiredMissing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NestedElementValueExtracter

public NestedElementValueExtracter(java.lang.String elementName,
                                   boolean required,
                                   java.lang.String defaultValue)
Method Detail

extractValue

public java.lang.String extractValue(org.dom4j.Element element)
Description copied from class: ExtracterSupport
Extract the value according to the underlying implementations contract. The given element is guarenteed to not be null.

Specified by:
extractValue in class ExtracterSupport
Parameters:
element - The non-null element.
Returns:
The extracted value.


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.