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

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

public class ElementValueExtracter
extends ExtracterSupport

Extracts the text value from an element.

Author:
Steve Ebersole

Constructor Summary
  ElementValueExtracter()
           
protected ElementValueExtracter(boolean required, java.lang.String defaultValue)
           
 
Method Summary
protected  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

ElementValueExtracter

public ElementValueExtracter()

ElementValueExtracter

protected ElementValueExtracter(boolean required,
                                java.lang.String defaultValue)
Method Detail

extractValue

protected 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.