net.groboclown.xml.xdstates.v1.impl
Class DataListX

java.lang.Object
  |
  +--net.groboclown.xml.xdstates.v1.impl.DataListX
All Implemented Interfaces:
IDataList

public class DataListX
extends Object
implements IDataList

Other than the properties, the data is read-only.

Version:
Alpha 0.9.0 - JDK 1.0+
Author:
Matt Albrecht

Field Summary
private  Properties changedProps
           
private  IItem[] items
           
private  Properties macro
           
private  Properties props
           
 
Constructor Summary
DataListX(IDataList orig, IItem[] items)
           
DataListX(IDataList orig, ISet set, IItem[] items)
           
DataListX(Properties defaultProps)
           
 
Method Summary
 void clearChangedProperties()
          Clears the internal list of properties that have been changed.
 void clearMacroProperties()
           
 Properties copyChangedProperties()
          Returns a copy of the properties that have been changed since the last call to clearChangedProperties.
 Properties copyProperties()
          The current ISet node.
 IItem[] getItems()
          The current list of contained items, having gone through any necessary permutations.
 String getMacroProperty(String name)
           
 String getMacroProperty(String name, String defaultValue)
           
 String getProperty(String name)
           
 String getProperty(String name, String defaultValue)
           
 void setMacroProperty(String name, String value)
           
 void setProperties(Properties subset)
          Batch change of a set of properties.
 void setProperty(String name, String value)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

props

private Properties props

changedProps

private Properties changedProps

macro

private Properties macro

items

private IItem[] items
Constructor Detail

DataListX

public DataListX(Properties defaultProps)

DataListX

public DataListX(IDataList orig,
                 IItem[] items)

DataListX

public DataListX(IDataList orig,
                 ISet set,
                 IItem[] items)
Method Detail

getItems

public IItem[] getItems()
Description copied from interface: IDataList
The current list of contained items, having gone through any necessary permutations.
Specified by:
getItems in interface IDataList

copyProperties

public Properties copyProperties()
Description copied from interface: IDataList
The current ISet node.
Specified by:
copyProperties in interface IDataList

setProperty

public void setProperty(String name,
                        String value)
Specified by:
setProperty in interface IDataList

setProperties

public void setProperties(Properties subset)
Batch change of a set of properties. Also changes the changed properties.

getProperty

public String getProperty(String name)
Specified by:
getProperty in interface IDataList

getProperty

public String getProperty(String name,
                          String defaultValue)
Specified by:
getProperty in interface IDataList

setMacroProperty

public void setMacroProperty(String name,
                             String value)
Specified by:
setMacroProperty in interface IDataList

getMacroProperty

public String getMacroProperty(String name)
Specified by:
getMacroProperty in interface IDataList

getMacroProperty

public String getMacroProperty(String name,
                               String defaultValue)
Specified by:
getMacroProperty in interface IDataList

clearMacroProperties

public void clearMacroProperties()
Specified by:
clearMacroProperties in interface IDataList

clearChangedProperties

public void clearChangedProperties()
Clears the internal list of properties that have been changed.

copyChangedProperties

public Properties copyChangedProperties()
Returns a copy of the properties that have been changed since the last call to clearChangedProperties.


Written under the LGPL