]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - libjava/javax/naming/directory/ModificationItem.java
Imported gcc-4.4.3
[msp430-gcc.git] / libjava / javax / naming / directory / ModificationItem.java
diff --git a/libjava/javax/naming/directory/ModificationItem.java b/libjava/javax/naming/directory/ModificationItem.java
deleted file mode 100644 (file)
index 963abee..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-/* Copyright (C) 2001  Free Software Foundation
-
-   This file is part of libgcj.
-
-This software is copyrighted work licensed under the terms of the
-Libgcj License.  Please consult the file "LIBGCJ_LICENSE" for
-details.  */
-package javax.naming.directory;
-import java.io.Serializable;
-/**
- * @author Warren Levy <warrenl@redhat.com>
- * @date June 13, 2001
- */
-
-public class ModificationItem implements Serializable
-{
-  // Serialized fields.
-  private int mod_op;
-  private Attribute attr;
-
-  public ModificationItem(int mod_op, Attribute attr)
-  {
-    if (attr == null)
-      throw new IllegalArgumentException("attr is null");
-    if (mod_op != DirContext.ADD_ATTRIBUTE &&
-       mod_op != DirContext.REPLACE_ATTRIBUTE &&
-       mod_op != DirContext.REMOVE_ATTRIBUTE)
-      throw new IllegalArgumentException("mod_op is invalid");
-    this.mod_op = mod_op;
-    this.attr = attr;
-  }
-
-  public int getModificationOp()
-  {
-    return mod_op;
-  }
-
-  public Attribute getAttribute()
-  {
-    return attr;
-  }
-
-  public String toString()
-  {
-    return "mod_op=" + mod_op + ":" + "attr=" + attr.toString();
-  }
-}