/** * Returns whether the named property is one requested in the options. * @param property the property in question. * @param options the options in which to look for the requested property. * @return whether the named property is one requested in the options. * @see #getRequestedProperties(Map) */ protected boolean isRequestedProperty(String property, Map<?, ?> options) { if (ContentHandler.VALIDITY_PROPERTY.equals(property) || ContentHandler.CONTENT_TYPE_PROPERTY.equals(property)) { return true; } else { Set<String> requestedProperties = getRequestedProperties(options); if (requestedProperties == null) { return true; } else { return requestedProperties.contains(property); } } }
/** * Returns whether the named property is one requested in the options. * @param property the property in question. * @param options the options in which to look for the requested property. * @return whether the named property is one requested in the options. * @see #getRequestedProperties(Map) */ protected boolean isRequestedProperty(String property, Map<?, ?> options) { if (ContentHandler.VALIDITY_PROPERTY.equals(property) || ContentHandler.CONTENT_TYPE_PROPERTY.equals(property)) { return true; } else { Set<String> requestedProperties = getRequestedProperties(options); if (requestedProperties == null) { return true; } else { return requestedProperties.contains(property); } } }