当前位置: 首页>>代码示例>>Java>>正文


Java XMLHandler类代码示例

本文整理汇总了Java中org.pentaho.di.core.xml.XMLHandler的典型用法代码示例。如果您正苦于以下问题:Java XMLHandler类的具体用法?Java XMLHandler怎么用?Java XMLHandler使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


XMLHandler类属于org.pentaho.di.core.xml包,在下文中一共展示了XMLHandler类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: loadXML

import org.pentaho.di.core.xml.XMLHandler; //导入依赖的package包/类
@Override public void loadXML(Node stepnode, List<DatabaseMeta> databases, IMetaStore metaStore)
    throws KettleXMLException {
    super.loadXML(stepnode, databases, metaStore);
    String truncateStr = XMLHandler.getTagValue(stepnode, "truncate");
    if (truncateStr.equals("true")) {
        setTruncate(true);
    } else {
        setTruncate(false);
    }

    int nrStreamFields = XMLHandler.countNodes(stepnode, "stream_fields");
    streamFields = new ArrayList<String>(nrStreamFields);
    for (int i = 0; i < nrStreamFields; i++) {
        Node fieldNode = XMLHandler.getSubNodeByNr(stepnode, "stream_fields", i);
        streamFields.add(XMLHandler.getTagValue(fieldNode, "name"));
    }
}
 
开发者ID:aliyun,项目名称:aliyun-maxcompute-data-collectors,代码行数:18,代码来源:OdpsOutputMeta.java

示例2: getXML

import org.pentaho.di.core.xml.XMLHandler; //导入依赖的package包/类
@Override public String getXML() throws KettleException {

        StringBuilder retVal = new StringBuilder();
        retVal.append(super.getXML());

        retVal.append("  ")
            .append(XMLHandler.addTagValue("truncate", isTruncate() ? "true" : "false"));

        for (int i = 0; i < streamFields.size(); i++) {
            String streamField = streamFields.get(i);
            retVal.append("  <stream_fields>").append(Const.CR);
            retVal.append("  ").append(XMLHandler.addTagValue("name", streamField.toLowerCase()));
            retVal.append("  </stream_fields>").append(Const.CR);
        }

        return retVal.toString();
    }
 
开发者ID:aliyun,项目名称:aliyun-maxcompute-data-collectors,代码行数:18,代码来源:OdpsOutputMeta.java

示例3: loadXML

import org.pentaho.di.core.xml.XMLHandler; //导入依赖的package包/类
@Override public void loadXML(Node stepnode, List<DatabaseMeta> databases, IMetaStore metaStore)
    throws KettleXMLException {
    setEndpoint(XMLHandler.getTagValue(stepnode, "endpoint"));
    setTunnelEndpoint(XMLHandler.getTagValue(stepnode, "tunnelEndpoint"));
    setAccessId(XMLHandler.getTagValue(stepnode, "accessId"));
    setAccessKey(XMLHandler.getTagValue(stepnode, "accessKey"));
    setProjectName(XMLHandler.getTagValue(stepnode, "projectName"));
    setTableName(XMLHandler.getTagValue(stepnode, "tableName"));
    setPartition(XMLHandler.getTagValue(stepnode, "partition"));

    int nrFields = XMLHandler.countNodes(stepnode, "fields");
    odpsFields = new ArrayList<OdpsField>(nrFields);
    for (int i = 0; i < nrFields; i++) {
        Node fieldNode = XMLHandler.getSubNodeByNr(stepnode, "fields", i);
        OdpsField field = new OdpsField();
        field.setName(XMLHandler.getTagValue(fieldNode, "name"));
        field.setType(XMLHandler.getTagValue(fieldNode, "type"));
        field.setComment(XMLHandler.getTagValue(fieldNode, "comment"));
        odpsFields.add(field);
    }
}
 
开发者ID:aliyun,项目名称:aliyun-maxcompute-data-collectors,代码行数:22,代码来源:OdpsMeta.java

示例4: getXML

