rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
public URL(String spec) throws MalformedURLException
public URL(String protocol, String host, int port, String file) throws MalformedURLException
public URL(String spec) throws MalformedURLException { this((URL) null, spec, (URLStreamHandler) null); }
this((URL) null, spec, (URLStreamHandler) null);
this(protocol, host, port, file, null);
public URL(String spec) throws MalformedURLException { this((URL) null, spec, (URLStreamHandler) null); }
public void setTarget(ClassVisitor target);
public void setTarget(ClassVisitor target, ClassVisitor outer);
public void setTarget(ClassVisitor target);
public Properties(Properties defaults)
public Properties()
public Properties(Properties defaults) { this.defaults = defaults; }
this.defaults = defaults;
public Properties(Properties defaults) { this.defaults = defaults; }
public PrintStream (OutputStream out, boolean af)
public PrintStream (OutputStream out)
public PrintStream (OutputStream out, boolean af) { super(out); if (out instanceof BufferedOutputStream) this.out = (BufferedOutputStream) out; else { this.out = new BufferedOutputStream(out, 250); /* PrintStream redefines "out". Explicitly reset FilterOutputStream's * "out" so that they'r...
super(out); if (out instanceof BufferedOutputStream) this.out = (BufferedOutputStream) out; else { this.out = new BufferedOutputStream(out, 250); super.out = this.out; } converter = UnicodeToBytes.getDefaultEncoder(); error = false; auto_flush = af;
this(out, false);
public PrintStream (OutputStream out, boolean af) { super(out); if (out instanceof BufferedOutputStream) this.out = (BufferedOutputStream) out; else { this.out = new BufferedOutputStream(out, 250); /* PrintStream redefines "out". Explicitly reset FilterOutputStream's * "out" so that they'r...
} finally { if (is != null) { is.close(); }
public void toIvyFile(InputStream is, Resource res, File destFile, ModuleDescriptor md) throws IOException, ParseException { try { Namespace ns = null; if (md instanceof DefaultModuleDescriptor) { DefaultModuleDescriptor dmd = (DefaultModuleDescriptor)md; n...
String name, String type, String ext, URL url, boolean includes, PatternMatcher matcher) { if (dd == null) { throw new NullPointerException("dependency descriptor must not be null"); } if (name == null) { throw new NullPointerException("name must not be null"); } if (type == null) { throw new NullPointerException("type...
String name, String type, String ext, boolean includes, PatternMatcher matcher) { this(dd, name, type, ext, null, includes, matcher); }
public DefaultDependencyArtifactDescriptor(DefaultDependencyDescriptor dd, String name, String type, String ext, URL url, boolean includes, PatternMatcher matcher) { if (dd == null) { throw new NullPointerException("dependency descriptor must not be null"); } if (name == n...
if (_impl != null) { _impl.log(msg, MSG_DEBUG);
MessageImpl messageImpl = IvyContext.getContext().getMessageImpl(); if (messageImpl != null) { messageImpl.log(msg, MSG_DEBUG);
public static void debug(String msg) { if (_impl != null) { _impl.log(msg, MSG_DEBUG); } else { System.err.println(msg); } }
public static Map getExtraAttributes(Attributes attributes, String[] ignoredAttNames) {
public static Map getExtraAttributes(Attributes attributes, String prefix) {
public static Map getExtraAttributes(Attributes attributes, String[] ignoredAttNames) { Map ret = new HashMap(); Collection ignored = Arrays.asList(ignoredAttNames); for (int i=0; i<attributes.getLength(); i++) { if (!ignored.contains(attributes.getQName(i))) { ret.put...
Collection ignored = Arrays.asList(ignoredAttNames);
public static Map getExtraAttributes(Attributes attributes, String[] ignoredAttNames) { Map ret = new HashMap(); Collection ignored = Arrays.asList(ignoredAttNames); for (int i=0; i<attributes.getLength(); i++) { if (!ignored.contains(attributes.getQName(i))) { ret.put...
if (!ignored.contains(attributes.getQName(i))) { ret.put(attributes.getQName(i), attributes.getValue(i));
if (attributes.getQName(i).startsWith(prefix)) { ret.put(attributes.getQName(i).substring(prefix.length()), attributes.getValue(i));
public static Map getExtraAttributes(Attributes attributes, String[] ignoredAttNames) { Map ret = new HashMap(); Collection ignored = Arrays.asList(ignoredAttNames); for (int i=0; i<attributes.getLength(); i++) { if (!ignored.contains(attributes.getQName(i))) { ret.put...
if (_impl != null) { _impl.log("WARN: "+msg, MSG_VERBOSE);
MessageImpl messageImpl = IvyContext.getContext().getMessageImpl(); if (messageImpl != null) { messageImpl.log("WARN: "+msg, MSG_VERBOSE);
public static void warn(String msg) { if (_impl != null) { _impl.log("WARN: "+msg, MSG_VERBOSE); } else { System.err.println(msg); } _problems.add("WARN: "+msg); _warns.add(msg); }
public DefaultDependencyDescriptor(ModuleDescriptor md, ModuleRevisionId mrid, boolean force, boolean changing, boolean transitive) { _md = md; _revId = mrid; _force = force; _changing = changing; _transitive = transitive;
public DefaultDependencyDescriptor(DependencyDescriptor dd, String revision) { _parentId = dd.getParentRevisionId(); _revId = ModuleRevisionId.newInstance(dd.getDependencyRevisionId(), revision); _force = dd.isForce(); _changing = dd.isChanging(); _transitive = dd.isTransitive(); String[] moduleConfs = dd.getModuleConf...
public DefaultDependencyDescriptor(ModuleDescriptor md, ModuleRevisionId mrid, boolean force, boolean changing, boolean transitive) { _md = md; _revId = mrid; _force = force; _changing = changing; _transitive = transitive; }
public DefaultModuleDescriptor(ModuleDescriptorParser parser, Resource res) { _parser = parser; _resource = res; }
public DefaultModuleDescriptor(ModuleRevisionId id, String status, Date pubDate) { this(id, status, pubDate, false); }
public DefaultModuleDescriptor(ModuleDescriptorParser parser, Resource res) { _parser = parser; _resource = res; }
public ModuleDescriptor parseDescriptor(Ivy ivy, URL descriptorURL, Resource res, boolean validate) throws ParseException, IOException;
public ModuleDescriptor parseDescriptor(Ivy ivy, URL descriptorURL, boolean validate) throws ParseException, IOException;
public ModuleDescriptor parseDescriptor(Ivy ivy, URL descriptorURL, Resource res, boolean validate) throws ParseException, IOException;
String fieldName = getFieldName(method, i);
String fieldName = getFieldName(i);
protected void generate() throws NoSuchMethodException { if (wreplace == null) { wreplace = Enhancer.InternalReplace.class.getMethod("writeReplace", TYPES_OBJECT); } declare_interface(Factory.class); declare_field(Modifier.PRIVATE, MethodInterceptor.class, INTERCEPTOR_...
String fieldName = getFieldName(method, i);
String fieldName = getFieldName(i);
private void generateClInit(List methodList) throws NoSuchMethodException { /* generates: static { Class [] args; Class cls = findClass("java.lang.Object"); args = new Class[0]; METHOD_1 = cls.getDeclaredMethod("toString", args); Class thi...
private String getFieldName(Method method, int index) {
private String getFieldName(int index) {
private String getFieldName(Method method, int index) { return "METHOD_" + index; }
if (parameter_types == null) getType ();
public String toString () { StringBuffer b = new StringBuffer (); b.append(Modifier.toString(getModifiers())); b.append(" "); b.append(return_type.toString()); b.append(" "); b.append(declaringClass.toString()); b.append("."); b.append(name); b.append("("); for (in...
boolean addAll(Collection c);
boolean addAll(int index, Collection c);
boolean addAll(Collection c);
public boolean accept( java.lang.reflect.Member method );
boolean accept(Member method);
public boolean accept( java.lang.reflect.Member method );
boolean add(Object o);
void add(int index, Object o);
boolean add(Object o);
protected void store_local(String name) { Integer position = (Integer)locals.get(name); if (position == null) { position = new Integer(nextLocal); locals.put(name, position); Type type = (Type)localTypes.get(name); nextLocal += (type == null) ? 1 : type.getSize();
private void store_local(Type t, int pos) { if (t instanceof BasicType) { if (t.equals(Type.LONG)) { append(new LSTORE(pos)); } else if (t.equals(Type.DOUBLE)) { append(new DSTORE(pos)); } else if (t.equals(Type.FLOAT)) { append(new FSTORE(pos)); } else { append(new ISTORE(pos)); } } else { append(new ASTORE(pos));
protected void store_local(String name) { Integer position = (Integer)locals.get(name); if (position == null) { position = new Integer(nextLocal); locals.put(name, position); Type type = (Type)localTypes.get(name); nextLocal += (type == null) ? 1 : type.getS...
store_local((Type)localTypes.get(name), position.intValue());
protected void store_local(String name) { Integer position = (Integer)locals.get(name); if (position == null) { position = new Integer(nextLocal); locals.put(name, position); Type type = (Type)localTypes.get(name); nextLocal += (type == null) ? 1 : type.getS...
protected void newarray(Class clazz) { if (clazz.isPrimitive()) { append(new NEWARRAY((BasicType)getType(clazz))); } else { append(new ANEWARRAY(cp.addClass(clazz.getName()))); }
protected void newarray() { newarray(Object.class);
protected void newarray(Class clazz) { if (clazz.isPrimitive()) { append(new NEWARRAY((BasicType)getType(clazz))); } else { append(new ANEWARRAY(cp.addClass(clazz.getName()))); } }
protected void load_local(String name) { load_local((Type)localTypes.get(name), getLocal(name));
private void load_local(Type t, int pos) { if (t instanceof BasicType) { if (t.equals(Type.LONG)) { append(new LLOAD(pos)); } else if (t.equals(Type.DOUBLE)) { append(new DLOAD(pos)); } else if (t.equals(Type.FLOAT)) { append(new FLOAD(pos)); } else { append(new ILOAD(pos)); } } else { append(new ALOAD(pos)); }
protected void load_local(String name) { load_local((Type)localTypes.get(name), getLocal(name)); }
protected void begin_constructor(Class[] parameterTypes) { checkInMethod(); returnType = Void.TYPE; mg = new MethodGen(ACC_PUBLIC, Type.VOID, getTypes(parameterTypes), null, CONSTRUCTOR_NAME, cg.getClassName(), il, cp); setNextLocal();
protected void begin_constructor(java.lang.reflect.Constructor constructor) { begin_constructor(constructor.getParameterTypes());
protected void begin_constructor(Class[] parameterTypes) { checkInMethod(); returnType = Void.TYPE; mg = new MethodGen(ACC_PUBLIC, Type.VOID, getTypes(parameterTypes), null, CONSTRUCTOR_NAME, cg.getClassName(), il, cp); setNextLocal(); }
protected void super_invoke_constructor() { invoke_constructor_helper(cg.getSuperclassName(), TYPES_EMPTY);
protected void super_invoke_constructor(Constructor constructor) { super_invoke_constructor(constructor.getParameterTypes());
protected void super_invoke_constructor() { invoke_constructor_helper(cg.getSuperclassName(), TYPES_EMPTY); }
protected void invoke_constructor_this(Class[] parameterTypes) { invoke_constructor_helper(cg.getClassName(), parameterTypes);
protected void invoke_constructor_this() { invoke_constructor_this(TYPES_EMPTY);
protected void invoke_constructor_this(Class[] parameterTypes) { invoke_constructor_helper(cg.getClassName(), parameterTypes); }
protected void invoke_constructor(Class type, Class[] parameterTypes) { invoke_constructor_helper(type.getName(), parameterTypes);
protected void invoke_constructor(Class type) { invoke_constructor(type, TYPES_EMPTY);
protected void invoke_constructor(Class type, Class[] parameterTypes) { invoke_constructor_helper(type.getName(), parameterTypes); }
if(isComplexRecipe(conn, substitutions)) {
if(isComplexRecipe(rs.getString(4))) {
protected RecipeComponent getDatabaseRecipe(String recipeId, String recipeName) { createLogger(); String query = null; RecipeComponent rc = null; try { Connection conn = DBUtils.getConnection(); try { Map substitutions = new HashMap(); ...
if(rs.next()) { if(rs.getString(1).equalsIgnoreCase(ComplexRecipeBase.ASSEMBLY_PROP)) { assemblyId = rs.getString(2); }
while(rs.next()) { if(rs.getString(1).equalsIgnoreCase(ComplexRecipeBase.ASSEMBLY_PROP)) { assemblyId = rs.getString(2); }
private String getRecipeAssembly(Connection conn, Map substitutions) { String assemblyId = null; try { Statement stmt = conn.createStatement(); try { String query = DBUtils.getQuery("queryRecipeProperties", substitutions); ResultSet rs = stmt.executeQuery(query); // Relys ...
private boolean isComplexRecipe(Connection conn, Map substitutions) {
private boolean isComplexRecipe(String desc) {
private boolean isComplexRecipe(Connection conn, Map substitutions) { boolean retVal = false; try { Statement stmt = conn.createStatement(); try { String query = DBUtils.getQuery("queryRecipeProperties", substitutions); ResultSet rs = stmt.executeQuery(query); // Relys on ...
try { Statement stmt = conn.createStatement(); try { String query = DBUtils.getQuery("queryRecipeProperties", substitutions); ResultSet rs = stmt.executeQuery(query); if(rs.next()) { if(rs.getString(1).equalsIgnoreCase(ComplexRecipeBase.ASSEMBLY_PROP)) { retVal = true; } } rs.close(); stmt.close(); } catch(SQLExcept...
if(desc.equals(PDbBase.COMPLEX_RECIPE_DESC)) { retVal = true;
private boolean isComplexRecipe(Connection conn, Map substitutions) { boolean retVal = false; try { Statement stmt = conn.createStatement(); try { String query = DBUtils.getQuery("queryRecipeProperties", substitutions); ResultSet rs = stmt.executeQuery(query); // Relys on ...
Object[] toArray(Object[] a);
Object[] toArray();
Object[] toArray(Object[] a);
public JFileChooser(String currentDirectoryPath) {
public JFileChooser() {
public JFileChooser(String currentDirectoryPath) { // TODO } // JFileChooser()
String name = files[i].getName(); if (!name.endsWith(".ini"))
String path = files[i].getPath(); if (!path.endsWith(".ini"))
public String[] getAgentFilenames(File directory) { File[] files = directory.listFiles(); ArrayList agentFilenames = new ArrayList(files.length); for (int i = 0; i < files.length; i++) { String name = files[i].getName(); if (!name.endsWith(".ini")) continue; if (FileParseUtil.containsPa...
if (FileParseUtil.containsPattern(name, "\\[ Cluster \\]")) agentFilenames.add(name);
if (FileParseUtil.containsPattern(path, "\\[ Cluster \\]")) agentFilenames.add(path);
public String[] getAgentFilenames(File directory) { File[] files = directory.listFiles(); ArrayList agentFilenames = new ArrayList(files.length); for (int i = 0; i < files.length; i++) { String name = files[i].getName(); if (!name.endsWith(".ini")) continue; if (FileParseUtil.containsPa...
Property getProperty(String localName);
Property getProperty(CompositeName name);
Property getProperty(String localName);
throw new RuntimeException("Not implemented yet!");
int refno = myRnd.nextInt(256); int nSms = myUdLength / nMaxConcatChars; if ( (myUdLength % nMaxConcatChars) > 0 ) { nSms += 1; } smsPdus = new SmsPdu[nSms]; SmsUdhElement[] pduUdhElements = null; if (myUdhElements == null) { pduUdhElements = new SmsUdhElement[1]; } else { pduUdhElements = new SmsUdhElement[myUdhEl...
private SmsPdu[] createSeptetPdus(int theMaxBytes) { int nMaxChars; int nMaxConcatChars; SmsPdu smsPdus[] = null; // 8-bit concat header is 6 bytes... nMaxConcatChars = ((theMaxBytes - 6) * 8) / 7; nMaxChars = (theMaxBytes * 8) / 7; if (myUdLength <= nMaxChars) ...
public SmsPdu(SmsUdhElement[] theUdhIeis, byte[] theUd, int theUdLength)
public SmsPdu()
public SmsPdu(SmsUdhElement[] theUdhIeis, byte[] theUd, int theUdLength) { setUserDataHeaders(theUdhIeis); setUserData(theUd, theUdLength); }
setUserDataHeaders(theUdhIeis); setUserData(theUd, theUdLength);
public SmsPdu(SmsUdhElement[] theUdhIeis, byte[] theUd, int theUdLength) { setUserDataHeaders(theUdhIeis); setUserData(theUd, theUdLength); }
public ByteArrayOutputStream (int size)
public ByteArrayOutputStream ()
public ByteArrayOutputStream (int size) { buf = new byte[size]; count = 0; }
buf = new byte[size]; count = 0;
this (initial_buffer_size);
public ByteArrayOutputStream (int size) { buf = new byte[size]; count = 0; }
public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints)
public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints, int translateX, int translateY)
public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints) { throw new UnsupportedOperationException("not implemented"); }
throw new UnsupportedOperationException("not implemented");
context.fillPolygon(xPoints, yPoints, nPoints, translateX, translateY);
public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints) { throw new UnsupportedOperationException("not implemented"); }
public boolean contains(Rectangle r)
public boolean contains(Point p)
public boolean contains(Rectangle r) { return width > 0 && height > 0 && r.width > 0 && r.height > 0 && r.x >= x && r.x + r.width <= x + width && r.y >= y && r.y + r.height <= y + height; }
return width > 0 && height > 0 && r.width > 0 && r.height > 0 && r.x >= x && r.x + r.width <= x + width && r.y >= y && r.y + r.height <= y + height;
return contains (p.x, p.y);
public boolean contains(Rectangle r) { return width > 0 && height > 0 && r.width > 0 && r.height > 0 && r.x >= x && r.x + r.width <= x + width && r.y >= y && r.y + r.height <= y + height; }
Class defineClass(String name, byte[] data) { return (defineClass(name, data, 0, data.length)); }
Class defineClass(String name, byte[] data) { return defineClass(name, data, 0, data.length); }
Class defineClass(String name, byte[] data) { return (defineClass(name, data, 0, data.length));}
public static String getClassAnnotation(Class cl) { return (null); }
public static String getClassAnnotation(Class cl) { return null; }
public static String getClassAnnotation(Class cl) { return (null); // We don't yet do this.}
public static Class loadClass(String name) throws MalformedURLException, ClassNotFoundException { return (loadClass(System.getProperty("java.rmi.server.codebase"), name)); }
public static Class loadClass(String name) throws MalformedURLException, ClassNotFoundException { return loadClass(System.getProperty("java.rmi.server.codebase"), name); }
public static Class loadClass(String name) throws MalformedURLException, ClassNotFoundException { return (loadClass(System.getProperty("java.rmi.server.codebase"), name));}
protected final Class defineClass(String name, byte[] data, int off, int len)
protected final Class defineClass(byte[] data, int off, int len)
protected final Class defineClass(String name, byte[] data, int off, int len) throws ClassFormatError { return defineClass (name, data, off, len, defaultProtectionDomain); }
return defineClass (name, data, off, len, defaultProtectionDomain);
return defineClass (null, data, off, len, defaultProtectionDomain);
protected final Class defineClass(String name, byte[] data, int off, int len) throws ClassFormatError { return defineClass (name, data, off, len, defaultProtectionDomain); }
Object o = d2wContext().valueForKey("object"); int index = displayGroup().allObjects().indexOfObject(o); return ((index==0) ? (NSMutableDictionary) new NSMutableDictionary() : (NSMutableDictionary)errorMessagesDictionaries().objectAtIndex(index));
Object key = d2wContext().valueForKeyPath("object.hashCode"); if (errorMessagesDictionaries().objectForKey(key) == null) { errorMessagesDictionaries().setObjectForKey(new NSMutableDictionary(), key); } return (NSMutableDictionary)errorMessagesDictionaries().objectForKey(key);
public NSMutableDictionary currentErrorDictionary() { Object o = d2wContext().valueForKey("object"); int index = displayGroup().allObjects().indexOfObject(o); return ((index==0) ? (NSMutableDictionary) new NSMutableDictionary() : (NSMutableDictionary)errorMessagesDictionaries().objectAtIndex(in...
EOEnterpriseObject eo=(EOEnterpriseObject)displayGroup().allObjects().objectAtIndex(0); return eo.editingContext();
return displayGroup().dataSource().editingContext();
public EOEditingContext editingContext() { EOEnterpriseObject eo=(EOEnterpriseObject)displayGroup().allObjects().objectAtIndex(0); return eo.editingContext(); }
protected NSArray errorMessagesDictionaries(){
protected NSMutableDictionary errorMessagesDictionaries(){
protected NSArray errorMessagesDictionaries(){ if(_errorMessagesDictionaries == null){ NSMutableArray result = new NSMutableArray(); for(Enumeration e = displayGroup().allObjects().objectEnumerator(); e.hasMoreElements();e.nextElement()){ result.addObject(new NSMutableDic...
NSMutableArray result = new NSMutableArray(); for(Enumeration e = displayGroup().allObjects().objectEnumerator(); e.hasMoreElements();e.nextElement()){ result.addObject(new NSMutableDictionary()); } _errorMessagesDictionaries = (NSArray)result;
_errorMessagesDictionaries = new NSMutableDictionary();
protected NSArray errorMessagesDictionaries(){ if(_errorMessagesDictionaries == null){ NSMutableArray result = new NSMutableArray(); for(Enumeration e = displayGroup().allObjects().objectEnumerator(); e.hasMoreElements();e.nextElement()){ result.addObject(new NSMutableDic...
if(!validityOverride.equals(CACHING_OFF)) { SourceValidity contractValidityRaw = m_resolver.resolveURI(value).getValidity(); if(null!=contractValidityRaw) this.validity.add(contractValidityRaw); }
private void contractProcessingStart(Attributes attr) throws SAXException { try { if (contract == null) contract = new ContractBeanDOMImpl(this.manager, parameterHelper,defaultProperties,(URIResolver)this); // This is not needed since the manager di...
if(null!=validityFile&!(validityOverride.equals(CACHING_OFF))){ this.validity= new AggregatedValidity(); try { this.validity.add(m_resolver.resolveURI(validityFile).getValidity()); } catch (Exception e) { getLogger().error(e.getMessage()); } } else this.validity=null;
public SourceValidity getValidity() { return this.validity; }
this.validity = null;
public void recycle() { localRecycle(); super.recycle(); }
this.CACHE_PARAMETER, null);
CACHE_PARAMETER, null);
public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException { super.setup(resolver, objectModel, src, par); localRecycle(); try { if (null==this.dispatcherHelper)this.dispatcherHel...
this.VALIDITY_PARAMETER, null); if(null!=validityFile) this.validity=m_resolver.resolveURI(validityFile).getValidity(); else this.validity=null;
VALIDITY_PARAMETER, null); this.validityOverride = parameters.getParameter( VALIDITY_OVERRIDE_PARAMETER, ""); this.cacheKey+=validityOverride;
public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException { super.setup(resolver, objectModel, src, par); localRecycle(); try { if (null==this.dispatcherHelper)this.dispatcherHel...
public Transformer createTransformer(Source source)
public Transformer createTransformer()
public Transformer createTransformer(Source source) throws TransformerConfigurationException { TransformerFactory tFactory = TransformerFactory.newInstance(); Transformer transformer = tFactory.newTransformer(source); // transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, ...
Transformer transformer = tFactory.newTransformer(source);
Transformer transformer = tFactory.newTransformer();
public Transformer createTransformer(Source source) throws TransformerConfigurationException { TransformerFactory tFactory = TransformerFactory.newInstance(); Transformer transformer = tFactory.newTransformer(source); // transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, ...
public void setNamespaceHelper(String uri, String prefix, String localName) throws ParserConfigurationException { this.namespaceHelper = new NamespaceHelper(uri, prefix, localName);
public void setNamespaceHelper(NamespaceHelper namespaceHelper) { this.namespaceHelper = namespaceHelper;
public void setNamespaceHelper(String uri, String prefix, String localName) throws ParserConfigurationException { this.namespaceHelper = new NamespaceHelper(uri, prefix, localName); }
Enhancer.enhance( ClassLoader.class, null, NOOP_INTERCEPTOR );
public void testABC()throws Throwable{ Enhancer.enhance( A.class, null, NOOP_INTERCEPTOR ); Enhancer.enhance( C1.class, null, NOOP_INTERCEPTOR ); Enhancer.enhance( B.class, null, NOOP_INTERCEPTOR ); Enhancer.enhance( D.class, ...
public void throwChecked()throws ClassCastException{ throw new ClassCastException();
public void throwChecked()throws CheckedException1{ throw new CheckedException1();
public void throwChecked()throws ClassCastException{ throw new ClassCastException(); }
Properties myProps = getDefaultNodeArguments(); Enumeration props = myProps.propertyNames(); Properties newProperties = new Properties(); while (props.hasMoreElements()) { String propertyName = (String)props.nextElement(); newProperties.setProperty(propertyName, myProps.getProperty(propertyName)); } experimentCopy.setD...
public Experiment copy(Organizer organizer, Object context) { String uniqueName = organizer.generateExperimentName(getExperimentName()); Experiment experimentCopy = null; if (inDatabase) experimentCopy = new Experiment(uniqueName, expID, trialID); else experimentCopy = new Experiment(uniqueName...
public void addParameter(Object param);
void addParameter(Object param);
public void addParameter(Object param);
public ExpConfigWriterNew(List components, NodeComponent[] nodesToWrite, Experiment exp) { this.nodesToWrite = nodesToWrite; this.components = components; theSoc = new GenericComponentData(); theSoc.setType(ComponentData.SOCIETY); theSoc.setName(exp.getExperimentName()); theSoc.setClassName("java.lang.Object"); theSoc....
public ExpConfigWriterNew(ComponentData theSoc) { this.theSoc = theSoc;
public ExpConfigWriterNew(List components, NodeComponent[] nodesToWrite, Experiment exp) { this.nodesToWrite = nodesToWrite; this.components = components; theSoc = new GenericComponentData(); theSoc.setType(ComponentData.SOCIETY); theSoc.setName(exp.getExperimentName()); // this should be experiment: t...
public void setType(String type);
void setType(String type);
public void setType(String type);
public void setName(String name);
void setName(String name);
public void setName(String name);
public void setClassName(String className);
void setClassName(String className);
public void setClassName(String className);
public void setParent(ComponentData parent);
void setParent(ComponentData parent);
public void setParent(ComponentData parent);
ComponentData modifyComponentData(ComponentData data, PopulateDb pdb);
ComponentData modifyComponentData(ComponentData data);
ComponentData modifyComponentData(ComponentData data, PopulateDb pdb);
addTrialRecipe(rc, order); order++;
addTrialRecipe(rc, order++);
public void setModRecipes(List recipes) throws SQLException, IOException { // dbp.setDebug(true); int order = 0; for (Iterator i = recipes.iterator(); i.hasNext(); ) { RecipeComponent rc = (RecipeComponent) i.next(); addTrialRecipe(rc, order); order++; ...
BindException(String message)
BindException()
BindException(String message){ super(message);}
super(message);
super();
BindException(String message){ super(message);}
final Object key = get();
final Object key = this.get();
WeakEntry getEntry() { final Object key = get(); if (key == null) return null; return new WeakEntry(key); }
vlink="#ffffff";
vlink="#009999";
public void startElement(String uri, String loc, String raw, Attributes a) throws SAXException { /* this.log ("startElement", "uri="+uri+",local="+loc+",raw="+raw); for (int i = 0; i < a.getLength(); i++) { this.log (" ", new Integer(i+1).toString() +". ...
getLogger().warn(msg);
getLogger().debug(msg);
public Object getAttribute( final String name, final Configuration modeConf, final Map objectModel) throws ConfigurationException { Object result = null; boolean hasBeenCached = false; try { if (this.m_cacheAll == true) { hasBeenCached = m_locati...
String pk = ERXExtensions.primaryKeyForObject(this);
String pk = ERXEOControlUtilities.primaryKeyStringForObject(this);
public String encryptedPrimaryKey() { String pk = ERXExtensions.primaryKeyForObject(this); return pk==null ? null : ERXCrypto.blowfishEncode(pk); }
return ERXExtensions.primaryKeyForObject(this);
return ERXEOControlUtilities.primaryKeyStringForObject(this);
public String primaryKey() { return ERXExtensions.primaryKeyForObject(this); }
NSArray primaryKeyAttributeNames=primaryKeyAttributeNames(); if (primaryKeyAttributeNames.count()>1) { if(true) return null; else throw new RuntimeException("primaryKeyDictionary does not support compound primary keys");
Object rawPK = rawPrimaryKey(); if (rawPK != null) { if (log.isDebugEnabled()) log.debug("Got raw key: "+ rawPK); NSArray primaryKeyAttributeNames=primaryKeyAttributeNames(); _primaryKeyDictionary = new NSDictionary(rawPK instanceof NSArray ? (NSArray)rawPK : new NSArray(rawPK), primaryKeyAttributeNames); } else { if (...
public NSDictionary primaryKeyDictionary(boolean inTransaction) { if(_primaryKeyDictionary == null) { if (!inTransaction) { NSArray primaryKeyAttributeNames=primaryKeyAttributeNames(); if (primaryKeyAttributeNames.count()>1) { if(true) // ak:testing...
if (rawPrimaryKey() != null) { if (log.isDebugEnabled()) log.debug("Got raw key: "+ rawPrimaryKey()); _primaryKeyDictionary = new NSDictionary(rawPrimaryKey(), primaryKeyAttributeNames.lastObject()); } else if (log.isDebugEnabled()) log.debug("No raw key, trying single key"); _primaryKeyDictionary = ERXUtilities.prima...
public NSDictionary primaryKeyDictionary(boolean inTransaction) { if(_primaryKeyDictionary == null) { if (!inTransaction) { NSArray primaryKeyAttributeNames=primaryKeyAttributeNames(); if (primaryKeyAttributeNames.count()>1) { if(true) // ak:testing...
Object rpk=rawPrimaryKeyInTransaction(); return rpk!=null ? rpk.toString() : null;
Object pk=rawPrimaryKeyInTransaction(); if(pk == null) return null; if(pk instanceof String || pk instanceof Number) { return pk.toString(); } return NSPropertyListSerialization.stringFromPropertyList(pk);
public String primaryKeyInTransaction() { Object rpk=rawPrimaryKeyInTransaction(); return rpk!=null ? rpk.toString() : null; }
public Object rawPrimaryKey() { return ERXExtensions.rawPrimaryKeyForObject(this); }
public Object rawPrimaryKey() { return ERXEOControlUtilities.primaryKeyObjectForObject(this); }
public Object rawPrimaryKey() { return ERXExtensions.rawPrimaryKeyForObject(this); }
if (log.isDebugEnabled()) log.debug("pk: " + pk);
public Object rawPrimaryKeyInTransaction() { Object result = rawPrimaryKey(); if (result == null) { NSDictionary pk = primaryKeyDictionary(false); if (log.isDebugEnabled()) log.debug("pk: " + pk); NSArray primaryKeyAttributeNames=primaryKeyAttributeNames(); ...
if (primaryKeyAttributeNames.count()>1) throw new RuntimeException("rawPrimaryKeyInTransaction does not support compound primary keys"); result=pk.objectForKey(primaryKeyAttributeNames.lastObject());
result = ERXArrayUtilities.valuesForKeyPaths(pk, primaryKeyAttributeNames); if(((NSArray)result).count() == 0) result = ((NSArray)result).lastObject();
public Object rawPrimaryKeyInTransaction() { Object result = rawPrimaryKey(); if (result == null) { NSDictionary pk = primaryKeyDictionary(false); if (log.isDebugEnabled()) log.debug("pk: " + pk); NSArray primaryKeyAttributeNames=primaryKeyAttributeNames(); ...
private DefaultMutableTreeNode addExperimentToWorkspace(Experiment experiment) { return addExperimentToWorkspace(experiment, getSelectedNode());
private DefaultMutableTreeNode addExperimentToWorkspace(Experiment experiment, DefaultMutableTreeNode node) { DefaultMutableTreeNode newNode = new DefaultMutableTreeNode(experiment, true); addNode(node, newNode); experimentNames.add(experiment.getExperimentName()); workspace.setSelection(newNode); experiment.addModif...
private DefaultMutableTreeNode addExperimentToWorkspace(Experiment experiment) { return addExperimentToWorkspace(experiment, getSelectedNode()); }
private DefaultMutableTreeNode addRecipeToWorkspace(RecipeComponent recipe) { return addRecipeToWorkspace(recipe, getSelectedNode());
private DefaultMutableTreeNode addRecipeToWorkspace(RecipeComponent recipe, DefaultMutableTreeNode node) { DefaultMutableTreeNode newNode = new DefaultMutableTreeNode(recipe, false); addNode(node, newNode); recipeNames.add(recipe.getRecipeName()); workspace.setSelection(newNode); installListeners(recipe); return newNod...
private DefaultMutableTreeNode addRecipeToWorkspace(RecipeComponent recipe) { return addRecipeToWorkspace(recipe, getSelectedNode()); }
public void addSociety() { workspace.setSelectionPath(new TreePath(root.getPath())); DefaultMutableTreeNode newNode = newSociety();
public void addSociety(SocietyComponent sc) { String name = sc.getSocietyName(); while (societyNames.contains(name)) { name = societyNames.generateName(name); name = (String)JOptionPane.showInputDialog(this, "Enter Society Name", "Society Name Not Unique", JOptionPane.QUESTION_MESSAGE, null, null, name); if (name == n...
public void addSociety() { // make root be the selected node workspace.setSelectionPath(new TreePath(root.getPath())); DefaultMutableTreeNode newNode = newSociety(); }
workspace.setSelection(newNode);
private DefaultMutableTreeNode addSocietyToWorkspace(SocietyComponent sc, DefaultMutableTreeNode node) { DefaultMutableTreeNode newNode = new DefaultMutableTreeNode(sc, false); addNode(node, newNode); societyNames.add(sc.getSocietyName()); installListeners(sc); return newNode; }
workspace.setSelection(addExperimentToWorkspace(experimentCopy, node));
addExperimentToWorkspace(experimentCopy, node);
public Experiment copyExperiment(Experiment experiment) { String newName = generateExperimentName(experiment.getExperimentName()); final Experiment experimentCopy = (Experiment)experiment.copy(newName); // save copy in database GUIUtils.timeConsumingTaskStart(organizer); try { new Thread("Duplicat...
experimentCopy.saveToDb(saveToDbConflictHandler);
recipeCopy.saveToDatabase();
public void run() { experimentCopy.saveToDb(saveToDbConflictHandler); GUIUtils.timeConsumingTaskEnd(organizer); }
DefaultMutableTreeNode node = (DefaultMutableTreeNode)findNode(recipe).getParent();
public RecipeComponent copyRecipe(RecipeComponent recipe) { DefaultMutableTreeNode node = (DefaultMutableTreeNode)findNode(recipe).getParent(); String newName = generateRecipeName(recipe.getRecipeName()); final RecipeComponent recipeCopy = (RecipeComponent)recipe.copy(newName); GUIUtils.timeConsumin...
workspace.setSelection(addRecipeToWorkspace(recipeCopy, node));
DefaultMutableTreeNode parentNode = (DefaultMutableTreeNode)getSelectedNode().getParent(); if (isSelectedNodeInExperiment()) addRecipeToWorkspace(recipeCopy, (DefaultMutableTreeNode)parentNode.getParent()); else addRecipeToWorkspace(recipeCopy, parentNode); recipeNames.add(newName);
public RecipeComponent copyRecipe(RecipeComponent recipe) { DefaultMutableTreeNode node = (DefaultMutableTreeNode)findNode(recipe).getParent(); String newName = generateRecipeName(recipe.getRecipeName()); final RecipeComponent recipeCopy = (RecipeComponent)recipe.copy(newName); GUIUtils.timeConsumin...
SocietyComponent societyCopy = (SocietyComponent)society.copy(newName); if (societyCopy instanceof SocietyComponent) { DefaultMutableTreeNode node = (DefaultMutableTreeNode)findNode(society).getParent(); workspace.setSelection(addSocietyToWorkspace(societyCopy, node)); } else societyNames.add(newName);
final SocietyComponent societyCopy = (SocietyComponent)society.copy(newName); GUIUtils.timeConsumingTaskStart(organizer); try { new Thread("DuplicateRecipe") { public void run() { societyCopy.saveToDatabase(); GUIUtils.timeConsumingTaskEnd(organizer); } }.start(); } catch (RuntimeException re) { if(log.isErrorEnabled(...
public SocietyComponent copySociety(SocietyComponent society) { // FIXME: When societies are added back in, this will need to // be modified so that they are saved in the database. See // copyRecipe() for an example. String newName = generateSocietyName(society.getSocietyName()); SocietyComponent soci...