public class SetPropertyFinder extends java.lang.Object implements PropertyFinder
PropertyFinder that represents an arbitrary set of properties.| Constructor and Description |
|---|
SetPropertyFinder() |
SetPropertyFinder(java.util.Set<PropertyTag> values) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(PropertyTag tag) |
PropertyFinder |
copy()
return a new PropertyFinder that represents a copy of the current state of this object.
|
<T> PropertyTag<? extends T> |
find(java.lang.Class<T> clazz,
java.lang.String name)
Locate a registered property by name and class of result.
|
PropertyTag<?> |
find(java.lang.String name)
Locate a registered property by name.
|
PropertyTag<?> |
find(TagFilter fil,
java.lang.String name)
Locate a registered property by name and additional filter.
|
java.util.Set<PropertyTag> |
getProperties()
Get all properties That could be found using this object
|
<T> java.util.Set<PropertyTag<? extends T>> |
getProperties(java.lang.Class<T> clazz)
Get all properties where the property can be assigned to class T
|
boolean |
hasProperty(PropertyTag t)
is the specified property in the set of properties that can be found by this object.
|
PropertyTag<?> |
make(java.lang.String name)
Locate a registered property by name.
|
public SetPropertyFinder()
public SetPropertyFinder(java.util.Set<PropertyTag> values)
public void add(PropertyTag tag)
public PropertyTag<?> make(java.lang.String name) throws InvalidPropertyException
PropertyFindermake in interface PropertyFinderInvalidPropertyExceptionpublic PropertyTag<?> find(java.lang.String name)
PropertyFinderfind in interface PropertyFinderpublic <T> PropertyTag<? extends T> find(java.lang.Class<T> clazz, java.lang.String name)
PropertyFinderfind in interface PropertyFinderT - Target classclazz - Class object for targetname - String name of propertypublic PropertyTag<?> find(TagFilter fil, java.lang.String name)
PropertyFinderPropertyTag if the TagFilter
accepts the result.find in interface PropertyFinderpublic java.util.Set<PropertyTag> getProperties()
PropertyFindergetProperties in interface PropertyFinderpublic boolean hasProperty(PropertyTag t)
PropertyFinderhasProperty in interface PropertyFinderpublic <T> java.util.Set<PropertyTag<? extends T>> getProperties(java.lang.Class<T> clazz)
PropertyFindergetProperties in interface PropertyFinderpublic PropertyFinder copy()
PropertyFindercopy in interface PropertyFinder