Package com.helger.xml.microdom
Interface IMicroDataAware
- All Known Subinterfaces:
IMicroCDATA,IMicroComment,IMicroText
- All Known Implementing Classes:
MicroCDATA,MicroComment,MicroText
public interface IMicroDataAware
This is a helper interface that allows for setting character data. This is
required by text and comment nodes.
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionvoidappendData(char cChar) Append a character to the string.voidappendData(char[] aChars, int nOfs, int nLen) Append characters to the string.voidappendData(CharSequence sData) Append characters to the string.getData()voidprependData(char cChar) Add a character to the beginning of the current data.voidprependData(char[] aChars, int nOfs, int nLen) Add characters to the beginning of the current data.voidprependData(CharSequence sData) Add characters to the beginning of the current data.voidsetData(CharSequence sData) Change the character sequence.
-
Method Details
-
getData
- Returns:
- The currently assigned character data. May not be
null.
-
setData
Change the character sequence. Any previously set characters are lost.- Parameters:
sData- The new character sequence to be set.
-
appendData
Append characters to the string.- Parameters:
sData- The characters to be appended.
-
appendData
Append characters to the string.- Parameters:
aChars- Base character array. May not benull.nOfs- Offset to start copying. Must be ≥ 0.nLen- Number of chars to take. Must be ≥ 0.
-
appendData
void appendData(char cChar) Append a character to the string.- Parameters:
cChar- The character to append
-
prependData
Add characters to the beginning of the current data.- Parameters:
sData- The characters to be added at the front.
-
prependData
Add characters to the beginning of the current data.- Parameters:
aChars- Base character array. May not benull.nOfs- Offset to start copying. Must be ≥ 0.nLen- Number of chars to take. Must be ≥ 0.
-
prependData
void prependData(char cChar) Add a character to the beginning of the current data.- Parameters:
cChar- The character to preprend
-