Initial commit from SVN.

This commit is contained in:
wcrisman
2014-05-30 10:31:51 -07:00
commit b45e56b890
1968 changed files with 370949 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
/*
* Copyright (c) 1999,2005 Declarative Engineering LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Declarative Engineering LLC
* verson 1 which accompanies this distribution, and is available at
* http://declarativeengineering.com/legal/DE_Developer_License_v1.txt
*/
package com.common.event;
/**
* Performs some task using the passed parameters and returns a value of Boolean type.
*/
public abstract class BooleanHandler implements java.io.Externalizable {
/**
* BooleanHandler constructor.
*/
public BooleanHandler() {
super();
}//BooleanHandler()//
/**
* Performs what ever the handler is coded to do when called.
* @param parameters Object[] The parameters passed to the handler when it is invoked.
* @return The return value of the handler which must either be a Boolean.TRUE or Boolean.FALSE value and should not be null.
*/
public abstract Boolean evaluate(Object[] parameters);
/**
* Will handle reading the handler from an input stream.
* @param in java.io.ObjectInput The input stream to read the data from.
*/
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, ClassNotFoundException {
}//readExternal()//
/**
* Will handle writing the handler to an output stream.
* @param out java.io.ObjectOutput The output stream to write the data to.
*/
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException {
}//writeExternal()//
}//BooleanHandler//

View File

@@ -0,0 +1,34 @@
/*
* Copyright (c) 1999,2005 Declarative Engineering LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Declarative Engineering LLC
* verson 1 which accompanies this distribution, and is available at
* http://declarativeengineering.com/legal/DE_Developer_License_v1.txt
*/
package com.common.event;
/**
* Performs some task using the passed parameters and returns a value of Boolean type.
*/
public abstract class BooleanHandler1 extends BooleanHandler {
/**
* BooleanHandler1 constructor.
*/
public BooleanHandler1() {
super();
}//BooleanHandler1()//
/**
* Calls the evaluate method that takes one parameter.
* @param parameters Object[] The parameters passed to the handler when it is invoked.
* @return The return value of the handler which must either be a Boolean.TRUE or Boolean.FALSE value and should not be null.
*/
public final Boolean evaluate(Object[] parameters) {
return evaluate(((parameters != null) && (parameters.length > 0)) ? parameters[0] : null);
}//evaluate()//
/**
* Performs what ever the handler is coded to do when called.
* @param param1 The parameter passed to the handler when it is invoked.
* @return The return value of the handler which must either be a Boolean.TRUE or Boolean.FALSE value and should not be null.
*/
public abstract Boolean evaluate(Object param1);
}//BooleanHandler1//

View File

@@ -0,0 +1,35 @@
/*
* Copyright (c) 1999,2005 Declarative Engineering LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Declarative Engineering LLC
* verson 1 which accompanies this distribution, and is available at
* http://declarativeengineering.com/legal/DE_Developer_License_v1.txt
*/
package com.common.event;
/**
* Performs some task using the passed parameters and returns a value of Boolean type.
*/
public abstract class BooleanHandler2 extends BooleanHandler {
/**
* BooleanHandler2 constructor.
*/
public BooleanHandler2() {
super();
}//BooleanHandler2()//
/**
* Calls the evaluate method that takes two parameters.
* @param parameters The parameters passed to the handler when it is invoked.
* @return The return value of the handler which must either be a Boolean.TRUE or Boolean.FALSE value and should not be null.
*/
public final Boolean evaluate(Object[] parameters) {
return evaluate(((parameters != null) && (parameters.length > 0)) ? parameters[0] : null, ((parameters != null) && (parameters.length > 1)) ? parameters[1] : null);
}//evaluate()//
/**
* Performs what ever the handler is coded to do when called.
* @param param1 The first parameter passed to the handler when it is invoked.
* @param param2 The second parameter passed to the handler when it is invoked.
* @return The return value of the handler which must either be a Boolean.TRUE or Boolean.FALSE value and should not be null.
*/
public abstract Boolean evaluate(Object param1, Object param2);
}//BooleanHandler2//

