Class CamelCaseBuilder.Attribute

java.lang.Object
org.simpleframework.xml.stream.Splitter
org.simpleframework.xml.stream.CamelCaseBuilder.Attribute
Direct Known Subclasses:
CamelCaseBuilder.Element
Enclosing class:
CamelCaseBuilder

private class CamelCaseBuilder.Attribute extends Splitter
This is used to parse the style for this builder. This takes all of the words split from the original string and builds all of the processed tokens for the styles elements and attributes.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private boolean
    This determines whether to capitalise a split token

    Fields inherited from class org.simpleframework.xml.stream.Splitter

    builder, count, off, text
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Attribute(String source)
    Constructor for the Attribute object.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    commit(char[] text, int off, int len)
    This is used to commit the provided text in to the style that is required.
    protected void
    parse(char[] text, int off, int len)
    This is used to parse the provided text in to the style that is required.

    Methods inherited from class org.simpleframework.xml.stream.Splitter

    process, toLower, toUpper

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • capital

      private boolean capital
      This determines whether to capitalise a split token
  • Constructor Details

    • Attribute

      private Attribute(String source)
      Constructor for the Attribute object. This will take the original string and parse it such that all of the words are emitted and used to build the styled token.
      Parameters:
      source - this is the original string to be parsed
  • Method Details

    • parse

      protected void parse(char[] text, int off, int len)
      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.
      Specified by:
      parse in class Splitter
      Parameters:
      text - this is the text buffer to acquire the token from
      off - this is the offset in the buffer token starts at
      len - this is the length of the token to be parsed
    • commit

      protected void commit(char[] text, int off, int len)
      This is used to commit the provided text in to the style that is required. Committing the text to the buffer assembles the tokens resulting in a complete token.
      Specified by:
      commit in class Splitter
      Parameters:
      text - this is the text buffer to acquire the token from
      off - this is the offset in the buffer token starts at
      len - this is the length of the token to be committed