import org.pentaho.di.core.xml.XMLHandler; //导入依赖的package包/类
@Override public String getXML() throws KettleException {
    StringBuilder retVal = new StringBuilder();
    retVal.append("  ").append(XMLHandler.addTagValue("endpoint", getEndpoint())).append("  ")
            .append("  ").append(XMLHandler.addTagValue("tunnelEndpoint", getTunnelEndpoint()))
        .append(XMLHandler.addTagValue("accessId", getAccessId())).append("  ")
        .append(XMLHandler.addTagValue("accessKey", getAccessKey())).append("  ")
        .append(XMLHandler.addTagValue("projectName", getProjectName())).append("  ")
        .append(XMLHandler.addTagValue("tableName", getTableName())).append("  ")
        .append(XMLHandler.addTagValue("partition", getPartition()));

    for (int i = 0; i < odpsFields.size(); i++) {
        OdpsField field = odpsFields.get(i);
        retVal.append("  <fields>").append(Const.CR);
        retVal.append("  ")
            .append(XMLHandler.addTagValue("name", field.getName().toLowerCase()));
        retVal.append("  ").append(XMLHandler.addTagValue("type", field.getType()));
        retVal.append("  ").append(XMLHandler.addTagValue("comment", field.getComment()));
        retVal.append("  </fields>").append(Const.CR);
    }

    return retVal.toString();
}
 
开发者ID:aliyun,项目名称:aliyun-maxcompute-data-collectors,代码行数:23,代码来源:OdpsMeta.java

示例5: getXML

import org.pentaho.di.core.xml.XMLHandler; //导入依赖的package包/类
/**
 * This method is called by Spoon when a step needs to serialize its configuration to XML. The expected
 * return value is an XML fragment consisting of one or more XML tags.  
 * 
 * Please use org.pentaho.di.core.xml.XMLHandler to conveniently generate the XML.
 * 
 * @return a string containing the XML serialization of this step
 */
 @Override
public String getXML() throws KettleValueException {
	StringBuilder retval = new StringBuilder( 1000 );

   retval.append( "    " ).append( XMLHandler.addTagValue( "provider_id", provider == null ? "" : provider.getName() ) );
   retval.append( "    " ).append( XMLHandler.addTagValue( "provider_desc", provider == null ? "" : provider.getDescription() ) );
   retval.append( "    " ).append( XMLHandler.addTagValue( "flow_id", dataflow == null ? "" : dataflow.getId() ) );
   retval.append( "    " ).append( XMLHandler.addTagValue( "flow_desc", dataflow == null ? "" : dataflow.getDescription() ) );
   retval.append( "    " ).append( XMLHandler.addTagValue( "query_sdmx", sdmxQuery == null ? "" : sdmxQuery ) );

	appendDimensions( retval );
   appendFields( retval );

	return retval.toString();
}
 
开发者ID:andtorg,项目名称:sdmx-kettle,代码行数:24,代码来源:SdmxStepMeta.java

示例6: appendFields

import org.pentaho.di.core.xml.XMLHandler; //导入依赖的package包/类
private void appendFields( StringBuilder sb ) {
  sb.append( "    <fields>" ).append( Const.CR );
  for ( int i = 0; i < fields.length; i++ ) {
    sb.append( "      <field>" ).append( Const.CR );
    sb.append( "        " ).append( XMLHandler.addTagValue( "name", fields[i].getName() ) );
    sb.append( "        " ).append( XMLHandler.addTagValue( "type", fields[i].getTypeDesc() ) );
    sb.append( "        " ).append( XMLHandler.addTagValue( "length", fields[i].getLength() ) );
    sb.append( "        " ).append( XMLHandler.addTagValue( "precision", fields[i].getPrecision() ) );
    sb.append( "        " ).append( XMLHandler.addTagValue( "trim_type", fields[i].getTrimTypeCode() ) );
    sb.append( "        " ).append( XMLHandler.addTagValue( "repeat", fields[i].isRepeated() ) );
    sb.append( "        " ).append( XMLHandler.addTagValue( "format", fields[i].getFormat() ) );
    sb.append( "        " ).append( XMLHandler.addTagValue( "currency", fields[i].getCurrencySymbol() ) );
    sb.append( "        " ).append( XMLHandler.addTagValue( "decimal", fields[i].getDecimalSymbol() ) );
    sb.append( "        " ).append( XMLHandler.addTagValue( "group", fields[i].getGroupSymbol() ) );
    sb.append( "      </field>" ).append( Const.CR );
  }
  sb.append( "    </fields>" ).append( Const.CR );
}
 
