Exemplo n.º 1
0
 /**
  * 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());
   }
 }
Exemplo n.º 2
0
 /**
  * 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();
 }