View File

@@ -0,0 +1,38 @@
/*
* Copyright (c) 1999,2005 Declarative Engineering LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Declarative Engineering LLC
* verson 1 which accompanies this distribution, and is available at
* http://declarativeengineering.com/legal/DE_Developer_License_v1.txt
*/
package com.common.event;
/**
* Performs some task using the passed parameters and returns a value of Object type.
*/
public abstract class ObjectHandler implements java.io.Externalizable {
/**
* BooleanHandler constructor.
*/
public ObjectHandler() {
super();
}//BooleanHandler()//
/**
* Performs some action when the handler is invoked.
* @param parameters The parameters passed to the handler when it is invoked.
* @return The object value that is the result of the task handling.
*/
public abstract Object evaluate(Object[] parameters);
/**
* Will handle reading the handler from an input stream.
* @param in java.io.ObjectInput The input stream to read the data from.
*/
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, ClassNotFoundException {
}//readExternal()//
/**
* Will handle writing the handler to an output stream.
* @param out java.io.ObjectOutput The output stream to write the data to.
*/
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException {
}//writeExternal()//
}//ObjectHandler//

View File

@@ -0,0 +1,34 @@
/*
* Copyright (c) 1999,2005 Declarative Engineering LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Declarative Engineering LLC
* verson 1 which accompanies this distribution, and is available at
* http://declarativeengineering.com/legal/DE_Developer_License_v1.txt
*/
package com.common.event;
/**
* Performs some task using the passed parameters and returns a value of Object type.
*/
public abstract class ObjectHandler1 extends ObjectHandler {
/**
* ObjectHandler1 constructor.
*/
public ObjectHandler1() {
super();
}//ObjectHandler1()//
/**
* Calls the evaluate method that takes one parameter.
* @param parameters The parameters passed to the handler when it is invoked.
* @return The object value that is the result of the task handling.
*/
public final Object evaluate(Object[] parameters) {
return evaluate(((parameters != null) && (parameters.length > 0)) ? parameters[0] : null);
}//evaluate()//
/**
* Performs some action when the handler is invoked.
* @param param1 The parameter passed to the handler when it is invoked.
* @return The object value that is the result of the task handling.
*/
public abstract Object evaluate(Object param1);
}//ObjectHandler1//

View File

@@ -0,0 +1,35 @@
/*
* Copyright (c) 1999,2005 Declarative Engineering LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Declarative Engineering LLC
* verson 1 which accompanies this distribution, and is available at
* http://declarativeengineering.com/legal/DE_Developer_License_v1.txt
*/
package com.common.event;
/**
* Performs some task using the passed parameters and returns a value of Object type.
*/
public abstract class ObjectHandler2 extends ObjectHandler {
/**
* ObjectHandler2 constructor.
*/
public ObjectHandler2() {
super();
}//ObjectHandler2()//
/**
* Calls the evaluate method that takes two parameters.
* @param parameters The parameters passed to the handler when it is invoked.
* @return The object value that is the result of the task handling.
*/
public final Object evaluate(Object[] parameters) {
return evaluate(((parameters != null) && (parameters.length > 0)) ? parameters[0] : null, ((parameters != null) && (parameters.length > 1)) ? parameters[1] : null);
}//evaluate()//
/**
* Performs some action when the handler is invoked.
* @param param1 The first parameter passed to the handler when it is invoked.
* @param param2 The second parameter passed to the handler when it is invoked.
* @return The object value that is the result of the task handling.
*/
public abstract Object evaluate(Object param1, Object param2);
}//ObjectHandler2//

View File