开发者ID:andtorg,项目名称:sdmx-kettle,代码行数:19,代码来源:SdmxStepMeta.java

示例7: getXML

import org.pentaho.di.core.xml.XMLHandler; //导入依赖的package包/类
/**
 * Get the XML that represents the values in this step
 *
 * @return the XML that represents the metadata in this step
 * @throws KettleException in case there is a conversion or XML encoding error
 */
public String getXML() {
  StringBuilder retval = new StringBuilder(150);
  retval.append("    ").append(XMLHandler.addTagValue("TableName", tabelName));
  retval.append("    ").append(XMLHandler.addTagValue("MDKeySize", mdkeySize));
  retval.append("    ").append(XMLHandler.addTagValue("Measurecount", measureCount));
  retval.append("    ").append(XMLHandler.addTagValue("HeirAndKeySize", heirAndKeySize));
  retval.append("    ").append(XMLHandler.addTagValue("tableName", tableName));
  retval.append("    ").append(XMLHandler.addTagValue("databaseName", databaseName));
  retval.append("    ").append(XMLHandler.addTagValue("isGroupByEnabled", groupByEnabled));
  retval.append("    ")
      .append(XMLHandler.addTagValue("aggregatorClassString", aggregatorClassString));
  retval.append("    ").append(XMLHandler.addTagValue("aggregatorString", aggregatorString));
  retval.append("    ").append(XMLHandler.addTagValue("factDimLensString", factDimLensString));
  retval.append("    ")
      .append(XMLHandler.addTagValue("levelAnddataTypeString", levelAnddataTypeString));
  retval.append("    ").append(XMLHandler.addTagValue("partitionID", partitionID));
  retval.append("    ").append(XMLHandler.addTagValue("segmentId", segmentId));
  retval.append("    ").append(XMLHandler.addTagValue("taskNo", taskNo));
  return retval.toString();
}
 
开发者ID:carbondata,项目名称:carbondata,代码行数:27,代码来源:CarbonSliceMergerStepMeta.java

示例8: loadXML

import org.pentaho.di.core.xml.XMLHandler; //导入依赖的package包/类
/**
 * Load the values for this step from an XML Node
 *
 * @param stepnode  the Node to get the info from
 * @param databases The available list of databases to reference to
 * @param counters  Counters to reference.
 * @throws KettleXMLException When an unexpected XML error occurred. (malformed etc.)
 */
@Override public void loadXML(Node stepnode, List<DatabaseMeta> databases,
    Map<String, Counter> counters) throws KettleXMLException {
  try {
    databaseName = XMLHandler.getTagValue(stepnode, "databaseName");
    tabelName = XMLHandler.getTagValue(stepnode, "TableName");
    mdkeySize = XMLHandler.getTagValue(stepnode, "MDKeySize");
    measureCount = XMLHandler.getTagValue(stepnode, "Measurecount");
    heirAndKeySize = XMLHandler.getTagValue(stepnode, "HeirAndKeySize");
    tableName = XMLHandler.getTagValue(stepnode, "tableName");
    groupByEnabled = XMLHandler.getTagValue(stepnode, "isGroupByEnabled");
    aggregatorClassString = XMLHandler.getTagValue(stepnode, "aggregatorClassString");
    aggregatorString = XMLHandler.getTagValue(stepnode, "aggregatorString");
    factDimLensString = XMLHandler.getTagValue(stepnode, "factDimLensString");
    levelAnddataTypeString = XMLHandler.getTagValue(stepnode, "levelAnddataTypeString");
    partitionID = XMLHandler.getTagValue(stepnode, "partitionID");
    segmentId = XMLHandler.getTagValue(stepnode, "segmentId");
    taskNo = XMLHandler.getTagValue(stepnode, "taskNo");
  } catch (Exception e) {
    throw new KettleXMLException("Unable to read step info from XML node", e);
  }
}
 
开发者ID:carbondata,项目名称:carbondata,代码行数:30,代码来源:CarbonSliceMergerStepMeta.java

