com.opensymphony.xwork.config.entities
Class ExternalReference

java.lang.Object
  extended by com.opensymphony.xwork.config.entities.ExternalReference
All Implemented Interfaces:
Serializable

public class ExternalReference
extends Object
implements Serializable

Encapsulates an external reference in the xwork configuration.

Author:
Ross, Rainer Hermanns
See Also:
Serialized Form

Constructor Summary
ExternalReference()
          default constructor
ExternalReference(String name, String externalRef, boolean required)
           
 
Method Summary
 String getExternalRef()
           
 String getName()
           
 boolean isRequired()
           
 void setExternalRef(String externalRef)
           
 void setName(String name)
           
 void setRequired(boolean required)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalReference

public ExternalReference()
default constructor


ExternalReference

public ExternalReference(String name,
                         String externalRef,
                         boolean required)
Parameters:
name - the name of the attribute the external reference refers to
externalRef - the name used to query the external source
required - determines whether an exception should be thrown if the reference is not resolved
Method Detail

setExternalRef

public void setExternalRef(String externalRef)
Parameters:
externalRef - The externalRef to set.

getExternalRef

public String getExternalRef()
Returns:
Returns the externalRef.

setName

public void setName(String name)
Parameters:
name - The name to set.

getName

public String getName()
Returns:
Returns the name.

setRequired

public void setRequired(boolean required)
Parameters:
required - The required to set.

isRequired

public boolean isRequired()
Returns:
Returns the required.

WebWork Project Page