org.springframework.roo.classpath.operations.jsr303
Class FieldDetails

java.lang.Object
  extended by org.springframework.roo.classpath.operations.jsr303.FieldDetails
Direct Known Subclasses:
BooleanField, CollectionField, DateField, EmbeddedField, EnumField, ReferenceField, StringOrNumericField, UploadedFileField

public class FieldDetails
extends Object

Base class containing common JSR 303 and JSR 220 properties that can be auto-generated.

Since:
1.0
Author:
Ben Alex

Field Summary
protected  String comment
          Any JavaDoc comments (reserved for future expansion)
 
Constructor Summary
FieldDetails(String physicalTypeIdentifier, org.springframework.roo.model.JavaType fieldType, org.springframework.roo.model.JavaSymbolName fieldName)
          Constructor
 
Method Summary
 void decorateAnnotationsList(List<AnnotationMetadataBuilder> annotations)
           
 List<AnnotationMetadataBuilder> getAnnotations()
           
 String getColumn()
           
 String getComment()
           
 org.springframework.roo.model.JavaSymbolName getFieldName()
           
 org.springframework.roo.model.JavaType getFieldType()
           
 List<AnnotationMetadataBuilder> getInitedAnnotations()
           
 int getModifiers()
           
 String getPhysicalTypeIdentifier()
           
 String getValue()
           
 boolean isNotNull()
           
 boolean isNullRequired()
           
 boolean isUnique()
           
 void setAnnotations(List<AnnotationMetadataBuilder> annotations)
           
 void setColumn(String column)
           
 void setComment(String comment)
           
 void setModifiers(int modifiers)
           
 void setNotNull(boolean notNull)
           
 void setNullRequired(boolean nullRequired)
           
 void setUnique(boolean unique)
           
 void setValue(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

comment

protected String comment
Any JavaDoc comments (reserved for future expansion)

Constructor Detail

FieldDetails

public FieldDetails(String physicalTypeIdentifier,
                    org.springframework.roo.model.JavaType fieldType,
                    org.springframework.roo.model.JavaSymbolName fieldName)
Constructor

Parameters:
physicalTypeIdentifier -
fieldType -
fieldName -
Method Detail

decorateAnnotationsList

public void decorateAnnotationsList(List<AnnotationMetadataBuilder> annotations)

getColumn

public String getColumn()

getComment

public String getComment()

getFieldName

public org.springframework.roo.model.JavaSymbolName getFieldName()

getFieldType

public org.springframework.roo.model.JavaType getFieldType()

getPhysicalTypeIdentifier

public String getPhysicalTypeIdentifier()

getValue

public String getValue()

isNotNull

public boolean isNotNull()

isNullRequired

public boolean isNullRequired()

isUnique

public boolean isUnique()

getModifiers

public int getModifiers()

getAnnotations

public List<AnnotationMetadataBuilder> getAnnotations()

getInitedAnnotations

public List<AnnotationMetadataBuilder> getInitedAnnotations()

setColumn

public void setColumn(String column)

setComment

public void setComment(String comment)

setNotNull

public void setNotNull(boolean notNull)

setNullRequired

public void setNullRequired(boolean nullRequired)

setUnique

public void setUnique(boolean unique)

setValue

public void setValue(String value)

setModifiers

public void setModifiers(int modifiers)

setAnnotations

public void setAnnotations(List<AnnotationMetadataBuilder> annotations)


Copyright © 2009–2015. All rights reserved.