com.github.dandelion.datatables.core.configuration
Class ConfigToken<T>

java.lang.Object
  extended by com.github.dandelion.datatables.core.configuration.ConfigToken<T>

public class ConfigToken<T>
extends Object

Token used to store a configuration, how to read it from properties and how to process it.

Since:
0.10.0
Author:
Thibault Duchateau
See Also:
TableConfig, ColumnConfig, ConfigurationProcessor

Constructor Summary
ConfigToken(String propertyName, ConfigurationProcessor processor)
           
 
Method Summary
 void appendIn(ColumnConfiguration columnConfiguration, char value)
           
 void appendIn(ColumnConfiguration columnConfiguration, String value)
           
 void appendIn(TableConfiguration tableConfiguration, char value)
           
 void appendIn(TableConfiguration tableConfiguration, String value)
           
 ConfigurationProcessor getProcessor()
           
 String getPropertyName()
           
 void setIn(ColumnConfiguration columnConfiguration, T value)
           
 void setIn(TableConfiguration tableConfiguration, T value)
           
 void setIn(T value, HtmlTable table)
           
 void setPropertyName(String propertyName)
           
 String toString()
           
 void toto()
           
 T valueFrom(ColumnConfiguration columnConfiguration)
           
 T valueFrom(HtmlTable table)
           
 T valueFrom(Map<ConfigToken<?>,Object> configurations)
           
 T valueFrom(TableConfiguration tableConfiguration)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigToken

public ConfigToken(String propertyName,
                   ConfigurationProcessor processor)
Method Detail

getPropertyName

public String getPropertyName()

setPropertyName

public void setPropertyName(String propertyName)

getProcessor

public ConfigurationProcessor getProcessor()

valueFrom

public T valueFrom(Map<ConfigToken<?>,Object> configurations)

valueFrom

public T valueFrom(TableConfiguration tableConfiguration)

valueFrom

public T valueFrom(ColumnConfiguration columnConfiguration)

valueFrom

public T valueFrom(HtmlTable table)

setIn

public void setIn(ColumnConfiguration columnConfiguration,
                  T value)

setIn

public void setIn(TableConfiguration tableConfiguration,
                  T value)

appendIn

public void appendIn(TableConfiguration tableConfiguration,
                     String value)

toto

public void toto()

appendIn

public void appendIn(TableConfiguration tableConfiguration,
                     char value)

appendIn

public void appendIn(ColumnConfiguration columnConfiguration,
                     String value)

appendIn

public void appendIn(ColumnConfiguration columnConfiguration,
                     char value)

setIn

public void setIn(T value,
                  HtmlTable table)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013–2014 Dandelion Project. All rights reserved.