|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.globalmentor.collections.ReadWriteLockDecorator
com.globalmentor.urf.AbstractURFScope
com.globalmentor.urf.DefaultURFResource
com.globalmentor.urf.AbstractClassTypedURFResource
com.guiseframework.theme.Rule
public class Rule
A rule for specifying part of a theme.
| Field Summary |
|---|
| Fields inherited from interface com.globalmentor.net.Resource |
|---|
URI_PROPERTY_NAME |
| Constructor Summary | |
|---|---|
Rule()
Default constructor. |
|
Rule(java.net.URI referenceURI)
Reference URI constructor. |
|
| Method Summary | |
|---|---|
boolean |
apply(java.lang.Object object,
com.globalmentor.urf.ploop.PLOOPURFProcessor ploopProcessor)
Applies this rule to the given object. |
Template |
getApply()
|
com.globalmentor.urf.select.Selector |
getSelector()
Return this rule's selector, or null if this rule has no selector property or the value is not a Selector. |
void |
setApply(Template apply)
Sets this rule's apply declaration. |
void |
setSelector(com.globalmentor.urf.select.Selector selector)
Sets this rule's selector. |
| Methods inherited from class com.globalmentor.urf.DefaultURFResource |
|---|
addType, addTypeURI, alter, determineLabel, equals, getLabel, getName, getType, getTypes, getTypeURI, getURI, hashCode, hasTypeURI, setLabel, setName, setURI, toString |
| Methods inherited from class com.globalmentor.urf.AbstractURFScope |
|---|
addAllProperties, addProperty, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, getCreationOrder, getNamespaceProperties, getOrder, getParentScope, getProperties, getProperties, getPropertyCount, getPropertyURIs, getPropertyValue, getPropertyValueContext, getPropertyValueContext, getPropertyValueContexts, getPropertyValueCount, getPropertyValueCount, getPropertyValues, getPropertyValues, getPropertyValueURI, getScope, hasNamespaceProperty, hasProperties, hasProperty, hasProperty, hasPropertyValue, hasPropertyValueURI, removeNamespacePropertyValues, removeProperties, removeProperty, removePropertyValue, removePropertyValues, setOrderedPropertyValues, setOrderedPropertyValues, setOrderedPropertyValues, setOrderedPropertyValues, setProperty, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues |
| Methods inherited from class com.globalmentor.collections.ReadWriteLockDecorator |
|---|
readLock, writeLock |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.globalmentor.urf.URFScope |
|---|
addAllProperties, addProperty, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, getCreationOrder, getNamespaceProperties, getOrder, getParentScope, getProperties, getProperties, getPropertyCount, getPropertyURIs, getPropertyValue, getPropertyValueContext, getPropertyValueContext, getPropertyValueContexts, getPropertyValueCount, getPropertyValueCount, getPropertyValues, getPropertyValues, getPropertyValueURI, getScope, hasNamespaceProperty, hasProperties, hasProperty, hasProperty, hasPropertyValue, hasPropertyValueURI, removeNamespacePropertyValues, removeProperties, removeProperty, removePropertyValue, removePropertyValues, setOrderedPropertyValues, setOrderedPropertyValues, setOrderedPropertyValues, setOrderedPropertyValues, setProperty, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues |
| Methods inherited from interface java.util.concurrent.locks.ReadWriteLock |
|---|
readLock, writeLock |
| Constructor Detail |
|---|
public Rule()
public Rule(java.net.URI referenceURI)
referenceURI - The reference URI for the new resource.| Method Detail |
|---|
public com.globalmentor.urf.select.Selector getSelector()
null if this rule has no selector property or the value is not a Selector.
null if this rule has no selector property or the value is not a Selector.Select.SELECTOR_PROPERTY_URIpublic void setSelector(com.globalmentor.urf.select.Selector selector)
selector - This rule's selector, or null if this rule should have no selector property.public Template getApply()
null if this rule has no theme.apply selector or the value is not a Template.public void setApply(Template apply)
apply - This rule's apply declaration, or null if this rule should have no apply declaration.
public boolean apply(java.lang.Object object,
com.globalmentor.urf.ploop.PLOOPURFProcessor ploopProcessor)
throws com.globalmentor.util.DataException,
java.lang.reflect.InvocationTargetException
object - The object on which this rule should be applied.ploopProcessor - The PLOOP processor for setting object properties.
true if the rule selected the given object.
java.lang.NullPointerException - if the given object and/or PLOOP processor is null.
com.globalmentor.util.DataException - if a resource is a Java-typed resource the class of which cannot be found.
com.globalmentor.util.DataException - if a particular value is not an appropriate argument for the corresponding property.
com.globalmentor.util.DataException - If a particular property could not be accessed.
java.lang.reflect.InvocationTargetException - if a resource indicates a Java class the constructor of which throws an exception.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||