| java.lang.Object org.apache.beehive.netui.compiler.model.XmlElementSupport org.apache.beehive.netui.compiler.model.validation.ValidatableField
Method Summary | |
public void | addRule(ValidatorRule rule) | public String | getDisplayName() | public String | getDisplayNameKey() | public String | getPropertyName() | public ValidatorRule[] | getRules() | protected boolean | hasRule(ValidatorRule rule) | void | mergeDependsList(Element element) Merge the rule names with the list in the field element's depends attribute. | void | setDefaultArg0Element(XmlModelWriter xw, String displayName, boolean displayNameIsResource, Element element) Find or create a default arg 0 element not associated with a specific rule and set it to the display name. | public void | setDisplayName(String displayName) | public void | setDisplayNameKey(String displayNameKey) | void | setRuleArg(XmlModelWriter xw, ValidatorRule rule, int argNum, Element element, String altMessageVar) Set up the desired <arg> element and attributes for the given rule. | void | setRuleMessage(XmlModelWriter xw, ValidatorRule rule, Element element) Set up the desired <msg> element and attributes for the given rule. | public void | writeToElement(XmlModelWriter xw, Element element) |
ValidatableField | public ValidatableField(String propertyName, String displayName, String displayNameKey, boolean isValidatorOneOne)(Code) | | |
mergeDependsList | void mergeDependsList(Element element)(Code) | | Merge the rule names with the list in the field element's depends attribute.
|
setDefaultArg0Element | void setDefaultArg0Element(XmlModelWriter xw, String displayName, boolean displayNameIsResource, Element element)(Code) | | Find or create a default arg 0 element not associated with a specific rule and set it to the display name.
|
setDisplayName | public void setDisplayName(String displayName)(Code) | | |
setDisplayNameKey | public void setDisplayNameKey(String displayNameKey)(Code) | | |
setRuleArg | void setRuleArg(XmlModelWriter xw, ValidatorRule rule, int argNum, Element element, String altMessageVar)(Code) | | Set up the desired <arg> element and attributes for the given rule.
Parameters: rule - the rule with the message and arg information to use Parameters: argNum - the position of the arg in the message Parameters: element - a <field> element in the validation XML to update Parameters: altMessageVar - alternative message var |
setRuleMessage | void setRuleMessage(XmlModelWriter xw, ValidatorRule rule, Element element)(Code) | | Set up the desired <msg> element and attributes for the given rule.
Parameters: rule - the rule with the message to use |
Methods inherited from org.apache.beehive.netui.compiler.model.XmlElementSupport | final protected Element findChildElement(XmlModelWriter xw, Element parent, String childName)(Code)(Java Doc) final protected Element findChildElement(XmlModelWriter xw, Element parent, String childName, boolean createIfNotPresent, String[] createOrder)(Code)(Java Doc) final protected Element findChildElement(XmlModelWriter xw, Element parent, String childName, String keyAttributeName, String keyAttributeValue)(Code)(Java Doc) final protected Element findChildElement(XmlModelWriter xw, Element parent, String childName, String keyAttributeName, String keyAttributeValue, boolean createIfNotPresent, String[] createOrder)(Code)(Java Doc) final protected Element findChildElementWithChildText(XmlModelWriter xw, Element parent, String childName, String childSubElementName, String textValue, boolean createIfNotPresent, String[] createOrder)(Code)(Java Doc) protected Element[] getChildElements(Element element, String nameFilter)(Code)(Java Doc) protected String getElementAttribute(Element element, String attrName)(Code)(Java Doc) public static String getTextContent(Element element)(Code)(Java Doc) public static boolean isWhiteSpace(String s)(Code)(Java Doc) public void setComment(String comment)(Code)(Java Doc) final protected void setElementAttribute(Element element, String attrName, String value)(Code)(Java Doc) final protected void setElementAttribute(Element element, String attrName, Boolean value)(Code)(Java Doc) final protected void setElementAttribute(Element element, String attrName, boolean value)(Code)(Java Doc) final protected void setElementAttributeMayBeEmpty(Element element, String attrName, String value)(Code)(Java Doc) abstract protected void writeToElement(XmlModelWriter xw, Element element)(Code)(Java Doc) final public void writeXML(XmlModelWriter xw, Element element)(Code)(Java Doc)
|
|
|