Package org.eclipse.jst.pagedesigner.dtmanager.converter

Examples of org.eclipse.jst.pagedesigner.dtmanager.converter.ITransformOperation


  protected Element executeChildOperations(Element srcElement, Element curElement) {
    Element retElement = curElement;
    if (childOperations != null && childOperations.size() > 0) {
      Iterator itChildOperations = childOperations.iterator();
      while (itChildOperations.hasNext()) {
        ITransformOperation childOperation = (ITransformOperation)itChildOperations.next();
        retElement = childOperation.transform(srcElement, retElement);
      }
    }
    return retElement;
  }
View Full Code Here


   *
   * @param tagName Name of Element to be created.
   * @return New Element instance.
   */
  protected Element createElement(String tagName) {
    ITransformOperation operation =
      TransformOperationFactory.getInstance().getTransformOperation(
          TransformOperationFactory.OP_CreateElementOperation,
          new String[]{tagName});
    operation.setTagConverterContext(tagConverterContext);
    return operation.transform(null, null);
  }
View Full Code Here

   * @param parentElement Element instance to which to append the new
   * Element.
   * @return New Element instance.
   */
  protected Element appendChildElement(String tagName, Element parentElement) {
    ITransformOperation operation =
      TransformOperationFactory.getInstance().getTransformOperation(
          TransformOperationFactory.OP_AppendChildElementOperation,
          new String[]{tagName});
    operation.setTagConverterContext(tagConverterContext);
    return operation.transform(null, parentElement);
  }
View Full Code Here

   *
   * @param content Content of new child Text.
   * @param parentElement Element instance to which to append the new Text.
   */
  protected void appendChildText(String content, Element parentElement) {
    ITransformOperation operation =
      TransformOperationFactory.getInstance().getTransformOperation(
          TransformOperationFactory.OP_AppendChildTextOperation,
          new String[]{content});
    operation.setTagConverterContext(tagConverterContext);
    operation.transform(null, parentElement);
  }
View Full Code Here

      synchronized(transformOperations) {
        if (transformOperations.size() > 0) {
          curElement = srcElement;
          Iterator itOperations = transformOperations.iterator();
          while (itOperations.hasNext()) {
            ITransformOperation operation = (ITransformOperation)itOperations.next();
            curElement = operation.transform(srcElement, curElement);
          }
        }
      }
    }
    return curElement;
View Full Code Here

  private boolean appendOperationsToTransformer(ITransformer transformer, EList operations, IDTInfo dtInfo) {
    Iterator itOperations = operations.iterator();
    while (itOperations.hasNext()) {
      Operation operation = (Operation)itOperations.next();
      ITransformOperation currentTransformOperation = null;
      String opID = operation.getId();
      String[] params = getParamsArray(operation);
      currentTransformOperation =
        TransformOperationFactory.getInstance().getTransformOperation(opID, params);
      if (currentTransformOperation != null) {
View Full Code Here

  private boolean appendChildOperations(ITransformOperation parentOperation, EList operations, IDTInfo dtInfo) {
    Iterator itOperations = operations.iterator();
    while (itOperations.hasNext()) {
      Operation operation = (Operation)itOperations.next();
      ITransformOperation currentTransformOperation = null;
      String opID = operation.getId();
      String[] params = getParamsArray(operation);
      currentTransformOperation =
        TransformOperationFactory.getInstance().getTransformOperation(opID, params);
      if (currentTransformOperation != null) {
View Full Code Here

TOP

Related Classes of org.eclipse.jst.pagedesigner.dtmanager.converter.ITransformOperation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.