dk.lec.idea.plugin.generate
Class FieldElement

java.lang.Object
  |
  +--dk.lec.idea.plugin.generate.FieldElement

public class FieldElement
extends java.lang.Object

This is a field element containing information about the field.


Constructor Summary
FieldElement(java.lang.String name)
          Constructor.
 
Method Summary
 java.lang.String getName()
          Get's the fields name.
 boolean isArray()
          Is this field an array type?
 boolean isCollection()
          Is this field a Collection type (isAssignableFrom java.util.Collection)
 boolean isConstant()
          Is the field a constant type?
 boolean isMap()
          Is this field a Map type (isAssignableFrom java.util.Map)
 boolean isObjectArray()
          Returns true if the field is a non-primitive array type (e.g., String[], Object[]} etc.).
 boolean isPrimitive()
          Is this field a primitive type
 boolean isPrimitiveArray()
          Returns true if the field is a primitive array type (int[], long[], float[] etc.).
 boolean isString()
          Is the field a String type?
 boolean isTransient()
          Does the field have a transient modifier?
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldElement

public FieldElement(java.lang.String name)
Constructor.

Parameters:
name - field name.
Method Detail

getName

public java.lang.String getName()
Get's the fields name.

Returns:
name of this field.

isArray

public boolean isArray()
Is this field an array type?

Returns:
true if this field is an array type.

isCollection

public boolean isCollection()
Is this field a Collection type (isAssignableFrom java.util.Collection)

Returns:
true if this field is a Collection type.

isMap

public boolean isMap()
Is this field a Map type (isAssignableFrom java.util.Map)

Returns:
true if this field is a Map type.

isPrimitive

public boolean isPrimitive()
Is this field a primitive type

Returns:
true if this field is a primitive type.

isConstant

public boolean isConstant()
Is the field a constant type?

Returns:
true if this field is a constant type.

isTransient

public boolean isTransient()
Does the field have a transient modifier?

Returns:
true if the field has a transient modifier.

isString

public boolean isString()
Is the field a String type?

Returns:
true if this field is a String type.

isPrimitiveArray

public boolean isPrimitiveArray()
Returns true if the field is a primitive array type (int[], long[], float[] etc.).

Returns:
true if this field is a primitive array type.

isObjectArray

public boolean isObjectArray()
Returns true if the field is a non-primitive array type (e.g., String[], Object[]} etc.).

Returns:
true if this field is a non-primitive array type.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object