public class PropertyM
extends java.lang.Object
| Constructor and Description |
|---|
PropertyM(java.lang.String propertyName,
TypeM propertyType) |
public PropertyM(java.lang.String propertyName,
TypeM propertyType)
public TypeM getPropertyType()
public java.lang.String getPropertyName()
public boolean isField()
public java.lang.String getWithMethodName()
public PropertyM withMethodNamePattern(java.lang.String methodNamePattern)
public boolean isOptionalProperty(OptionalM optional)
public TypeM getBasicPropertyType(OptionalM optional)
optional - the Optional defined in GeneratePojoBuilder.withOptionalProperties()public TypeM getParameterizedBuilderInterfaceType(TypeM interfaceType, OptionalM optional)
public TypeM getOptionalPropertyType(OptionalM optional)
TypeM for an optional property with the property type as it's type parameter or the property type if
that is already an optional type.optional - the Optional defined in GeneratePojoBuilder.withOptionalProperties()TypeM for an optional property with the property type as it's type parameter or the property type
if that is already an optional typepublic ConstructorParameterM getConstructorParameter()
public PropertyM writableVia(ConstructorParameterM constructorParameter)
public boolean isWritableViaConstructor()
public PropertyM writableVia(SetterMethodM setterMethod)
public SetterMethodM getSetterMethod()
public boolean isWritableViaSetterMethod()
public MethodM getGetterMethod()
public boolean isReadableViaGetterMethod()
public PropertyM accessibleVia(FieldAccessM fieldAccess)
public FieldAccessM getFieldAccess()
public boolean isAccessibleViaFieldAccess()
public FactoryMethodParameterM getFactoryMethodParameter()
public PropertyM writableVia(FactoryMethodParameterM param)
public boolean isWritableViaFactoryMethod()
public boolean isWritableViaSetterMethodBy(TypeM accessingClass)
public boolean isWritableViaFieldAccessBy(TypeM accessingClass)
public boolean isWritableBy(TypeM accessingClass)
public boolean isReadableViaGetterMethodBy(TypeM accessingClass)
public boolean isReadableViaFieldAccessBy(TypeM accessingClass)
public java.lang.String getValueFieldName()
public java.lang.String getIsSetFieldName()
public java.lang.String getBuilderFieldName()
public java.lang.String getCallTo(BuildMethodM buildMethod)
public WriteAccess getPreferredWriteAccessFor(TypeM accessingClass)
public boolean matchesAnyOf(java.util.List<PropertyPattern> list)
public java.lang.String toString()
toString in class java.lang.Object