/* * Decompiled with CFR 0.152. */ package javax.baja.sync; import javax.baja.space.BComponentSpace; import javax.baja.sync.SyncBuffer; import javax.baja.sync.SyncDecoder; import javax.baja.sync.SyncEncoder; import javax.baja.sync.SyncOp; import javax.baja.sys.BComponent; import javax.baja.sys.Context; import javax.baja.sys.Property; public class RemoveOp extends SyncOp { String name; public int getId() { return 118; } public String getSlotName() { return this.name; } void commit(SyncBuffer syncBuffer, BComponentSpace bComponentSpace, Context context) throws Exception { Property property = this.component.getProperty(this.name); if (property != null) { this.component.remove(property, context); } } void encode(SyncEncoder syncEncoder) throws Exception { super.encode(syncEncoder); syncEncoder.attr("n", this.name).end().newLine(); } void decode(SyncBuffer syncBuffer, BComponentSpace bComponentSpace, SyncDecoder syncDecoder) throws Exception { super.decode(syncBuffer, bComponentSpace, syncDecoder); this.name = syncDecoder.elem().get("n"); } public String toString() { return "Remove: " + this.componentToString() + '.' + this.name; } public RemoveOp(BComponent bComponent, String string) { super(bComponent); this.name = string; } public RemoveOp() { } }