Class AttributeDefinition

java.lang.Object
org.eclipse.persistence.internal.codegen.CodeDefinition
org.eclipse.persistence.internal.codegen.AttributeDefinition
Direct Known Subclasses:
NonreflectiveAttributeDefinition, ReflectiveAttributeDefinition

public abstract class AttributeDefinition extends CodeDefinition
INTERNAL:

Purpose: Model an attribute for code generation purposes.

Since:
TopLink 3.0
  • Field Details

    • initialValue

      protected String initialValue
  • Constructor Details

    • AttributeDefinition

      protected AttributeDefinition()
  • Method Details

    • adjustTypeNames

      protected void adjustTypeNames(Map<String,Set<String>> typeNameMap)
    • getInitialValue

      public String getInitialValue()
    • getTypeName

      protected abstract String getTypeName()
    • putTypeNamesInMap

      protected void putTypeNamesInMap(Map<String,Set<String>> typeNameMap)
      Used for calculating imports. @see org.eclipse.persistence.internal.codegen.ClassDefinition#calculateImports()
    • setInitialValue

      public void setInitialValue(String initialValue)
    • writeBody

      public void writeBody(CodeGenerator generator)
      Description copied from class: CodeDefinition
      Write the code out to the generator's stream.
      Specified by:
      writeBody in class CodeDefinition