Module org.eclipse.persistence.core
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 StringinitialValue-
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 Modifier Constructor Description protectedAttributeDefinition()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidadjustTypeNames(Map<String,Set<String>> typeNameMap)StringgetInitialValue()protected abstract StringgetTypeName()protected voidputTypeNamesInMap(Map<String,Set<String>> typeNameMap)Used for calculating imports.voidsetInitialValue(String initialValue)voidwriteBody(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
-
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:CodeDefinitionWrite the code out to the generator's stream.- Specified by:
writeBodyin classCodeDefinition
-
-