de.dv.sbu.filehandler.ftl.dataprovider.universaldata
Class UData

java.lang.Object
  extended by de.dv.sbu.filehandler.ftl.dataprovider.universaldata.UData
All Implemented Interfaces:
IDataProvider

public class UData
extends java.lang.Object
implements IDataProvider

A universal data structure providing attributes, child lists and child maps.

Author:
Daniel Vogtland

Constructor Summary
UData()
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getAttributes()
          Returns the attributes map.
 java.util.List<UData> getChildList()
          Returns the child list.
 java.util.Map<java.lang.String,UData> getChildMap()
          Returns the child map.
 UData getParent()
          Returns the parent element if this is not the root.
 void init(BuilderConfiguration builderConfiguration)
          Initializes the data provider.
 void init(SourceFileInformation sourceFileInformation)
          Updates the inner state depending on the given file information - if necessary.
 void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
          Sets the attributes.
 void setChildList(java.util.List<UData> childList)
          Sets the child list.
 void setChildMap(java.util.Map<java.lang.String,UData> childMap)
          Sets the child map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UData

public UData()
Method Detail

getAttributes

public java.util.Map<java.lang.String,java.lang.String> getAttributes()
Returns the attributes map.

Returns:
The attributes map.

setAttributes

public void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
Sets the attributes.

Parameters:
attributes - The attributes to set.

getParent

public UData getParent()
Returns the parent element if this is not the root.

Returns:
The parent element.

getChildList

public java.util.List<UData> getChildList()
Returns the child list.

Returns:
The child list.

setChildList

public void setChildList(java.util.List<UData> childList)
Sets the child list.

Parameters:
childList - The child list to set.

getChildMap

public java.util.Map<java.lang.String,UData> getChildMap()
Returns the child map.

Returns:
The child map.

setChildMap

public void setChildMap(java.util.Map<java.lang.String,UData> childMap)
Sets the child map.

Parameters:
childMap - The child map to set.

init

public void init(BuilderConfiguration builderConfiguration)
Initializes the data provider.

Specified by:
init in interface IDataProvider
Parameters:
builderConfiguration - The builder configuration to use.
See Also:
IDataProvider.init(de.dv.sbu.builder.BuilderConfiguration)

init

public void init(SourceFileInformation sourceFileInformation)
Updates the inner state depending on the given file information - if necessary.

Specified by:
init in interface IDataProvider
Parameters:
sourceFileInformation - The current source file information.
See Also:
IDataProvider.init(de.dv.sbu.SourceFileInformation)