From 40a9d99496e098562f090fb7ffce9e749011b131 Mon Sep 17 00:00:00 2001 From: Benjamin Culkin Date: Mon, 20 May 2024 17:58:16 -0400 Subject: Formatting pass --- .../java/net/wotonomy/control/EONotQualifier.java | 124 +++++++++------------ 1 file changed, 55 insertions(+), 69 deletions(-) (limited to 'projects/net.wotonomy.persistence/src/main/java/net/wotonomy/control/EONotQualifier.java') diff --git a/projects/net.wotonomy.persistence/src/main/java/net/wotonomy/control/EONotQualifier.java b/projects/net.wotonomy.persistence/src/main/java/net/wotonomy/control/EONotQualifier.java index d086840..1068fd7 100644 --- a/projects/net.wotonomy.persistence/src/main/java/net/wotonomy/control/EONotQualifier.java +++ b/projects/net.wotonomy.persistence/src/main/java/net/wotonomy/control/EONotQualifier.java @@ -21,54 +21,46 @@ package net.wotonomy.control; import net.wotonomy.foundation.internal.WotonomyException; /** -* EONotQualifiier negates a specified qualifier, -* evaluating to the opposite of the specified qualifier. -* -* @author michael@mpowers.net -* @author yjcheung@intersectsoft.com -* @author $Author: cgruber $ -* @version $Revision: 894 $ -*/ -public class EONotQualifier extends EOQualifier - implements EOKeyValueArchiving, EOQualifierEvaluation -{ - private EOQualifier qualifier; + * EONotQualifiier negates a specified qualifier, evaluating to the opposite of + * the specified qualifier. + * + * @author michael@mpowers.net + * @author yjcheung@intersectsoft.com + * @author $Author: cgruber $ + * @version $Revision: 894 $ + */ +public class EONotQualifier extends EOQualifier implements EOKeyValueArchiving, EOQualifierEvaluation { + private EOQualifier qualifier; - public EONotQualifier( - EOQualifier aQualifier ) - { - qualifier = aQualifier; - } + public EONotQualifier(EOQualifier aQualifier) { + qualifier = aQualifier; + } - /** - * Returns the qualifier that this qualifier negates. - */ - public EOQualifier qualifier() - { - return qualifier; - } + /** + * Returns the qualifier that this qualifier negates. + */ + public EOQualifier qualifier() { + return qualifier; + } - /** - * Evaluates this qualifier for the specified object, - * and returns whether the object is qualified. - * evaluateWithObject is invoked on qualifier - * and the result is negated and returned. - */ - public boolean evaluateWithObject( Object anObject ) - { - return !(qualifier.evaluateWithObject(anObject)); - } + /** + * Evaluates this qualifier for the specified object, and returns whether the + * object is qualified. evaluateWithObject is invoked on qualifier and the + * result is negated and returned. + */ + public boolean evaluateWithObject(Object anObject) { + return !(qualifier.evaluateWithObject(anObject)); + } - /** - * Returns a string representation of this qualifier. - */ - public String toString() - { - return (new StringBuffer("Not ").append(qualifier.toString()).toString()); - } + /** + * Returns a string representation of this qualifier. + */ + public String toString() { + return (new StringBuffer("Not ").append(qualifier.toString()).toString()); + } public static Object decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver arch) { - EOQualifier q = (EOQualifier)arch.decodeObjectForKey("qualifier"); + EOQualifier q = (EOQualifier) arch.decodeObjectForKey("qualifier"); if (q == null) return null; return new EONotQualifier(q); @@ -78,7 +70,7 @@ public class EONotQualifier extends EOQualifier arch.encodeObject("EONotQualifier", "class"); if (qualifier instanceof EOKeyValueArchiving) { EOKeyValueArchiver ar2 = new EOKeyValueArchiver(); - ((EOKeyValueArchiving)qualifier).encodeWithKeyValueArchiver(ar2); + ((EOKeyValueArchiving) qualifier).encodeWithKeyValueArchiver(ar2); arch.encodeObject(ar2.dictionary(), "qualifiers"); } else throw new WotonomyException("Cannot archive instance of " + qualifier.getClass().getName()); @@ -87,43 +79,37 @@ public class EONotQualifier extends EOQualifier } /* - * $Log$ - * Revision 1.2 2006/02/16 16:47:14 cgruber - * Move some classes in to "internal" packages and re-work imports, etc. + * $Log$ Revision 1.2 2006/02/16 16:47:14 cgruber Move some classes in to + * "internal" packages and re-work imports, etc. * - * Also use UnsupportedOperationExceptions where appropriate, instead of WotonomyExceptions. + * Also use UnsupportedOperationExceptions where appropriate, instead of + * WotonomyExceptions. * - * Revision 1.1 2006/02/16 13:19:57 cgruber - * Check in all sources in eclipse-friendly maven-enabled packages. + * Revision 1.1 2006/02/16 13:19:57 cgruber Check in all sources in + * eclipse-friendly maven-enabled packages. * - * Revision 1.9 2003/08/12 01:43:04 chochos - * formally implement EOQualifierEvaluation + * Revision 1.9 2003/08/12 01:43:04 chochos formally implement + * EOQualifierEvaluation * - * Revision 1.8 2003/08/11 19:39:30 chochos - * special conditions for NSKeyValueCoding.NullValue -> EONull + * Revision 1.8 2003/08/11 19:39:30 chochos special conditions for + * NSKeyValueCoding.NullValue -> EONull * - * Revision 1.7 2003/08/09 01:24:19 chochos - * implements EOKeyValueArchiving + * Revision 1.7 2003/08/09 01:24:19 chochos implements EOKeyValueArchiving * - * Revision 1.6 2003/08/06 23:07:52 chochos - * general code cleanup (mostly, removing unused imports) + * Revision 1.6 2003/08/06 23:07:52 chochos general code cleanup (mostly, + * removing unused imports) * - * Revision 1.5 2001/10/31 15:25:14 mpowers - * Cleanup of qualifiers. + * Revision 1.5 2001/10/31 15:25:14 mpowers Cleanup of qualifiers. * - * Revision 1.4 2001/10/30 22:57:28 mpowers - * EOQualifier framework is now working. + * Revision 1.4 2001/10/30 22:57:28 mpowers EOQualifier framework is now + * working. * - * Revision 1.3 2001/09/13 15:42:20 mpowers - * Fixed another cut/paste typo. + * Revision 1.3 2001/09/13 15:42:20 mpowers Fixed another cut/paste typo. * - * Revision 1.2 2001/09/13 15:41:34 mpowers - * Fixed typo. + * Revision 1.2 2001/09/13 15:41:34 mpowers Fixed typo. * - * Revision 1.1 2001/09/13 15:38:19 mpowers - * Started implementation of the EOQualifier framework. + * Revision 1.1 2001/09/13 15:38:19 mpowers Started implementation of the + * EOQualifier framework. * * */ - - -- cgit v1.2.3