Lines 92-98
Link Here
|
92 |
} |
92 |
} |
93 |
|
93 |
|
94 |
private static final String ATT_NAME = "name"; |
94 |
private static final String ATT_NAME = "name"; |
95 |
private static final String ELEMENT = "ps-setup-code"; |
|
|
96 |
|
95 |
|
97 |
/** {@inheritDoc} */ |
96 |
/** {@inheritDoc} */ |
98 |
public void toSAX(ContentHandler handler) throws SAXException { |
97 |
public void toSAX(ContentHandler handler) throws SAXException { |
Lines 100-106
Link Here
|
100 |
if (name != null && name.length() > 0) { |
99 |
if (name != null && name.length() > 0) { |
101 |
atts.addAttribute(null, ATT_NAME, ATT_NAME, "CDATA", name); |
100 |
atts.addAttribute(null, ATT_NAME, ATT_NAME, "CDATA", name); |
102 |
} |
101 |
} |
103 |
handler.startElement(CATEGORY, ELEMENT, ELEMENT, atts); |
102 |
handler.startElement(CATEGORY, PSSetupCodeElement.ELEMENT, PSSetupCodeElement.ELEMENT, atts); |
104 |
if (content != null && content.length() > 0) { |
103 |
if (content != null && content.length() > 0) { |
105 |
char[] chars = content.toCharArray(); |
104 |
char[] chars = content.toCharArray(); |
106 |
handler.characters(chars, 0, chars.length); |
105 |
handler.characters(chars, 0, chars.length); |