| | |
| | | |
| | | // Set properties. |
| | | for (String m : propertySetArgument.getValues()) { |
| | | if (!propertyResetArgument.getValues().isEmpty()) { |
| | | throw ArgumentExceptionFactory.incompatiblePropertyModification(m); |
| | | } |
| | | // Parse the property "property:value". |
| | | int sep = m.indexOf(':'); |
| | | |
| | |
| | | } |
| | | |
| | | // Apply the modification. |
| | | if (lastModTypes.containsKey(propertyName) && |
| | | (lastModTypes.get(propertyName) == ModificationType.SET)) { |
| | | throw ArgumentExceptionFactory.incompatiblePropertyModification(m); |
| | | } |
| | | |
| | | if (lastModTypes.containsKey(propertyName)) { |
| | | modifyPropertyValues(child, pd, changes, ModificationType.ADD, value); |
| | | } else { |
| | |
| | | |
| | | // Remove properties. |
| | | for (String m : propertyRemoveArgument.getValues()) { |
| | | if (!propertyResetArgument.getValues().isEmpty()) { |
| | | throw ArgumentExceptionFactory.incompatiblePropertyModification(m); |
| | | } |
| | | // Parse the property "property:value". |
| | | int sep = m.indexOf(':'); |
| | | |
| | |
| | | |
| | | // Add properties. |
| | | for (String m : propertyAddArgument.getValues()) { |
| | | if (!propertyResetArgument.getValues().isEmpty()) { |
| | | throw ArgumentExceptionFactory.incompatiblePropertyModification(m); |
| | | } |
| | | // Parse the property "property:value". |
| | | int sep = m.indexOf(':'); |
| | | |