added getNodeType() and getShapeType() methods