protected void processElement(String name, String prefix, String localName) { if (isRoot) { isRoot = false; recordHeaderInformation(); } if (isError()) { types.push(ERROR_TYPE); } else { if (objects.isEmpty()) { createTopObject(prefix, localName); } else { handleFeature(prefix, localName); } } }
protected void processElement(String name, String prefix, String localName) { if (isRoot) { isRoot = false; recordHeaderInformation(); } if (isError()) { types.push(ERROR_TYPE); } else { if (objects.isEmpty()) { createTopObject(prefix, localName); } else { handleFeature(prefix, localName); } } }
protected void recordUnknownFeature(String prefix, String name, boolean isElement, EObject peekObject, String value) { if (isElement) { AnyType anyType = getExtension(peekObject); int objectsIndex = objects.size(); objects.push(anyType); int mixedTargetsIndex = mixedTargets.size(); mixedTargets.push(anyType.getAny()); int typesIndex = types.size(); types.push(UNKNOWN_FEATURE_TYPE); handleFeature(prefix, name); objects.remove(objectsIndex); mixedTargets.remove(mixedTargetsIndex); types.remove(typesIndex); } else { AnyType anyType = getExtension(peekObject); setAttribValue(anyType, prefix == null ? name : prefix + ":" + name, value); } }
protected void recordUnknownFeature(String prefix, String name, boolean isElement, EObject peekObject, String value) { if (isElement) { AnyType anyType = getExtension(peekObject); int objectsIndex = objects.size(); objects.push(anyType); int mixedTargetsIndex = mixedTargets.size(); mixedTargets.push(anyType.getAny()); int typesIndex = types.size(); types.push(UNKNOWN_FEATURE_TYPE); handleFeature(prefix, name); objects.remove(objectsIndex); mixedTargets.remove(mixedTargetsIndex); types.remove(typesIndex); } else { AnyType anyType = getExtension(peekObject); setAttribValue(anyType, prefix == null ? name : prefix + ":" + name, value); } }
handleFeature(prefix, name); handleFeature(prefix, name);
handleFeature(prefix, name); handleFeature(prefix, name);