/** * This is used to generate the XML attribute representation of * the specified name. Attribute names should ensure to keep the * uniqueness of the name such that two different names will * be styled in to two different strings. * * @param name this is the attribute name that is to be styled * * @return this returns the styled name of the XML attribute */ public String getAttribute(String name) { return builder.getAttribute(name); }
/** * This is used to generate the XML element representation of * the specified name. Element names should ensure to keep the * uniqueness of the name such that two different names will * be styled in to two different strings. * * @param name this is the element name that is to be styled * * @return this returns the styled name of the XML element */ public String getElement(String name) { return builder.getElement(name); }
/** * This is used to set the attribute values within this builder. * Overriding the attribute values ensures that the default * algorithm does not need to determine each of the values. It * allows special behaviour that the user may require for XML. * * @param name the name of the XML attribute to be overridden * @param value the value that is to be used for that attribute */ public void setAttribute(String name, String value) { builder.setAttribute(name, value); }
/** * Constructor for the <code>HyphenStyle</code> object. This is * used to create a style that will hyphenate XML attributes * and elements allowing a consistent format for generated XML. */ public HyphenStyle() { this.style = new HyphenBuilder(); this.builder = new Builder(style); }
/** * This is used to set the element values within this builder. * Overriding the element values ensures that the default * algorithm does not need to determine each of the values. It * allows special behaviour that the user may require for XML. * * @param name the name of the XML element to be overridden * @param value the value that is to be used for that element */ public void setElement(String name, String value) { builder.setElement(name, value); } }
/** * Constructor for the <code>CamelCaseStyle</code> object. This * is used to create a style that will create camel case XML * attributes and elements allowing a consistent format for * generated XML. Both the attribute an elements are configurable. * * @param element if true the element will start as upper case * @param attribute if true the attribute starts as upper case */ public CamelCaseStyle(boolean element, boolean attribute) { this.style = new CamelCaseBuilder(element, attribute); this.builder = new Builder(style); }
/** * This is used to set the element values within this builder. * Overriding the element values ensures that the default * algorithm does not need to determine each of the values. It * allows special behaviour that the user may require for XML. * * @param name the name of the XML element to be overridden * @param value the value that is to be used for that element */ public void setElement(String name, String value) { builder.setElement(name, value); } }
/** * This is used to set the attribute values within this builder. * Overriding the attribute values ensures that the default * algorithm does not need to determine each of the values. It * allows special behaviour that the user may require for XML. * * @param name the name of the XML attribute to be overridden * @param value the value that is to be used for that attribute */ public void setAttribute(String name, String value) { builder.setAttribute(name, value); }
/** * Constructor for the <code>HyphenStyle</code> object. This is * used to create a style that will hyphenate XML attributes * and elements allowing a consistent format for generated XML. */ public HyphenStyle() { this.style = new HyphenBuilder(); this.builder = new Builder(style); }
/** * This is used to generate the XML attribute representation of * the specified name. Attribute names should ensure to keep the * uniqueness of the name such that two different names will * be styled in to two different strings. * * @param name this is the attribute name that is to be styled * * @return this returns the styled name of the XML attribute */ public String getAttribute(String name) { return builder.getAttribute(name); }
/** * This is used to generate the XML element representation of * the specified name. Element names should ensure to keep the * uniqueness of the name such that two different names will * be styled in to two different strings. * * @param name this is the element name that is to be styled * * @return this returns the styled name of the XML element */ public String getElement(String name) { return builder.getElement(name); }
/** * This is used to set the element values within this builder. * Overriding the element values ensures that the default * algorithm does not need to determine each of the values. It * allows special behaviour that the user may require for XML. * * @param name the name of the XML element to be overridden * @param value the value that is to be used for that element */ public void setElement(String name, String value) { builder.setElement(name, value); } }
/** * This is used to set the attribute values within this builder. * Overriding the attribute values ensures that the default * algorithm does not need to determine each of the values. It * allows special behaviour that the user may require for XML. * * @param name the name of the XML attribute to be overridden * @param value the value that is to be used for that attribute */ public void setAttribute(String name, String value) { builder.setAttribute(name, value); }
/** * Constructor for the <code>HyphenStyle</code> object. This is * used to create a style that will hyphenate XML attributes * and elements allowing a consistent format for generated XML. */ public HyphenStyle() { this.style = new HyphenBuilder(); this.builder = new Builder(style); }
/** * This is used to generate the XML attribute representation of * the specified name. Attribute names should ensure to keep the * uniqueness of the name such that two different names will * be styled in to two different strings. * * @param name this is the attribute name that is to be styled * * @return this returns the styled name of the XML attribute */ public String getAttribute(String name) { return builder.getAttribute(name); }
/** * This is used to generate the XML element representation of * the specified name. Element names should ensure to keep the * uniqueness of the name such that two different names will * be styled in to two different strings. * * @param name this is the element name that is to be styled * * @return this returns the styled name of the XML element */ public String getElement(String name) { return builder.getElement(name); }
/** * This is used to set the element values within this builder. * Overriding the element values ensures that the default * algorithm does not need to determine each of the values. It * allows special behaviour that the user may require for XML. * * @param name the name of the XML element to be overridden * @param value the value that is to be used for that element */ public void setElement(String name, String value) { builder.setElement(name, value); } }
/** * This is used to set the attribute values within this builder. * Overriding the attribute values ensures that the default * algorithm does not need to determine each of the values. It * allows special behaviour that the user may require for XML. * * @param name the name of the XML attribute to be overridden * @param value the value that is to be used for that attribute */ public void setAttribute(String name, String value) { builder.setAttribute(name, value); }
/** * Constructor for the <code>CamelCaseStyle</code> object. This * is used to create a style that will create camel case XML * attributes and elements allowing a consistent format for * generated XML. Both the attribute an elements are configurable. * * @param element if true the element will start as upper case * @param attribute if true the attribute starts as upper case */ public CamelCaseStyle(boolean element, boolean attribute) { this.style = new CamelCaseBuilder(element, attribute); this.builder = new Builder(style); }
/** * This is used to generate the XML attribute representation of * the specified name. Attribute names should ensure to keep the * uniqueness of the name such that two different names will * be styled in to two different strings. * * @param name this is the attribute name that is to be styled * * @return this returns the styled name of the XML attribute */ public String getAttribute(String name) { return builder.getAttribute(name); }