private List<PropertyName> getPropertyNames(RecordDescriptor rd, QueryType query) { if (query.getElementName() != null && !query.getElementName().isEmpty()) { // turn the QName into PropertyName. We don't do any verification cause the // elements in the actual feature could be parts of substitution groups // of the elements in the feature's schema List<PropertyName> result = new ArrayList<PropertyName>(); for (QName qn : query.getElementName()) { result.add(store.translateProperty(rd, Types.toTypeName(qn))); } return result; } else { ElementSetType elementSet = getElementSet(query); List<Name> properties = rd.getPropertiesForElementSet(elementSet); if (properties != null) { List<PropertyName> result = new ArrayList<PropertyName>(); for (Name pn : properties) { result.add(store.translateProperty(rd, pn)); } return result; } else { // the profile is the full one return null; } } }
private List<PropertyName> getPropertyNames(RecordDescriptor rd, QueryType query) { if(query.getElementName() != null && !query.getElementName().isEmpty()) { // turn the QName into PropertyName. We don't do any verification cause the // elements in the actual feature could be parts of substitution groups // of the elements in the feature's schema List<PropertyName> result = new ArrayList<PropertyName>(); for (QName qn : query.getElementName()) { result.add(store.translateProperty(rd, Types.toTypeName(qn))); } return result; } else { ElementSetType elementSet = getElementSet(query); List<Name> properties = rd.getPropertiesForElementSet(elementSet); if(properties != null) { List<PropertyName> result = new ArrayList<PropertyName>(); for (Name pn : properties) { result.add(store.translateProperty(rd, pn)); } return result; } else { // the profile is the full one return null; } } }