O - public interface PropertySource<O extends JavaSource<O>> extends Property<O>, NamedSource<PropertySource<O>>
Property interface.| Modifier and Type | Method and Description |
|---|---|
MethodSource<O> |
createAccessor()
Create the accessor method.
|
FieldSource<O> |
createField()
Create the storing field.
|
MethodSource<O> |
createMutator()
Create the mutator method.
|
MethodSource<O> |
getAccessor()
Override.
|
FieldSource<O> |
getField()
Override.
|
MethodSource<O> |
getMutator()
Override.
|
PropertySource<O> |
removeAccessor()
Remove the accessor method.
|
PropertySource<O> |
removeField()
Remove the storing field.
|
PropertySource<O> |
removeMutator()
Remove the mutator method.
|
PropertySource<O> |
setAccessible(boolean accessible)
Set whether this property is accessible.
|
PropertySource<O> |
setMutable(boolean mutable)
Set whether this property is mutable.
|
PropertySource<O> |
setType(Class<?> clazz)
|
PropertySource<O> |
setType(JavaType<?> entity)
Set the type of this
Property to the given JavaType> type. |
PropertySource<O> |
setType(String type)
Set the type of this
Property to the given type. |
getType, hasField, isAccessible, isMutablegetAnnotation, getAnnotation, getAnnotations, hasAnnotation, hasAnnotationgetInternalsetNamePropertySource<O> setType(Class<?> clazz)
Property to the given Class type. Attempt to add an import statement to this
Property's base O if required.
It is the caller's responsibility to create new equals(Object) and hashCode() methods,
e.g. by using Refactory.createHashCodeAndEquals(JavaClassSource, FieldSource[])PropertySource<O> setType(String type)
Property to the given type. Attempt to add an import statement to this Property's
base O if required. (Note that the given className must be fully-qualified in order to properly import
required classes)
It is the caller's responsibility to create new equals(Object) and hashCode() methods,
e.g. by using Refactory.createHashCodeAndEquals(JavaClassSource, FieldSource[])PropertySource<O> setType(JavaType<?> entity)
Property to the given JavaType> type. Attempt to add an import statement to
this field's base O if required.
It is the caller's responsibility to create new equals(Object) and hashCode() methods,
e.g. by using Refactory.createHashCodeAndEquals(JavaClassSource, FieldSource[])MethodSource<O> createAccessor()
IllegalStateException - if property name unset or method already existsMethodSource<O> getAccessor()
getAccessor in interface Property<O extends JavaSource<O>>PropertySource<O> removeAccessor()
MethodSource<O> createMutator()
IllegalStateException - if property name unset or method already existsMethodSource<O> getMutator()
getMutator in interface Property<O extends JavaSource<O>>PropertySource<O> removeMutator()
PropertySource<O> setAccessible(boolean accessible)
PropertySource<O> setMutable(boolean mutable)
FieldSource<O> createField()
IllegalStateException - if property name unset or method already existsFieldSource<O> getField()
getField in interface Property<O extends JavaSource<O>>PropertySource<O> removeField()
Copyright © 2017 JBoss by Red Hat. All rights reserved.