com.codemonster.surinam.core.framework.injection
Class ArrayProperty

java.lang.Object
  extended by com.codemonster.surinam.core.framework.injection.PropertyBase
      extended by com.codemonster.surinam.core.framework.injection.ArrayProperty
All Implemented Interfaces:
ServiceProperty

public class ArrayProperty
extends PropertyBase
implements ServiceProperty

This class represents and encapsulates the concept of an injected array property.

User: sam Date: Feb 14, 2010 Time: 10:35:02 AM


Constructor Summary
ArrayProperty(String name, String[] values, String method)
          This builds our injected property object via standard constructor.
 
Method Summary
 String[] getValues()
           
 void setValues(String[] values)
           
 String toXML()
          Putting this method here will make it clear that while it is required by the interface, we expect subclasses to provide the appropriate implementations.
 
Methods inherited from class com.codemonster.surinam.core.framework.injection.PropertyBase
getMethod, getName, getTabValue, setMethod, setName, setTabValue, setXmlIndentation, setXmlIndentation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.codemonster.surinam.core.framework.injection.ServiceProperty
getMethod, getName, setXmlIndentation
 

Constructor Detail

ArrayProperty

public ArrayProperty(String name,
                     String[] values,
                     String method)
This builds our injected property object via standard constructor.

Parameters:
name - The name of the attribute that this property represents.
values - The values that comprise this array.
method - An optional method to call to inject this array.
Method Detail

getValues

public String[] getValues()

setValues

public void setValues(String[] values)

toXML

public String toXML()
Description copied from class: PropertyBase
Putting this method here will make it clear that while it is required by the interface, we expect subclasses to provide the appropriate implementations. This is important as these classes will be used when generating new Action Documents.

Specified by:
toXML in interface ServiceProperty
Specified by:
toXML in class PropertyBase
Returns:
Returns the XML form of this property.


Copyright © 2010. All Rights Reserved.