/** * 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) { if(name != null) { return new Element(name).process(); } return null; }
/** * This is used to parse the provided text in to the style that * is required. Manipulation of the text before committing it * ensures that the text adheres to the required style. * * @param text this is the text buffer to acquire the token from * @param off this is the offset in the buffer token starts at * @param len this is the length of the token to be parsed */ @Override protected void parse(char[] text, int off, int len) { if(element || capital) { text[off] = toUpper(text[off]); } capital = true; } }
/** * 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) { if(name != null) { return new Element(name).process(); } return null; }
/** * 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) { if(name != null) { return new Element(name).process(); } return null; }
/** * This is used to parse the provided text in to the style that * is required. Manipulation of the text before committing it * ensures that the text adheres to the required style. * * @param text this is the text buffer to acquire the token from * @param off this is the offset in the buffer token starts at * @param len this is the length of the token to be parsed */ @Override protected void parse(char[] text, int off, int len) { if(element || capital) { text[off] = toUpper(text[off]); } capital = true; } }
/** * This is used to parse the provided text in to the style that * is required. Manipulation of the text before committing it * ensures that the text adheres to the required style. * * @param text this is the text buffer to acquire the token from * @param off this is the offset in the buffer token starts at * @param len this is the length of the token to be parsed */ @Override protected void parse(char[] text, int off, int len) { if(element || capital) { text[off] = toUpper(text[off]); } capital = true; } }