示例9: getXML

import org.pentaho.di.core.xml.XMLHandler; //导入依赖的package包/类
/**
 * Get the XML that represents the values in this step
 *
 * @return the XML that represents the metadata in this step
 * @throws KettleException in case there is a conversion or XML encoding error
 */
public String getXML() {
  StringBuilder retval = new StringBuilder(150);
  retval.append("    ").append(XMLHandler.addTagValue("TableName", this.tabelName));
  retval.append("    ").append(XMLHandler.addTagValue("factDimLensString", factDimLensString));
  retval.append("    ").append(XMLHandler.addTagValue("outputRowSize", this.outputRowSize));
  retval.append("    ").append(XMLHandler.addTagValue("tableName", this.tableName));
  retval.append("    ").append(XMLHandler.addTagValue("databaseName", this.databaseName));
  retval.append("    ").append(XMLHandler.addTagValue("dimensionCount", this.dimensionCount));
  retval.append("    ").append(XMLHandler.addTagValue("noDictionaryDims", this.noDictionaryDims));
  retval.append("    ")
      .append(XMLHandler.addTagValue("noDictionaryDimsMapping", this.noDictionaryDimsMapping));
  retval.append("    ")
      .append(XMLHandler.addTagValue("complexDimensionCount", this.complexDimensionCount));
  retval.append("    ").append(XMLHandler.addTagValue("measureCount", this.measureCount));
  retval.append("    ")
      .append(XMLHandler.addTagValue("isUpdateMemberRequest", this.updateMemberRequest));
  retval.append("    ").append(XMLHandler.addTagValue("measureDataType", measureDataType));
  retval.append("    ").append(XMLHandler.addTagValue("partitionID", partitionID));
  retval.append("    ").append(XMLHandler.addTagValue("segmentId", segmentId));
  retval.append("    ").append(XMLHandler.addTagValue("taskNo", taskNo));
  return retval.toString();
}
 
开发者ID:carbondata,项目名称:carbondata,代码行数:29,代码来源:SortKeyStepMeta.java

示例10: loadXML

import org.pentaho.di.core.xml.XMLHandler; //导入依赖的package包/类
/**
 * Load the values for this step from an XML Node
 *
 * @param stepnode  the Node to get the info from
 * @param databases The available list of databases to reference to
 * @param counters  Counters to reference.
 * @throws KettleXMLException When an unexpected XML error occurred. (malformed etc.)
 */
public void loadXML(Node stepnode, List<DatabaseMeta> databases, Map<String, Counter> counters)
    throws KettleXMLException {
  try {
    this.tabelName = XMLHandler.getTagValue(stepnode, "TableName");
    this.outputRowSize = XMLHandler.getTagValue(stepnode, "outputRowSize");
    this.factDimLensString = XMLHandler.getTagValue(stepnode, "factDimLensString");
    this.tableName = XMLHandler.getTagValue(stepnode, "tableName");
    this.databaseName = XMLHandler.getTagValue(stepnode, "databaseName");
    this.dimensionCount = XMLHandler.getTagValue(stepnode, "dimensionCount");
    this.noDictionaryDims = XMLHandler.getTagValue(stepnode, "noDictionaryDims");
    this.noDictionaryDimsMapping = XMLHandler.getTagValue(stepnode, "noDictionaryDimsMapping");
    this.complexDimensionCount = XMLHandler.getTagValue(stepnode, "complexDimensionCount");
    this.measureCount = XMLHandler.getTagValue(stepnode, "measureCount");
    this.updateMemberRequest = XMLHandler.getTagValue(stepnode, "isUpdateMemberRequest");
    this.measureDataType = XMLHandler.getTagValue(stepnode, "measureDataType");
    this.partitionID = XMLHandler.getTagValue(stepnode, "partitionID");
    this.segmentId = XMLHandler.getTagValue(stepnode, "segmentId");
    this.taskNo = XMLHandler.getTagValue(stepnode, "taskNo");
  } catch (Exception e) {
    throw new KettleXMLException("Unable to read step info from XML node", e);
  }
}
 
开发者ID:carbondata,项目名称:carbondata,代码行数:31,代码来源:SortKeyStepMeta.java

示例11: getXML