@@ -0,0 +1,38 @@
/*
* Copyright (c) 1999,2005 Declarative Engineering LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Declarative Engineering LLC
* verson 1 which accompanies this distribution, and is available at
* http://declarativeengineering.com/legal/DE_Developer_License_v1.txt
*/
package com.common.event;
/**
* Performs some task using the passed array of parameters.
* <p>NOTE: If you want a handler that takes three or less parameters then use on of the HandlerN classes where N is the number of parameters the handler takes.
*/
public abstract class VoidHandler implements java.io.Externalizable {
/**
* Handler constructor.
*/
public VoidHandler() {
super();
}//Handler()//
/**
* Performs what ever the handler is coded to do when called.
* @param parameters The parameters passed to the handler when it is invoked.
*/
public abstract void evaluate(Object[] parameters);
/**
* Handles reading the handler from an input stream.
* @param in The input stream to read the data from.
*/
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, ClassNotFoundException {
}//readExternal()//
/**
* Handles writing the handler to an output stream.
* @param out The output stream to write the data to.
*/
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException {
}//writeExternal()//
}//Handler//

View File

@@ -0,0 +1,31 @@
/*
* Copyright (c) 1999,2005 Declarative Engineering LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Declarative Engineering LLC
* verson 1 which accompanies this distribution, and is available at
* http://declarativeengineering.com/legal/DE_Developer_License_v1.txt
*/
package com.common.event;
/**
* Performs some task.
*/
public abstract class VoidHandler0 extends VoidHandler {
/**
* Handler0 constructor.
*/
public VoidHandler0() {
super();
}//Handler0()//
/**
* Performs what ever the handler is coded to do when called.
*/
public abstract void evaluate();
/**
* Calls the evaluate method that takes no parameters.
* @param parameters The parameters passed to the handler when it is invoked.
*/
public void evaluate(Object[] parameters) {
evaluate();
}//evaluate()//
}//Handler0//

View File

@@ -0,0 +1,32 @@
/*
* Copyright (c) 1999,2005 Declarative Engineering LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Declarative Engineering LLC
* verson 1 which accompanies this distribution, and is available at
* http://declarativeengineering.com/legal/DE_Developer_License_v1.txt
*/
package com.common.event;
/**
* Performs some task using the passed parameter.
*/
public abstract class VoidHandler1 extends VoidHandler {
/**
* Handler1 constructor.
*/
public VoidHandler1() {
super();
}//Handler1()//
/**
* Calls the evaluate method that takes one parameter.
* @param parameters The parameters passed to the handler when it is invoked.
*/
public final void evaluate(Object[] parameters) {
evaluate(((parameters != null) && (parameters.length > 0)) ? parameters[0] : null);
}//evaluate()//
/**
* Performs what ever the handler is coded to do when called.
* @param param1 The parameter passed to the handler when it is invoked.
*/
public abstract void evaluate(Object param1);
}//Handler1//

View File

@@ -0,0 +1,33 @@
/*
* Copyright (c) 1999,2005 Declarative Engineering LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Declarative Engineering LLC
* verson 1 which accompanies this distribution, and is available at
* http://declarativeengineering.com/legal/DE_Developer_License_v1.txt
*/
package com.common.event;
/**
* Performs some task using the passed parameters.
*/
public abstract class VoidHandler2 extends VoidHandler {
/**
* Handler2 constructor.
*/
public VoidHandler2() {
super();
}//Handler2()//
/**
* Calls the evaluate method that takes two parameters.
* @param parameters The parameters passed to the handler when it is invoked.
*/
public final void evaluate(Object[] parameters) {
evaluate(((parameters != null) && (parameters.length > 0)) ? parameters[0] : null, ((parameters != null) && (parameters.length > 1)) ? parameters[1] : null);
}//evaluate()//
/**
* Performs what ever the handler is coded to do when called.
* @param param1 The first parameter passed to the handler when it is invoked.
* @param param2 The second parameter passed to the handler when it is invoked.
*/
public abstract void evaluate(Object param1, Object param2);
}//Handler2//