/** * Fills in the instance from a given AXIOM node. * * @param rootNode Starting point. */ protected void parse(OMElement rootNode, XConfig xconf) { OMElement node; this.name = rootNode.getAttributeValue(new QName("name")); this.type = rootNode.getAttributeValue(new QName("type")); node = rootNode.getFirstChildWithName(new QName("UniqueId")); if (node != null) { this.uniqueId = node.getText(); if (this.uniqueId.equals("NA")) { this.uniqueId = null; } } parseObjectRefs(rootNode); properties.parse(rootNode); }
/** * @param propKey The property key to find. * @return true if property key is found, false otherwise. */ public boolean containsProperty(String propKey) { return properties.containsProperty(propKey); }
/** * @param propKey * @return */ public boolean getPropertyAsBoolean(String propKey) { return properties.getPropertyAsBoolean(propKey); }
/** * @param propKey * @param defaultValue * @return */ public boolean getPropertyAsBoolean(String propKey, boolean defaultValue) { return properties.getPropertyAsBoolean(propKey, defaultValue); }
/** * @param propKey * @return */ public String getProperty(String propKey) { return (String) properties.getProperty(propKey); }