org.specrunner.plugins.core.objects
Class AbstractPluginObject.Field

java.lang.Object
  extended by org.specrunner.plugins.core.objects.AbstractPluginObject.Field
Enclosing class:
AbstractPluginObject

public static class AbstractPluginObject.Field
extends Object

Hold column information.

Author:
Thiago Santos

Constructor Summary
AbstractPluginObject.Field()
           
 
Method Summary
 String[] getArgs()
          The converter arguments.
 String getComparator()
          Gets the comparator.
 String[] getConverters()
          Get converters.
 String getDef()
          Get default value.
 String getFieldName()
          Gets the field column name.
 String getFullName()
          Get full name of field.
 int getIndex()
          Get index.
 String[] getNames()
          Gets names.
 Class<?> getSpecificType()
          Get the type of field.
 Class<?>[] getTypes()
          Get types.
 boolean isIgnore()
          Ignore the column with this mark.
 boolean isReference()
          Get if the field is a key value.
 void setArgs(String[] args)
          Set converter arguments.
 void setComparator(String comparator)
          Sets the comparator.
 void setConverters(String[] converters)
          Set converters.
 void setDef(String def)
          Sets the default.
 void setFieldName(String fieldName)
          The column name.
 void setIgnore(boolean ignore)
          Sets to ignore a column.
 void setIndex(int index)
          Sets the index.
 void setNames(String[] names)
          Sets the name.
 void setReference(boolean reference)
          Set if the field is a key part.
 void setTypes(Class<?>[] types)
          Set types.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractPluginObject.Field

public AbstractPluginObject.Field()
Method Detail

getIndex

public int getIndex()
Get index.

Returns:
The index.

setIndex

public void setIndex(int index)
Sets the index.

Parameters:
index - The index.

isIgnore

public boolean isIgnore()
Ignore the column with this mark.

Returns:
true, to ignore, false, otherwise.

setIgnore

public void setIgnore(boolean ignore)
Sets to ignore a column.

Parameters:
ignore - The ignore mark.

isReference

public boolean isReference()
Get if the field is a key value.

Returns:
true, if is part of key, false, otherwise.

setReference

public void setReference(boolean reference)
Set if the field is a key part.

Parameters:
reference - The reference status.

getFieldName

public String getFieldName()
Gets the field column name.

Returns:
The field column name.

setFieldName

public void setFieldName(String fieldName)
The column name.

Parameters:
fieldName - The column name.

getNames

public String[] getNames()
Gets names.

Returns:
The names.

setNames

public void setNames(String[] names)
Sets the name.

Parameters:
names - The names.

getTypes

public Class<?>[] getTypes()
Get types.

Returns:
The types.

setTypes

public void setTypes(Class<?>[] types)
Set types.

Parameters:
types - The types.

getDef

public String getDef()
Get default value.

Returns:
The default.

setDef

public void setDef(String def)
Sets the default.

Parameters:
def - The default.

getConverters

public String[] getConverters()
Get converters.

Returns:
The converters.

setConverters

public void setConverters(String[] converters)
Set converters.

Parameters:
converters - The converters.

getArgs

public String[] getArgs()
The converter arguments.

Returns:
The arguments.

setArgs

public void setArgs(String[] args)
Set converter arguments.

Parameters:
args - The arguments.

getComparator

public String getComparator()
Gets the comparator.

Returns:
The comparator.

setComparator

public void setComparator(String comparator)
Sets the comparator.

Parameters:
comparator - The comparator.

getFullName

public String getFullName()
Get full name of field.

Returns:
The name.

getSpecificType

public Class<?> getSpecificType()
Get the type of field.

Returns:
The type.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014. All rights reserved.