org.springframework.roo.classpath.details
Class AbstractIdentifiableAnnotatedJavaStructureBuilder<T extends IdentifiableAnnotatedJavaStructure>
java.lang.Object
org.springframework.roo.model.AbstractCustomDataAccessorBuilder<T>
org.springframework.roo.classpath.details.AbstractIdentifiableJavaStructureBuilder<T>
org.springframework.roo.classpath.details.AbstractIdentifiableAnnotatedJavaStructureBuilder<T>
- All Implemented Interfaces:
- org.springframework.roo.model.Builder<T>
- Direct Known Subclasses:
- AbstractInvocableMemberMetadataBuilder, AbstractMemberHoldingTypeDetailsBuilder, FieldMetadataBuilder
public abstract class AbstractIdentifiableAnnotatedJavaStructureBuilder<T extends IdentifiableAnnotatedJavaStructure>
- extends AbstractIdentifiableJavaStructureBuilder<T>
Assists in the creation of a Builder for types that eventually
implement IdentifiableAnnotatedJavaStructure.
- Since:
- 1.1
- Author:
- Ben Alex
| Methods inherited from class org.springframework.roo.model.AbstractCustomDataAccessorBuilder |
append, getCustomData, putCustomData, setCustomData |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.springframework.roo.model.Builder |
build |
AbstractIdentifiableAnnotatedJavaStructureBuilder
protected AbstractIdentifiableAnnotatedJavaStructureBuilder(IdentifiableAnnotatedJavaStructure existing)
AbstractIdentifiableAnnotatedJavaStructureBuilder
protected AbstractIdentifiableAnnotatedJavaStructureBuilder(String declaredbyMetadataId)
AbstractIdentifiableAnnotatedJavaStructureBuilder
protected AbstractIdentifiableAnnotatedJavaStructureBuilder(String declaredbyMetadataId,
IdentifiableAnnotatedJavaStructure existing)
addAnnotation
public final boolean addAnnotation(AnnotationMetadata annotationMetadata)
addAnnotation
public final boolean addAnnotation(AnnotationMetadataBuilder annotationBuilder)
buildAnnotations
public final List<AnnotationMetadata> buildAnnotations()
getAnnotations
public final List<AnnotationMetadataBuilder> getAnnotations()
getDeclaredTypeAnnotation
public AnnotationMetadataBuilder getDeclaredTypeAnnotation(org.springframework.roo.model.JavaType type)
- Locates the specified type-level annotation.
- Parameters:
type - to locate (can be null)
- Returns:
- the annotation, or null if not found
- Since:
- 1.2.0
onAddAnnotation
protected void onAddAnnotation(AnnotationMetadataBuilder annotationMetadata)
removeAnnotation
public void removeAnnotation(org.springframework.roo.model.JavaType annotationType)
setAnnotations
public final void setAnnotations(Collection<AnnotationMetadata> annotations)
setAnnotations
public final void setAnnotations(List<AnnotationMetadataBuilder> annotations)
updateTypeAnnotation
public boolean updateTypeAnnotation(AnnotationMetadata annotation)
updateTypeAnnotation
public boolean updateTypeAnnotation(AnnotationMetadata annotation,
Set<org.springframework.roo.model.JavaSymbolName> attributesToDeleteIfPresent)
updateTypeAnnotation
public boolean updateTypeAnnotation(AnnotationMetadataBuilder annotationBuilder)
Copyright © 2009–2015. All rights reserved.