| java.lang.Object org.apache.beehive.netui.compiler.model.XmlElementSupport
All known Subclasses: org.apache.beehive.netui.compiler.model.validation.ValidationModel, org.apache.beehive.netui.compiler.model.StrutsElementSupport, org.apache.beehive.netui.compiler.model.validation.ValidatableField, org.apache.beehive.netui.compiler.model.validation.ValidatableEntity, org.apache.beehive.netui.compiler.model.validation.LocaleSet,
XmlElementSupport | abstract public class XmlElementSupport (Code) | | |
Method Summary | |
final protected Element | findChildElement(XmlModelWriter xw, Element parent, String childName) | final protected Element | findChildElement(XmlModelWriter xw, Element parent, String childName, boolean createIfNotPresent, String[] createOrder) | final protected Element | findChildElement(XmlModelWriter xw, Element parent, String childName, String keyAttributeName, String keyAttributeValue) | final protected Element | findChildElement(XmlModelWriter xw, Element parent, String childName, String keyAttributeName, String keyAttributeValue, boolean createIfNotPresent, String[] createOrder) Find a child element by name, and optionally add it if it isn't present.
Parameters: xw - the XmlModelWriter Parameters: parent - the parent element Parameters: childName - the name of the desired child element Parameters: keyAttributeName - the name of a key attribute in the child element by which to restrict the search.May be null , in which case there is no restriction. Parameters: keyAttributeValue - the value of a key attribute in the child element by which to restrict the search.Only used if keyAttributeName is not null . | final protected Element | findChildElementWithChildText(XmlModelWriter xw, Element parent, String childName, String childSubElementName, String textValue, boolean createIfNotPresent, String[] createOrder) | protected Element[] | getChildElements(Element element, String nameFilter) | protected String | getElementAttribute(Element element, String attrName) Gets the attribute value, or null (unlike Element.getAttribute ). | public static String | getTextContent(Element element) | public static boolean | isWhiteSpace(String s) | public void | setComment(String comment) | final protected void | setElementAttribute(Element element, String attrName, String value) | final protected void | setElementAttribute(Element element, String attrName, Boolean value) | final protected void | setElementAttribute(Element element, String attrName, boolean value) | final protected void | setElementAttributeMayBeEmpty(Element element, String attrName, String value) | abstract protected void | writeToElement(XmlModelWriter xw, Element element) | final public void | writeXML(XmlModelWriter xw, Element element) |
findChildElement | final protected Element findChildElement(XmlModelWriter xw, Element parent, String childName, String keyAttributeName, String keyAttributeValue, boolean createIfNotPresent, String[] createOrder)(Code) | | Find a child element by name, and optionally add it if it isn't present.
Parameters: xw - the XmlModelWriter Parameters: parent - the parent element Parameters: childName - the name of the desired child element Parameters: keyAttributeName - the name of a key attribute in the child element by which to restrict the search.May be null , in which case there is no restriction. Parameters: keyAttributeValue - the value of a key attribute in the child element by which to restrict the search.Only used if keyAttributeName is not null . This value may benull , which means that the target node must have a null value. Parameters: createIfNotPresent - if true , the node will be created if it's not present. Parameters: createOrder - an array of Strings that describes the order of insertion. May be null , inwhich case a newly-created node is appended to the parent. the node. |
getElementAttribute | protected String getElementAttribute(Element element, String attrName)(Code) | | Gets the attribute value, or null (unlike Element.getAttribute ).
|
isWhiteSpace | public static boolean isWhiteSpace(String s)(Code) | | |
setElementAttribute | final protected void setElementAttribute(Element element, String attrName, boolean value)(Code) | | |
setElementAttributeMayBeEmpty | final protected void setElementAttributeMayBeEmpty(Element element, String attrName, String value)(Code) | | |
|
|