import org.pentaho.di.core.xml.XMLHandler; //导入依赖的package包/类
public String getXML() {
  StringBuilder retval = new StringBuilder(150);

  retval.append("    ").append(XMLHandler.addTagValue("TableName", tableName));
  retval.append("    ").append(XMLHandler.addTagValue("AggregateLevels", aggregateLevels));
  retval.append("    ").append(XMLHandler.addTagValue("NumberOfCores", numberOfCores));
  retval.append("    ").append(XMLHandler.addTagValue("tableName", tableName));
  retval.append("    ").append(XMLHandler.addTagValue("databaseName", databaseName));
  retval.append("    ").append(XMLHandler.addTagValue("noDictionaryDims", noDictionaryDims));
  retval.append("    ").append(XMLHandler.addTagValue("measureCount", measureCount));
  retval.append("    ").append(XMLHandler.addTagValue("dimensionsStoreType", columnGroupsString));
  retval.append("    ").append(XMLHandler.addTagValue("dimensionCount", dimensionCount));
  retval.append("    ").append(XMLHandler.addTagValue("complexDimsCount", complexDimsCount));
  retval.append("    ").append(XMLHandler.addTagValue("complexTypeString", complexTypeString));
  retval.append("    ").append(XMLHandler.addTagValue("measureDataType", measureDataType));
  retval.append("    ").append(XMLHandler.addTagValue("taskNo", taskNo));
  retval.append("    ").append(XMLHandler.addTagValue("factTimeStamp", factTimeStamp));
  retval.append("    ").append(XMLHandler.addTagValue("factTimeStamp", factTimeStamp));
  retval.append("    ").append(XMLHandler.addTagValue("partitionID", partitionID));
  retval.append("    ").append(XMLHandler.addTagValue("isUseInvertedIndex", isUseInvertedIndex));
  retval.append("    ").append(XMLHandler.addTagValue("segmentId", segmentId));
  retval.append("    ")
      .append(XMLHandler.addTagValue("noDictionaryDimsMapping", noDictionaryDimsMapping));
  return retval.toString();
}
 
开发者ID:carbondata,项目名称:carbondata,代码行数:26,代码来源:MDKeyGenStepMeta.java

示例12: loadXML

import org.pentaho.di.core.xml.XMLHandler; //导入依赖的package包/类
@Override
public void loadXML(Node stepnode, List<DatabaseMeta> databases, Map<String, Counter> counters)
    throws KettleXMLException {
  try {
    tableName = XMLHandler.getTagValue(stepnode, "TableName");
    aggregateLevels = XMLHandler.getTagValue(stepnode, "AggregateLevels");
    numberOfCores = XMLHandler.getTagValue(stepnode, "NumberOfCores");
    databaseName = XMLHandler.getTagValue(stepnode, "databaseName");
    tableName = XMLHandler.getTagValue(stepnode, "tableName");
    noDictionaryDims = XMLHandler.getTagValue(stepnode, "noDictionaryDims");
    measureCount = XMLHandler.getTagValue(stepnode, "measureCount");
    columnGroupsString = XMLHandler.getTagValue(stepnode, "dimensionsStoreType");
    dimensionCount = XMLHandler.getTagValue(stepnode, "dimensionCount");
    complexDimsCount = XMLHandler.getTagValue(stepnode, "complexDimsCount");
    complexTypeString = XMLHandler.getTagValue(stepnode, "complexTypeString");
    measureDataType = XMLHandler.getTagValue(stepnode, "measureDataType");
    taskNo = XMLHandler.getTagValue(stepnode, "taskNo");
    factTimeStamp = XMLHandler.getTagValue(stepnode, "factTimeStamp");
    partitionID = XMLHandler.getTagValue(stepnode, "partitionID");
    isUseInvertedIndex = XMLHandler.getTagValue(stepnode, "isUseInvertedIndex");
    segmentId = XMLHandler.getTagValue(stepnode, "segmentId");
    noDictionaryDimsMapping = XMLHandler.getTagValue(stepnode, "noDictionaryDimsMapping");
  } catch (Exception e) {
    throw new KettleXMLException("Unable to read step info from XML node", e);
  }
}
 
