| | |
| | | { |
| | | /** The attribute for this modification. */ |
| | | private Attribute attribute; |
| | | |
| | | /** The modification type for this modification. */ |
| | | private ModificationType modificationType; |
| | | /** |
| | | * Indicates whether this modification was generated by internal processing |
| | | * and therefore should not be subject to no-user-modification and related checks. |
| | | */ |
| | | private boolean isInternal; |
| | | |
| | | /** The modification type for this modification. */ |
| | | private ModificationType modificationType; |
| | | |
| | | /** |
| | | * Creates a new modification with the provided information. |
| | | * |
| | | * @param modificationType The modification type for this modification. |
| | | * @param attribute The attribute for this modification. |
| | | */ |
| | | public Modification(ModificationType modificationType, |
| | | Attribute attribute) |
| | | public Modification(ModificationType modificationType, Attribute attribute) |
| | | { |
| | | this.modificationType = modificationType; |
| | | this.attribute = attribute; |
| | | |
| | | isInternal = false; |
| | | this(modificationType, attribute, false); |
| | | } |
| | | |
| | | /** |
| | |
| | | * and therefore should not be subject to |
| | | * no-user-modification and related checks. |
| | | */ |
| | | public Modification(ModificationType modificationType, |
| | | Attribute attribute, boolean isInternal) |
| | | public Modification(ModificationType modificationType, Attribute attribute, boolean isInternal) |
| | | { |
| | | this.modificationType = modificationType; |
| | | this.attribute = attribute; |
| | |
| | | */ |
| | | public void toString(StringBuilder buffer) |
| | | { |
| | | buffer.append("Modification("); |
| | | buffer.append(modificationType); |
| | | buffer.append(", "); |
| | | buffer.append(attribute); |
| | | buffer.append("Modification(").append(modificationType).append(", ").append(attribute); |
| | | } |
| | | } |