Top Description Fields Constructors Methods
org.eclipse.persistence.internal.codegen

public abstract Class AttributeDefinition

extends CodeDefinition
Class Inheritance
Known Direct Subclasses
org.eclipse.persistence.internal.codegen.NonreflectiveAttributeDefinition, org.eclipse.persistence.internal.codegen.ReflectiveAttributeDefinition
Imports
java.util.*

INTERNAL:

Purpose: Model an attribute for code generation purposes.

Author
James Sutherland
Since
TopLink 3.0

Field Summary

Modifier and TypeField and Description
protected String
Inherited from org.eclipse.persistence.internal.codegen.CodeDefinition:
accessLevelcommentJAVA_LANG_PACKAGE_NAMEJAVA_UTIL_PACKAGE_NAMEnameTOPLINK_INDIRECTION_PACKAGE_NAME

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
private void
adjustInitialValue(Map<String, Set<String>> typeNameMap)

Parses the initial value, removing the package name for each type (and adding the appropriate import) if the type is unambiguous.

protected void
public String
protected abstract String
protected void
putTypeNamesInMap(Map<String, Set<String>> typeNameMap)

Used for calculating imports.

public void
setInitialValue(String initialValue)

public void
writeBody(CodeGenerator generator)

Implements abstract org.eclipse.persistence.internal.codegen.CodeDefinition.writeBody.

Write the code out to the generator's stream.
Inherited from org.eclipse.persistence.internal.codegen.CodeDefinition:
adjustTypeNamegetAccessLevelgetCommentgetNameparseForTypeNamesputTypeNameInMapsetAccessLevelsetCommentsetNametoStringwrite

Field Detail

initialValueback to summary
protected String initialValue

Constructor Detail

AttributeDefinitionback to summary
protected AttributeDefinition()

Method Detail

adjustInitialValueback to summary
private void adjustInitialValue(Map<String, Set<String>> typeNameMap)

Parses the initial value, removing the package name for each type (and adding the appropriate import) if the type is unambiguous.

adjustTypeNamesback to summary
protected void adjustTypeNames(Map<String, Set<String>> typeNameMap)
getInitialValueback to summary
public String getInitialValue()
getTypeNameback to summary
protected abstract String getTypeName()
putTypeNamesInMapback to summary
protected void putTypeNamesInMap(Map<String, Set<String>> typeNameMap)

Used for calculating imports. @see org.eclipse.persistence.internal.codegen.ClassDefinition#calculateImports()

setInitialValueback to summary
public void setInitialValue(String initialValue)
writeBodyback to summary
public void writeBody(CodeGenerator generator)

Implements abstract org.eclipse.persistence.internal.codegen.CodeDefinition.writeBody.

Doc from org.eclipse.persistence.internal.codegen.CodeDefinition.writeBody.

Write the code out to the generator's stream.

Annotations
@Override