return newElement;
}
}
else if (contextObject instanceof GradientBase) {
GradientBase gradientBase = (GradientBase) contextObject;
SBase newElement = null;
if (elementName.equals(RenderConstants.listOfGradientStops)) {
newElement = gradientBase.getListOfGradientStops();
}
if (newElement != null) {
gradientBase.registerChild(newElement);
return newElement;
}
}
/**
* parsing lists
*/
else if (contextObject instanceof ListOf<?>) {
ListOf<SBase> listOf = (ListOf<SBase>) contextObject;
SBase newElement = null;
if (elementName.equals(RenderConstants.renderPoint)) {
newElement = new RenderPoint();
}
else if (elementName.equals(RenderConstants.style)) {
newElement = new Style();
}
else if (elementName.equals(RenderConstants.gradientStop)) {
newElement = new GradientStop();
}
else if (elementName.equals(RenderConstants.colorDefiniton)) {
newElement = new ColorDefinition();
}
else if (elementName.equals(RenderConstants.gradientBase)) {
newElement = new GradientBase();
}
else if (elementName.equals(RenderConstants.lineEnding)) {
newElement = new LineEnding();
}
else if (elementName.equals(RenderConstants.localRenderInformation)) {