org.springframework.roo.classpath.details
Class AbstractIdentifiableAnnotatedJavaStructureBuilder<T extends IdentifiableAnnotatedJavaStructure>

java.lang.Object
  extended by org.springframework.roo.model.AbstractCustomDataAccessorBuilder<T>
      extended by org.springframework.roo.classpath.details.AbstractIdentifiableJavaStructureBuilder<T>
          extended by 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

Constructor Summary
protected AbstractIdentifiableAnnotatedJavaStructureBuilder(IdentifiableAnnotatedJavaStructure existing)
           
protected AbstractIdentifiableAnnotatedJavaStructureBuilder(String declaredbyMetadataId)
           
protected AbstractIdentifiableAnnotatedJavaStructureBuilder(String declaredbyMetadataId, IdentifiableAnnotatedJavaStructure existing)
           
 
Method Summary
 boolean addAnnotation(AnnotationMetadata annotationMetadata)
           
 boolean addAnnotation(AnnotationMetadataBuilder annotationBuilder)
           
 List<AnnotationMetadata> buildAnnotations()
           
 List<AnnotationMetadataBuilder> getAnnotations()
           
 AnnotationMetadataBuilder getDeclaredTypeAnnotation(org.springframework.roo.model.JavaType type)
          Locates the specified type-level annotation.
protected  void onAddAnnotation(AnnotationMetadataBuilder annotationMetadata)
           
 void removeAnnotation(org.springframework.roo.model.JavaType annotationType)
           
 void setAnnotations(Collection<AnnotationMetadata> annotations)
           
 void setAnnotations(List<AnnotationMetadataBuilder> annotations)
           
 boolean updateTypeAnnotation(AnnotationMetadata annotation)
           
 boolean updateTypeAnnotation(AnnotationMetadataBuilder annotationBuilder)
           
 boolean updateTypeAnnotation(AnnotationMetadata annotation, Set<org.springframework.roo.model.JavaSymbolName> attributesToDeleteIfPresent)
           
 
Methods inherited from class org.springframework.roo.classpath.details.AbstractIdentifiableJavaStructureBuilder
getDeclaredByMetadataId, getModifier, setModifier
 
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
 

Constructor Detail

AbstractIdentifiableAnnotatedJavaStructureBuilder

protected AbstractIdentifiableAnnotatedJavaStructureBuilder(IdentifiableAnnotatedJavaStructure existing)

AbstractIdentifiableAnnotatedJavaStructureBuilder

protected AbstractIdentifiableAnnotatedJavaStructureBuilder(String declaredbyMetadataId)

AbstractIdentifiableAnnotatedJavaStructureBuilder

protected AbstractIdentifiableAnnotatedJavaStructureBuilder(String declaredbyMetadataId,
                                                            IdentifiableAnnotatedJavaStructure existing)
Method Detail

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.