public static class JControlModel.PushRule
extends java.lang.Object
A push rule restricts what elements are pushed from the source to the target. By default, if there are no push rules for the specific element type (element is not an instance of selector class of any rules), then the element is pushed.
If element is an instance of selector class of at least one push rule, then the element is pushed only if the element is marked up by at least one push rule with matching selector class.
If none of mark-up and targetParentMarkup is set in the push rule with matching selector class, then node is marked up. If both mark-up and targetParentMarkup is set, then the node is marked up only if node and its parent in the target are marked up respectively. If mark-up or targetParentMarkup is set, the node is marked up if node or its parent in the target are marked up respectively.
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
classPrefix |
protected java.util.regex.Pattern |
markup |
protected java.lang.String |
name |
protected java.lang.Class<?> |
selector |
protected java.util.regex.Pattern |
targetParentMarkup |
Constructor and Description |
---|
JControlModel.PushRule(java.lang.String classPrefix) |
JControlModel.PushRule(java.lang.String classPrefix,
org.w3c.dom.Element element) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClassPrefix() |
java.util.regex.Pattern |
getMarkup() |
java.lang.String |
getName() |
java.lang.Class<?> |
getSelector() |
java.util.regex.Pattern |
getTargetParentMarkup() |
void |
initialize(org.w3c.dom.Element element) |
protected void |
setClassPrefix(java.lang.String classPrefix) |
void |
setMarkup(java.util.regex.Pattern markup) |
void |
setName(java.lang.String name) |
void |
setSelector(java.lang.Class<?> selector) |
void |
setTargetParentMarkup(java.util.regex.Pattern targetParentMarkup) |
protected java.lang.String name
protected java.lang.Class<?> selector
protected java.util.regex.Pattern markup
protected java.util.regex.Pattern targetParentMarkup
protected java.lang.String classPrefix
public JControlModel.PushRule(java.lang.String classPrefix)
public JControlModel.PushRule(java.lang.String classPrefix, org.w3c.dom.Element element)
public void initialize(org.w3c.dom.Element element)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.Class<?> getSelector()
public void setSelector(java.lang.Class<?> selector)
public java.util.regex.Pattern getMarkup()
public void setMarkup(java.util.regex.Pattern markup)
public java.util.regex.Pattern getTargetParentMarkup()
public void setTargetParentMarkup(java.util.regex.Pattern targetParentMarkup)
protected void setClassPrefix(java.lang.String classPrefix)
public java.lang.String getClassPrefix()