Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package pt.webdetails.cda.connections;
 
 
 import  org.dom4j.Element;
Created by IntelliJ IDEA. User: pedro Date: Feb 2, 2010 Time: 5:09:59 PM
public abstract class AbstractConnection implements Connection {
  private String id;
  private CdaSettings cdaSettings;
  protected static ConnectionType connectionType;
  public AbstractConnection() {
  }
  
  public AbstractConnection(String id){
  	this. = id;
  }
  public AbstractConnection(final Element connectionthrows InvalidConnectionException {
     = connection.attributeValue("id");
    initializeConnection(connection);
  }
  public AbstractConnection(final HashMap settingsthrows InvalidConnectionException {
    // TODO
  }
  public abstract ConnectionType getGenericType();
  protected abstract void initializeConnection(Element connectionthrows InvalidConnectionException;
  public String getId() {
    return ;
  }
  public abstract String getType();
  public CdaSettings getCdaSettings() {
    return ;
  }
  public void setCdaSettings(final CdaSettings cdaSettings) {
    this. = cdaSettings;
  }
  public abstract int hashCode();
  public abstract boolean equals(final Object obj);
    // Let implementors know they're missing something important
    throw new UnsupportedOperationException("Not implemented yet!");
  }
  public String getTypeForFile(){
    return this.getClass().toString().toLowerCase().replaceAll("class pt.webdetails.cda.connections.(.*)connection""$1");
  }
  
  public void accept(DomVisitor v, Element ele) {
	  v.visit((AbstractConnection)thisele);		
  }
New to GrepCode? Check out our FAQ X