开发者ID:carbondata,项目名称:carbondata,代码行数:27,代码来源:MDKeyGenStepMeta.java

示例13: getXML

import org.pentaho.di.core.xml.XMLHandler; //导入依赖的package包/类
public String getXML() {
  StringBuffer returnValue = new StringBuffer( 300 );

  returnValue.append( super.getXML() );
  returnValue.append( "      " ).append(
    XMLHandler.addTagValue( CONNECTION, databaseMeta == null ? null : databaseMeta.getName() ) );
  returnValue.append( "      " ).append( XMLHandler.addTagValue( MANAGEMENT_ACTION, getManagementAction() ) ); //$NON-NLS-1$ //$NON-NLS-2$
  returnValue.append( "      " ).append( XMLHandler.addTagValue( REPLACE, isReplace() ) ); //$NON-NLS-1$ //$NON-NLS-2$
  returnValue.append( "      " ).append( XMLHandler.addTagValue( FAIL_IF_EXISTS, isFailIfExists() ) ); //$NON-NLS-1$ //$NON-NLS-2$
  returnValue.append( "      " ).append( XMLHandler.addTagValue( WAREHOUSE_NAME, getWarehouseName() ) ); //$NON-NLS-1$ //$NON-NLS-2$
  returnValue.append( "      " ).append( XMLHandler.addTagValue( WAREHOUSE_SIZE, getWarehouseSize() ) ); //$NON-NLS-1$ //$NON-NLS-2$
  returnValue.append( "      " ).append( XMLHandler.addTagValue( WAREHOUSE_TYPE, getWarehouseType() ) ); //$NON-NLS-1$ //$NON-NLS-2$
  returnValue.append( "      " ).append( XMLHandler.addTagValue( MAX_CLUSTER_COUNT, getMaxClusterCount() ) ); //$NON-NLS-1$ //$NON-NLS-2$
  returnValue.append( "      " ).append( XMLHandler.addTagValue( MIN_CLUSTER_COUNT, getMinClusterCount() ) ); //$NON-NLS-1$ //$NON-NLS-2$
  returnValue.append( "      " ).append( XMLHandler.addTagValue( AUTO_SUSPEND, getAutoSuspend() ) ); //$NON-NLS-1$ //$NON-NLS-2$
  returnValue.append( "      " ).append( XMLHandler.addTagValue( AUTO_RESUME, isAutoResume() ) ); //$NON-NLS-1$ //$NON-NLS-2$
  returnValue.append( "      " ).append( XMLHandler.addTagValue( INITIALLY_SUSPENDED, isInitiallySuspended() ) ); //$NON-NLS-1$ //$NON-NLS-2$
  returnValue.append( "      " ).append( XMLHandler.addTagValue( RESOURCE_MONITOR, getResourceMonitor() ) ); //$NON-NLS-1$ //$NON-NLS-2$
  returnValue.append( "      " ).append( XMLHandler.addTagValue( COMMENT, getComment() ) ); //$NON-NLS-1$ //$NON-NLS-2$
  returnValue.append( "      " ).append( XMLHandler.addTagValue( FAIL_IF_NOT_EXISTS, isFailIfNotExists() ) );

  return returnValue.toString();
}
 
开发者ID:inquidia,项目名称:PentahoSnowflakePlugin,代码行数:24,代码来源:WarehouseManager.java

示例14: loadXML

