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 java.lang.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 Constructor Description AttributeDefinition()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidadjustTypeNames(java.util.Map typeNameMap)java.lang.StringgetInitialValue()protected abstract java.lang.StringgetTypeName()protected voidputTypeNamesInMap(java.util.Map typeNameMap)Used for calculating imports.voidsetInitialValue(java.lang.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
-
-
-
-
Method Detail
-
adjustTypeNames
protected void adjustTypeNames(java.util.Map typeNameMap)
-
getInitialValue
public java.lang.String getInitialValue()
-
getTypeName
protected abstract java.lang.String getTypeName()
-
putTypeNamesInMap
protected void putTypeNamesInMap(java.util.Map typeNameMap)
Used for calculating imports. @see org.eclipse.persistence.internal.codegen.ClassDefinition#calculateImports()
-
setInitialValue
public void setInitialValue(java.lang.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
-
-