public class CollectionAccessorFacetFactory 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 |
|---|
CollectionAccessorFacetFactory() |
| 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)
Whether (this facet is able to determine that) the supplied
Method represents a collection. |
boolean |
isPropertyAccessor(Method method)
The method way well represent a reference property, but this facet
factory does not have any opinion on the matter.
|
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. |
boolean |
isValuePropertyAccessor(Method method)
The method way well represent a value property, but this facet factory
does not have any opinion on the matter.
|
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 CollectionAccessorFacetFactory()
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)
PropertyOrCollectionIdentifyingFacetFactoryMethod represents a collection.public boolean isPropertyAccessor(Method method)
public boolean isValuePropertyAccessor(Method method)
public void findAndRemoveCollectionAccessors(MethodRemover methodRemover, List<Method> methodListToAppendTo)
PropertyOrCollectionIdentifyingFacetFactoryMethodRemover to remove all collection
accessors, and append them to the supplied methodList.public void findAndRemovePropertyAccessors(MethodRemover methodRemover, List<Method> methodListToAppendTo)
PropertyOrCollectionIdentifyingFacetFactoryMethodRemover to remove all reference property
accessors, and append them to the supplied methodList.Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.