public Element getElement() { Element element = DocumentFactory.getInstance().createElement(QNAME); if (classificationScheme != null) { element.addAttribute(CLASSIFICATION_SCHEME_ATTRIBUTE, classificationScheme); } element.addAttribute(CLASSIFIED_OBJECT_ATTRIBUTE, classifiedObject); if (nodeRepresentation != null) { element.addAttribute(NODE_REPRESENTATION_ATTRIBUTE, nodeRepresentation); } if (classificationNode != null) { element.addAttribute(CLASSIFICATION_NODE_ATTRIBUTE, classificationNode); } if (name != null) { element.add(name.getElement()); } if (slot != null) { element.add(slot.getElement()); } return element; }