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

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

public class AttributeValueExtracter
extends ExtracterSupport

Extracts the value of an attribute

Author:
Steve Ebersole

Constructor Summary
AttributeValueExtracter(java.lang.String attributeName, 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

AttributeValueExtracter

public AttributeValueExtracter(java.lang.String attributeName,
                               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.