summaryrefslogtreecommitdiff
path: root/projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSCoding.java
diff options
context:
space:
mode:
Diffstat (limited to 'projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSCoding.java')
-rw-r--r--projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSCoding.java78
1 files changed, 33 insertions, 45 deletions
diff --git a/projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSCoding.java b/projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSCoding.java
index 56e4124..c578dbc 100644
--- a/projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSCoding.java
+++ b/projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSCoding.java
@@ -24,15 +24,14 @@ package net.wotonomy.foundation;
import java.math.BigInteger;
/**
-* A helper interface supporting the NSCoder APIs. At present it
-* very confusing to me how this even works from a structural
-* perspective, but to be consistent with WebObjects APIs, this will
-* have to be properly implemented.
-*
-* @author cgruber@israfil.net
-* @author $Author: cgruber $
-* @version $Revision: 892 $
-*/
+ * A helper interface supporting the NSCoder APIs. At present it very confusing
+ * to me how this even works from a structural perspective, but to be consistent
+ * with WebObjects APIs, this will have to be properly implemented.
+ *
+ * @author cgruber@israfil.net
+ * @author $Author: cgruber $
+ * @version $Revision: 892 $
+ */
public interface NSCoding {
@@ -69,9 +68,7 @@ public interface NSCoding {
}
/** Not yet implemented */
- protected static void _encodeBigInteger(
- NSCoder nscoder,
- BigInteger biginteger) {
+ protected static void _encodeBigInteger(NSCoder nscoder, BigInteger biginteger) {
throw new UnsupportedOperationException("Not Yet Implemented");
}
@@ -273,8 +270,7 @@ public interface NSCoding {
/** Helper class for NSCoding. */
public static abstract class Support {
- private static NSMutableDictionary classSupportMap =
- new NSMutableDictionary(16);
+ private static NSMutableDictionary classSupportMap = new NSMutableDictionary(16);
public static Support supportForClass(Class aClass) {
Support support = null;
@@ -294,9 +290,9 @@ public interface NSCoding {
classSupportMap.setObjectForKey(support, class1);
}
- /** Return the class of a given object. It boggles the mind
- * as to why this is not a static, but in the original, it's
- * not. <sigh>
+ /**
+ * Return the class of a given object. It boggles the mind as to why this is not
+ * a static, but in the original, it's not. <sigh>
*/
public Class classForCoder(Object obj) {
return obj.getClass();
@@ -324,48 +320,40 @@ public interface NSCoding {
setSupportForClass(new _LongSupport(), java.lang.Long.class);
setSupportForClass(new _FloatSupport(), java.lang.Float.class);
setSupportForClass(new _DoubleSupport(), java.lang.Double.class);
- setSupportForClass(
- new _BigIntegerSupport(),
- java.math.BigInteger.class);
- setSupportForClass(
- new _BigDecimalSupport(),
- java.math.BigDecimal.class);
+ setSupportForClass(new _BigIntegerSupport(), java.math.BigInteger.class);
+ setSupportForClass(new _BigDecimalSupport(), java.math.BigDecimal.class);
setSupportForClass(new _DateSupport(), java.util.Date.class);
- setSupportForClass(
- new _CharacterSupport(),
- java.lang.Character.class);
+ setSupportForClass(new _CharacterSupport(), java.lang.Character.class);
}
public Support() {
}
}
- //CEG: I'm not sure why these are here, since NSCoding is an interface.
- // It doesn't seem to even be used anywhere.
- //CEG: I'm not even sure why this compiles!!
- //public abstract Class classForCoder();
+ // CEG: I'm not sure why these are here, since NSCoding is an interface.
+ // It doesn't seem to even be used anywhere.
+ // CEG: I'm not even sure why this compiles!!
+ // public abstract Class classForCoder();
- //CEG: I'm not sure why these are here, since NSCoding is an interface.
- // It doesn't seem to even be used anywhere.
- //CEG: I'm not even sure why this compiles!!
- //public abstract void encodeWithCoder(NSCoder nscoder);
+ // CEG: I'm not sure why these are here, since NSCoding is an interface.
+ // It doesn't seem to even be used anywhere.
+ // CEG: I'm not even sure why this compiles!!
+ // public abstract void encodeWithCoder(NSCoder nscoder);
}
/*
- * $Log$
- * Revision 1.1 2006/02/16 12:47:16 cgruber
- * Check in all sources in eclipse-friendly maven-enabled packages.
+ * $Log$ Revision 1.1 2006/02/16 12:47:16 cgruber Check in all sources in
+ * eclipse-friendly maven-enabled packages.
*
- * Revision 1.2 2003/08/06 23:07:52 chochos
- * general code cleanup (mostly, removing unused imports)
+ * Revision 1.2 2003/08/06 23:07:52 chochos general code cleanup (mostly,
+ * removing unused imports)
*
- * Revision 1.1 2002/07/14 21:56:16 mpowers
- * Contributions from cgruber.
+ * Revision 1.1 2002/07/14 21:56:16 mpowers Contributions from cgruber.
*
- * Revision 1.2 2002/06/25 19:03:02 cgruber
- * Internal documentation fixes.
+ * Revision 1.2 2002/06/25 19:03:02 cgruber Internal documentation fixes.
*
- * Revision 1.1 2002/06/25 07:52:56 cgruber
- * Add quite a few abstract classes, interfaces, and classes. All API consistent with WebObjects, but with no implementation, nor any private or package access members from the original.
+ * Revision 1.1 2002/06/25 07:52:56 cgruber Add quite a few abstract classes,
+ * interfaces, and classes. All API consistent with WebObjects, but with no
+ * implementation, nor any private or package access members from the original.
*
*/