public interface GeneratedTypeBuilderBase<T extends GeneratedTypeBuilderBase<T>> extends Type
| Modifier and Type | Method and Description |
|---|---|
AnnotationTypeBuilder |
addAnnotation(String packageName,
String name)
The method creates new AnnotationTypeBuilder containing specified package
name an annotation name.
|
T |
addComment(String comment)
Adds String definition of comment into Method Signature definition.
|
Constant |
addConstant(Type type,
String name,
Object value)
Adds Constant definition and returns
new Constant instance. |
T |
addEnclosingTransferObject(GeneratedTOBuilder genTOBuilder)
Adds new Enclosing Transfer Object
genTOBuilder into
definition of Generated Type
There is no need of specifying of Package Name because enclosing Type is already defined inside Generated Type with specific package name. |
GeneratedTOBuilder |
addEnclosingTransferObject(String name)
Adds new Enclosing Transfer Object into definition of Generated Type and
returns
new Instance of Generated TO Builder. |
EnumBuilder |
addEnumeration(String name)
Adds new Enumeration definition for Generated Type Builder and returns
Enum Builder for specifying all Enum parameters.
|
T |
addImplementsType(Type genType)
Add Type to implements.
|
MethodSignatureBuilder |
addMethod(String name)
Add new Method Signature definition for Generated Type Builder and
returns Method Signature Builder for specifying all Method parameters.
|
GeneratedPropertyBuilder |
addProperty(String name)
Add new Generated Property definition for Generated Transfer Object
Builder and returns Generated Property Builder for specifying Property.
|
boolean |
containsMethod(String methodName)
Checks if GeneratedTypeBuilder contains method with name
methodName |
boolean |
containsProperty(String name)
Check whether GeneratedTOBuilder contains property with name
name |
T |
setAbstract(boolean isAbstract)
Sets the
abstract flag to define Generated Type as
abstract type. |
getFullyQualifiedName, getName, getPackageNameGeneratedTOBuilder addEnclosingTransferObject(String name)
new Instance of Generated TO Builder. null the method SHOULD
throw IllegalArgumentExceptionname - Name of Enclosing Typenew Instance of Generated Type Builder.T addEnclosingTransferObject(GeneratedTOBuilder genTOBuilder)
genTOBuilder into
definition of Generated Type
genTOBuilder of enclosing type is
null the method SHOULD throw
IllegalArgumentExceptiongenTOBuilder - Name of Enclosing TypeT addComment(String comment)
comment - Comment String.AnnotationTypeBuilder addAnnotation(String packageName, String name)
null
references. In case that any of parameters contains null the
method SHOULD thrown IllegalArgumentExceptionpackageName - Package Name of Annotation Typename - Name of Annotation Typenew instance of Annotation Type Builder.T setAbstract(boolean isAbstract)
abstract flag to define Generated Type as
abstract type.isAbstract - abstract flagT addImplementsType(Type genType)
genType - Type to implementtrue if the addition of type is successful.Constant addConstant(Type type, String name, Object value)
new Constant instance. null and the method SHOULD throw
IllegalArgumentException if the contract is broken.type - Constant Typename - Name of Constantvalue - Assigned Valuenew Constant instance.EnumBuilder addEnumeration(String name)
null, if it is
null the method SHOULD throw
IllegalArgumentExceptionname - Enumeration Namenew instance of Enumeration Builder.MethodSignatureBuilder addMethod(String name)
null, if it is null
the method SHOULD throw IllegalArgumentException MethodSignatureBuilder.setAbstract(boolean),
{TypeMemberBuilder#setFinal(boolean)} and
{TypeMemberBuilder#setAccessModifier(boolean)}name - Name of Methodnew instance of Method Signature Builder.boolean containsMethod(String methodName)
methodNamemethodName - is method nameGeneratedPropertyBuilder addProperty(String name)
null, if it is null
the method SHOULD throw IllegalArgumentExceptionname - Name of Propertynew instance of Generated Property Builder.boolean containsProperty(String name)
namename - of property which existance is checkedname exists in list of properties.Copyright © 2014. All rights reserved.