@Override public void characters(char [] ch, int start, int length) { if (text == null && mixedTargets.peek() != null) { text = new StringBuffer(); } if (text != null) { text.append(ch, start, length); } }
@Override public void characters(char [] ch, int start, int length) { if (text == null && mixedTargets.peek() != null) { text = new StringBuffer(); } if (text != null) { text.append(ch, start, length); } }
public void startCDATA() { if (mixedTargets.peek() != null) { if (text != null) { handleMixedText(); } text = new StringBuffer(); } }
public void startCDATA() { if (mixedTargets.peek() != null) { if (text != null) { handleMixedText(); } text = new StringBuffer(); } }
public void comment(char[] ch, int start, int length) // throws SAXException { if (mixedTargets.peek() != null) { if (text != null) { handleMixedText(); } handleComment(new String(ch, start, length)); } }
@Override protected void setAttribValue(EObject object, String name, String value) { if (IDREF_ATTRIB.equals(name) && (!recordUnknownFeature || types.peek() != UNKNOWN_FEATURE_TYPE)) { handleProxy((InternalEObject) object, '#' + value); } else { super.setAttribValue(object, name, value); } }
@Override public void processingInstruction(String target, String data) { if (mixedTargets.peek() != null) { if (text != null) { handleMixedText(); } handleProcessingInstruction(target, data); } }
public void comment(char[] ch, int start, int length) // throws SAXException { if (mixedTargets.peek() != null) { if (text != null) { handleMixedText(); } handleComment(new String(ch, start, length)); } }
protected void handleCDATA() { FeatureMap featureMap = mixedTargets.peek(); featureMap.add(XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__CDATA, text.toString()); text = null; }
protected void handleMixedText() { FeatureMap featureMap = mixedTargets.peek(); featureMap.add(XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__TEXT, text.toString()); text = null; }
/** * Returns true if there was an error in the last XML element; false otherwise. */ protected boolean isError() { return types.peek() == ERROR_TYPE; }
protected void handleProcessingInstruction(String target, String data) { FeatureMap featureMap = mixedTargets.peek(); FeatureMapUtil.addProcessingInstruction(featureMap, target, data); text = null; }
protected void handleComment(String comment) { FeatureMap featureMap = mixedTargets.peek(); featureMap.add(XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__COMMENT, comment); text = null; } protected void handleMixedText()
@Override public void processingInstruction(String target, String data) { if (mixedTargets.peek() != null) { if (text != null) { handleMixedText(); } handleProcessingInstruction(target, data); } }
@Override public void endElement(String uri, String localName, String name) { if (types.peek() == ECORE_EXTENSION_TYPE) { elements.pop(); types.pop(); helper.popContext(); mixedTargets.pop(); } else { super.endElement(uri, localName, name); } }
protected void handleComment(String comment) { FeatureMap featureMap = mixedTargets.peek(); featureMap.add(XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__COMMENT, comment); text = null; } protected void handleMixedText()
public void endCDATA() { if (mixedTargets.peek() != null && text != null) { handleCDATA(); } }
@Override protected void setAttribValue(EObject object, String name, String value) { if (IDREF_ATTRIB.equals(name) && (!recordUnknownFeature || types.peek() != UNKNOWN_FEATURE_TYPE)) { handleProxy((InternalEObject) object, '#' + value); } else { super.setAttribValue(object, name, value); } }
@Override public void endElement(String uri, String localName, String name) { if (types.peek() == ECORE_EXTENSION_TYPE) { elements.pop(); types.pop(); helper.popContext(); mixedTargets.pop(); } else { super.endElement(uri, localName, name); } }
public void endCDATA() { if (mixedTargets.peek() != null && text != null) { handleCDATA(); } }