Package org.simpleframework.xml.stream
Class CamelCaseBuilder.Element
java.lang.Object
org.simpleframework.xml.stream.Splitter
org.simpleframework.xml.stream.CamelCaseBuilder.Attribute
org.simpleframework.xml.stream.CamelCaseBuilder.Element
- Enclosing class:
CamelCaseBuilder
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
FieldsModifier and TypeFieldDescriptionprivate boolean
This determines whether to capitalise a split token -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.CamelCaseBuilder.Attribute
commit
-
Field Details
-
capital
private boolean capitalThis determines whether to capitalise a split token
-
-
Constructor Details
-
Element
Constructor for theElement
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.- Overrides:
parse
in classCamelCaseBuilder.Attribute
- Parameters:
text
- this is the text buffer to acquire the token fromoff
- this is the offset in the buffer token starts atlen
- this is the length of the token to be parsed
-