// Path: core/src/main/java/pt/webdetails/cda/connections/ConnectionCatalog.java
// public enum ConnectionType {
// 
//   SQL, MQL, MDX, OLAP4J, SCRIPTING, NONE, XPATH, KETTLE, DATASERVICES
// }


import java.util.ArrayList;
import java.util.List;
import org.dom4j.Element;
import pt.webdetails.cda.connections.AbstractConnection;
import pt.webdetails.cda.connections.ConnectionCatalog.ConnectionType;
import pt.webdetails.cda.connections.InvalidConnectionException;
import pt.webdetails.cda.dataaccess.PropertyDescriptor;
/*!
 * Copyright 2002 - 2017 Webdetails, a Hitachi Vantara company. All rights reserved.
 *
 * This software was developed by Webdetails and is provided under the terms
 * of the Mozilla Public License, Version 2.0, or any later version. You may not use
 * this file except in compliance with the license. If you need a copy of the license,
 * please go to  http://mozilla.org/MPL/2.0/. The Initial Developer is Webdetails.
 *
 * Software distributed under the Mozilla Public License is distributed on an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. Please refer to
 * the license for the specific language governing your rights and limitations.
 */

package pt.webdetails.cda.connections.metadata;



/**
 * Todo: Document me!
 */
public class MetadataConnection extends AbstractConnection {

  protected static final ConnectionType connectionType = ConnectionType.MQL;
  private MetadataConnectionInfo connectionInfo;

  public MetadataConnection( final Element connection ) throws InvalidConnectionException {
    super( connection );
  }

  public MetadataConnection() {
  }

  /**
   * @param id       this connection's ID
   * @param domainId domain ID
   * @param xmiFile  XMI file with metadata definition
   */
  public MetadataConnection( String id, String domainId, String xmiFile ) {
    super( id );
    this.connectionInfo = new MetadataConnectionInfo( domainId, xmiFile );
  }

// Path: core/src/main/java/pt/webdetails/cda/connections/ConnectionCatalog.java
// public enum ConnectionType {
// 
//   SQL, MQL, MDX, OLAP4J, SCRIPTING, NONE, XPATH, KETTLE, DATASERVICES
// }


// Path: core/src/main/java/pt/webdetails/cda/connections/metadata/MetadataConnection.java
import java.util.ArrayList;
import java.util.List;
import org.dom4j.Element;
import pt.webdetails.cda.connections.AbstractConnection;
import pt.webdetails.cda.connections.ConnectionCatalog.ConnectionType;
import pt.webdetails.cda.connections.InvalidConnectionException;
import pt.webdetails.cda.dataaccess.PropertyDescriptor;

/*!
 * Copyright 2002 - 2017 Webdetails, a Hitachi Vantara company. All rights reserved.
 *
 * This software was developed by Webdetails and is provided under the terms
 * of the Mozilla Public License, Version 2.0, or any later version. You may not use
 * this file except in compliance with the license. If you need a copy of the license,
 * please go to  http://mozilla.org/MPL/2.0/. The Initial Developer is Webdetails.
 *
 * Software distributed under the Mozilla Public License is distributed on an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. Please refer to
 * the license for the specific language governing your rights and limitations.
 */

package pt.webdetails.cda.connections.metadata;



/**
 * Todo: Document me!
 */
public class MetadataConnection extends AbstractConnection {

  protected static final ConnectionType connectionType = ConnectionType.MQL;
  private MetadataConnectionInfo connectionInfo;

  public MetadataConnection( final Element connection ) throws InvalidConnectionException {
    super( connection );
  }

  public MetadataConnection() {
  }

  /**
   * @param id       this connection's ID
   * @param domainId domain ID
   * @param xmiFile  XMI file with metadata definition
   */
  public MetadataConnection( String id, String domainId, String xmiFile ) {
    super( id );
    this.connectionInfo = new MetadataConnectionInfo( domainId, xmiFile );
  }

  protected void initializeConnection( final Element connection ) throws InvalidConnectionException {