public class PropertyAccessorFacetFactory extends PropertyOrCollectionIdentifyingFacetFactoryAbstract
MethodPrefixBasedFacetFactoryAbstract.OrphanValidationFacetFactory.AbstractProcessContext<T extends FacetHolder>, FacetFactory.ProcessClassContext, FacetFactory.ProcessContextWithMetadataProperties<T extends FacetHolder>, FacetFactory.ProcessMethodContext, FacetFactory.ProcessParameterContextNO_PARAMETERS, NO_PARAMETERS_TYPES| Constructor and Description |
|---|
PropertyAccessorFacetFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
findAndRemoveCollectionAccessors(MethodRemover methodRemover,
List<Method> methodListToAppendTo)
Use the provided
MethodRemover to remove all collection
accessors, and append them to the supplied methodList. |
void |
findAndRemovePropertyAccessors(MethodRemover methodRemover,
List<Method> methodListToAppendTo)
Use the provided
MethodRemover to remove all reference property
accessors, and append them to the supplied methodList. |
boolean |
isCollectionAccessor(Method method)
The method way well represent a collection, but this facet factory does
not have any opinion on the matter.
|
boolean |
isPropertyAccessor(Method method)
Whether (this facet is able to determine that) the supplied
Method represents either a value
property or a reference property. |
boolean |
isPropertyOrCollectionAccessorCandidate(Method method)
Whether (this facet is able to determine that) the supplied
Method possibly represents the accessor of either a
value property, reference property or a collection. |
void |
process(FacetFactory.ProcessMethodContext processMethodContext)
Process the method, and return the correctly setup annotation if present.
|
getCollectionTypeRepository, isCollectionOrArray, setCollectionTypeRegistrygetPrefixes, refineMetaModelValidatorgetFeatureTypes, getSpecificationLoader, process, processParams, setSpecificationLookupclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFeatureTypes, process, processParamspublic PropertyAccessorFacetFactory()
public void process(FacetFactory.ProcessMethodContext processMethodContext)
FacetFactoryprocess in interface FacetFactoryprocess in class FacetFactoryAbstractpublic boolean isPropertyOrCollectionAccessorCandidate(Method method)
PropertyOrCollectionIdentifyingFacetFactoryMethod possibly represents the accessor of either a
value property, reference property or a collection.
For example, if a method name has a prefix of get or alternatively has a prefix of is and returns a boolean, then it would be a candidate.
public boolean isCollectionAccessor(Method method)
public boolean isPropertyAccessor(Method method)
PropertyOrCollectionIdentifyingFacetFactoryMethod represents either a value
property or a reference property.public void findAndRemovePropertyAccessors(MethodRemover methodRemover, List<Method> methodListToAppendTo)
PropertyOrCollectionIdentifyingFacetFactoryMethodRemover to remove all reference property
accessors, and append them to the supplied methodList.public void findAndRemoveCollectionAccessors(MethodRemover methodRemover, List<Method> methodListToAppendTo)
PropertyOrCollectionIdentifyingFacetFactoryMethodRemover to remove all collection
accessors, and append them to the supplied methodList.Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.