HistAttrModificationKey.java:
Renamed DELATTR to ATTRDEL to match string representation.
| | |
| | | } |
| | | break; |
| | | |
| | | case DELATTR: |
| | | case ATTRDEL: |
| | | delete(csn); |
| | | break; |
| | | } |
| | |
| | | } |
| | | break; |
| | | |
| | | case DELATTR: |
| | | case ATTRDEL: |
| | | this.deleteTime = csn; |
| | | break; |
| | | } |
| | |
| | | /** The key for attribute value deletion. */ |
| | | DEL("del"), |
| | | /** The key for attribute deletion. */ |
| | | DELATTR("attrDel"), |
| | | ATTRDEL("attrDel"), |
| | | /** The key for attribute replace. */ |
| | | REPL("repl"), |
| | | /** The key for attribute value addition. */ |
| | |
| | | |
| | | csn = new CSN(token[1]); |
| | | histKey = HistAttrModificationKey.decodeKey(token[2]); |
| | | if (histKey != DELATTR) |
| | | if (histKey != ATTRDEL) |
| | | { |
| | | if (token.length == 4) |
| | | { |
| | |
| | | AttributeBuilder builder = new AttributeBuilder(attrType, attrString); |
| | | builder.setOptions(options); |
| | | |
| | | if (histKey != DELATTR) |
| | | if (histKey != ATTRDEL) |
| | | { |
| | | builder.add(attributeValue); |
| | | } |
| | |
| | | case ADD: |
| | | return new Modification(ModificationType.ADD, attr); |
| | | case DEL: |
| | | case ATTRDEL: |
| | | return new Modification(ModificationType.DELETE, attr); |
| | | case REPL: |
| | | return new Modification(ModificationType.REPLACE, attr); |
| | | case DELATTR: |
| | | return new Modification(ModificationType.DELETE, attr); |
| | | default: |
| | | return null; |
| | | } |