Community
Participate
Working Groups
//Do not persist white space (e.g. formatting characters)
// between elements:
if (anyElementCharacters.trim().length() > 0) {
((CommonBaseEvent) (object)).addAny(XmlUtility.normalize(anyElementCharacters));
((CommonBaseEvent) (object)).addAny(anyElementCharacters.trim());
}
if(eventListener != null){
String currentAnyElement = otherSituation.getAny();
if ((currentAnyElement != null) && (currentAnyElement.trim().length() > 0)) {
otherSituation.setAny(currentAnyElement.concat(XmlUtility.normalize(anyElementCharacters)));
otherSituation.setAny(currentAnyElement.concat(anyElementCharacters));
else {
otherSituation.setAny(XmlUtility.normalize(anyElementCharacters));
otherSituation.setAny(anyElementCharacters.trim());
buffer.append("\t\t\t");
// Do NOT normalize since this string is assumed to be a
// Normalizing since this string might not always be
// valid XML fragment:
// a valid XML fragment: Bugzilla 207806
buffer.append(anyData);
buffer.append(XmlUtility.normalize(anyData));
if (format) {
buffer.append("\t");
buffer.append(anyElement);
buffer.append(XmlUtility.normalize(anyElement));
//Do not persist white space (e.g. formatting characters) between elements:
if (charactersBuffer.toString().trim().length() > 0) {
commonBaseEvent.addAny(XmlUtility.normalize(charactersBuffer.toString()));
commonBaseEvent.addAny(charactersBuffer.toString().trim());
otherSituation.setAny(XmlUtility.normalize(charactersBuffer.toString()));
otherSituation.setAny(charactersBuffer.toString().trim());
((Situation)(parsedElements.get(parsedElements.size() - 1))).setSituationType(otherSituation);