/** * Merges the set options of a another options object with this. If the other options set is null, * this objects stays the same. * * @param options other options * @throws XMPException If illegal options are provided */ public void mergeWith(PropertyOptions options) throws XMPException { if (options != null) { setOptions(getOptions() | options.getOptions()); } }
/** * Compares two options set for array compatibility. * * @param options other options * @return Returns true if the array options of the sets are equal. */ public boolean equalArrayTypes(PropertyOptions options) { return isArray() == options.isArray() && isArrayOrdered() == options.isArrayOrdered() && isArrayAlternate() == options.isArrayAlternate() && isArrayAltText() == options.isArrayAltText(); }