public interface PropertyOrCollectionIdentifyingFacetFactory extends FacetFactory
FacetFactory implementation that is able to identify a property or
collection.
For example, a getter method is most commonly used to represent either a property (value or reference) or a collection, with the return type indicating which.
Used by the Java5 Reflector's ProgrammingModel to determine which
facet factories to ask whether a Method represents a property or a
collection.
FacetFactory.AbstractProcessContext<T extends FacetHolder>, FacetFactory.ProcessClassContext, FacetFactory.ProcessContextWithMetadataProperties<T extends FacetHolder>, FacetFactory.ProcessMethodContext, FacetFactory.ProcessParameterContext| 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)
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. |
getFeatureTypes, process, process, processParamsboolean isPropertyOrCollectionAccessorCandidate(Method method)
Method 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.
boolean isPropertyAccessor(Method method)
Method represents either a value
property or a reference property.boolean isCollectionAccessor(Method method)
Method represents a collection.void findAndRemovePropertyAccessors(MethodRemover methodRemover, List<Method> methodListToAppendTo)
MethodRemover to remove all reference property
accessors, and append them to the supplied methodList.void findAndRemoveCollectionAccessors(MethodRemover methodRemover, List<Method> methodListToAppendTo)
MethodRemover to remove all collection
accessors, and append them to the supplied methodList.Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.