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
- Author:
- James Sutherland
-
-
Field Summary
Fields Modifier and Type Field Description protected String
initialValue
-
Fields inherited from class org.eclipse.persistence.internal.codegen.CodeDefinition
accessLevel, comment, JAVA_LANG_PACKAGE_NAME, JAVA_UTIL_PACKAGE_NAME, name, TOPLINK_INDIRECTION_PACKAGE_NAME
-
-
Constructor Summary
Constructors Constructor Description AttributeDefinition()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
adjustTypeNames(Map typeNameMap)
String
getInitialValue()
protected abstract String
getTypeName()
protected void
putTypeNamesInMap(Map typeNameMap)
Used for calculating imports.void
setInitialValue(String initialValue)
void
writeBody(CodeGenerator generator)
Write the code out to the generator's stream.-
Methods inherited from class org.eclipse.persistence.internal.codegen.CodeDefinition
adjustTypeName, getAccessLevel, getComment, getName, parseForTypeNames, putTypeNameInMap, setAccessLevel, setComment, setName, toString, write
-
-
-
-
Field Detail
-
initialValue
protected String initialValue
-
-
Method Detail
-
adjustTypeNames
protected void adjustTypeNames(Map typeNameMap)
-
getInitialValue
public String getInitialValue()
-
getTypeName
protected abstract String getTypeName()
-
putTypeNamesInMap
protected void putTypeNamesInMap(Map 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 classCodeDefinition
-
-