import org.pentaho.di.core.xml.XMLHandler; //导入依赖的package包/类
public void loadXML( Node entryNode, List<DatabaseMeta> databases, List<SlaveServer> slaveServers, Repository rep ) throws KettleXMLException {
  try {
    super.loadXML( entryNode, databases, slaveServers );
    String dbname = XMLHandler.getTagValue( entryNode, CONNECTION );
    databaseMeta = DatabaseMeta.findDatabase( databases, dbname );

    setManagementAction( XMLHandler.getTagValue( entryNode, MANAGEMENT_ACTION ) );
    setReplace( "Y".equalsIgnoreCase( XMLHandler.getTagValue( entryNode, REPLACE ) ) );
    setFailIfExists( "Y".equalsIgnoreCase( XMLHandler.getTagValue( entryNode, FAIL_IF_EXISTS ) ) );
    setWarehouseName( XMLHandler.getTagValue( entryNode, WAREHOUSE_NAME ) );
    setWarehouseSize( XMLHandler.getTagValue( entryNode, WAREHOUSE_SIZE ) );
    setWarehouseType( XMLHandler.getTagValue( entryNode, WAREHOUSE_TYPE ) );
    setMaxClusterCount( XMLHandler.getTagValue( entryNode, MAX_CLUSTER_COUNT ) );
    setMinClusterCount( XMLHandler.getTagValue( entryNode, MIN_CLUSTER_COUNT ) );
    setAutoSuspend( XMLHandler.getTagValue( entryNode, AUTO_SUSPEND ) );
    setAutoResume( "Y".equalsIgnoreCase( XMLHandler.getTagValue( entryNode, AUTO_RESUME ) ) );
    setInitiallySuspended( "Y".equalsIgnoreCase( XMLHandler.getTagValue( entryNode, INITIALLY_SUSPENDED ) ) );
    setResourceMonitor( XMLHandler.getTagValue( entryNode, RESOURCE_MONITOR ) );
    setComment( XMLHandler.getTagValue( entryNode, COMMENT ) );
    setFailIfNotExists( "Y".equalsIgnoreCase( XMLHandler.getTagValue( entryNode, FAIL_IF_NOT_EXISTS ) ) );
  } catch ( KettleXMLException dbe ) {
    throw new KettleXMLException( BaseMessages.getString( PKG, "SnowflakeWarehouseManager.Error.Exception.UnableLoadXML" ), dbe );
  }
}
 
开发者ID:inquidia,项目名称:PentahoSnowflakePlugin,代码行数:25,代码来源:WarehouseManager.java

示例15: ARXFields

import org.pentaho.di.core.xml.XMLHandler; //导入依赖的package包/类
/**
 * Generating a new ARXFields from XML Type of Storage
 * @param parent The XML Node of the field
 * @author Florian Wiedner
 * @since 1.1
 * @category ARXFields
 */
public ARXFields(Node parent){
	this.name=XMLHandler.getTagValue(parent,"name");
	this.type=XMLHandler.getTagValue(parent,"type");
	this.functionMicro=XMLHandler.getTagValue(parent,"functionMicro");
	this.hierarchie=XMLHandler.getTagValue(parent,"hierarchie");
	this.attributeWeight=Double.parseDouble(XMLHandler.getTagValue(parent,"attributeWeight"));
	this.lDiversityC=Double.parseDouble(XMLHandler.getTagValue(parent,"lDiversityC"));
	this.tCloseness=Double.parseDouble(XMLHandler.getTagValue(parent,"tCloseness"));
	this.transformation=Integer.parseInt(XMLHandler.getTagValue(parent,"transformation"));
	this.minimumGen=Integer.parseInt(XMLHandler.getTagValue(parent,"minimumGen"));
	this.maximumGen=Integer.parseInt(XMLHandler.getTagValue(parent,"maximumGen"));
	this.lDiversity=Integer.parseInt(XMLHandler.getTagValue(parent,"lDiversity"));
	this.lDiversityVariant=Integer.parseInt(XMLHandler.getTagValue(parent,"lDiversityVariant"));
	this.tClosenessMeasure=Integer.parseInt(XMLHandler.getTagValue(parent,"tClosenessMeasure"));
	this.dDisclosure=Double.parseDouble(XMLHandler.getTagValue(parent,"dDisclosure"));
	this.missingDataMicro=Boolean.parseBoolean(XMLHandler.getTagValue(parent,"missingDataMicro"));
	this.lDiversityEnable=Boolean.parseBoolean(XMLHandler.getTagValue(parent,"lDiversityEnable"));
	this.tClosenessEnable=Boolean.parseBoolean(XMLHandler.getTagValue(parent,"tClosenessEnable"));
	this.dDisclosureEnable=Boolean.parseBoolean(XMLHandler.getTagValue(parent,"dDisclosureEnable"));
}
 
开发者ID:WiednerF,项目名称:ARXPlugin,代码行数:28,代码来源:ARXFields.java


注:本文中的org.pentaho.di.core.xml.XMLHandler类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。