|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.repository.Selector
Copyright SAP AG 2004
PropertySelectorItem instances. Its type constants define
how selection instances are combined.| Field Summary | |
static com.sapportals.wcm.repository.Selector.Type |
SELECTOR_AND
|
static com.sapportals.wcm.repository.Selector.Type |
SELECTOR_OR
|
static int |
SELECTOR_TYPE_AND
|
static int |
SELECTOR_TYPE_OR
|
| Constructor Summary | |
Selector()
standard constructor - will create a new class instance with selectortype SELECTOR_AND. |
|
Selector(com.sapportals.wcm.repository.Selector.Type type)
creates a new class instance with the specified selectortype. |
|
| Method Summary | |
void |
addSelector(boolean include,
IProperty property)
creates a new PropertySelectorItem using the specified parameters |
void |
addSelector(PropertySelectorItem selector)
|
void |
addSelector(Selector selector)
|
boolean |
check(IPropertyMap properties)
checks, if the provided map of properties will pass all PropertySelectorItem
instances defined within this class. |
PropertyNameList |
getPropertyNameList()
|
com.sapportals.wcm.repository.Selector.Type |
getSelectorType()
|
boolean |
isEmpty()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int SELECTOR_TYPE_AND
public static final int SELECTOR_TYPE_OR
public static final com.sapportals.wcm.repository.Selector.Type SELECTOR_AND
public static final com.sapportals.wcm.repository.Selector.Type SELECTOR_OR
| Constructor Detail |
public Selector(com.sapportals.wcm.repository.Selector.Type type)
public Selector()
SELECTOR_AND.
| Method Detail |
public void addSelector(boolean include,
IProperty property)
PropertySelectorItem using the specified parameters
include - the include mode for the PropertySelectorItemproperty - the property for the PropertySelectorItem
- must not be nullpublic void addSelector(PropertySelectorItem selector)
selector - is added to the list of selectors - must not be nullpublic void addSelector(Selector selector)
selector - is added to the list of selectors - must not be nullpublic com.sapportals.wcm.repository.Selector.Type getSelectorType()
public boolean isEmpty()
Selector or PropertySelectorItem
has been added to this class. If not, the method will return true.public PropertyNameList getPropertyNameList()
PropertySelectorItem instances that have been added to this instance.
Also the Property names of PropertySelectorItem instances that are included
in the Selector instances added to this instance are added. The current
implmentation does not check for duplicates within the list. nullpublic String toString()
public boolean check(IPropertyMap properties)
throws ResourceException
PropertySelectorItem
instances defined within this class. Depending on the combination of these instances and
other Selector instances within this class, not all tests will be executed
to calculate the result of this method. If, for example, already the first test fails and
the Selector.Type of this class is set to SELECTOR_AND, the
method will return false without evaluating further properties
properties - the properties to check, must not be null, but might be empty
ResourceException
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||