public Object resolveVariable(QName qName) { String name = qName.getLocalPart(); LogicalProperty property = parent.getProperties(name); if (property == null) { return null; } if (propertyValue.getType() != null && property.getType() != null && !propertyValue.getType().equals(property.getType())) { throw new PropertyTypeException("Property types are incompatible:" + name + " and " + propertyValue.getName()); } Document value = property.getValue(); if (value == null || value.getDocumentElement().getChildNodes().getLength() == 0) { return null; } // select the first value return value.getDocumentElement(); } };
LogicalProperty property = parent.getProperties(name); if (property == null) { return null;
LogicalProperty property = parent.getProperties(name); if (property == null) { return null;