Package org.docx4j.model.fields

Examples of org.docx4j.model.fields.FldSimpleModel


    };
  }

  @Override
  public Node toNode(AbstractWmlConversionContext context, Object unmarshalledNode, Node content, TransformState state, Document doc) throws TransformerException {
  FldSimpleModel fldSimpleModel = new FldSimpleModel();
    fldSimpleModel.build((CTSimpleField)unmarshalledNode, content);
   
    log.debug("looking for handler for " + fldSimpleModel.getFldName());
   
    FldSimpleWriterHandler handler = handlers.get(fldSimpleModel.getFldName());
    FldSimpleNodeWriterHandler nodeHandler = null;
    Node ret = null;
    String value = null;
    if (handler == null) {
      handler = defaultHandler;
View Full Code Here


                        }
                    }
                } else {

                    // Now format the result
                    FldSimpleModel fsm = new FldSimpleModel();
                    try {
                        fsm.build(instr);
                        val = FormattingSwitchHelper.applyFormattingSwitch(input, fsm, val);

                        gFormat = FormattingSwitchHelper.findFirstSwitchValue("\\*", fsm.getFldParameters(), true);
                        // Solely for potential use in OutputField.AS_FORMTEXT_REGULAR
                        // We are in fact applying all formatting switches above.

                    } catch (TransformerException e) {
                        log.warn("Can't format the field", e);
View Full Code Here

                        }
                    }       
        } else {
         
          // Now format the result
          FldSimpleModel fsm = new FldSimpleModel();
          try {
            fsm.build(instr);
            val = FormattingSwitchHelper.applyFormattingSwitch(input, fsm, val);
           
            gFormat = FormattingSwitchHelper.findFirstSwitchValue("\\*", fsm.getFldParameters(), true);
            // Solely for potential use in OutputField.AS_FORMTEXT_REGULAR
            // We are in fact applying all formatting switches above.
           
          } catch (TransformerException e) {
            log.warn("Can't format the field", e);
View Full Code Here

TOP

Related Classes of org.docx4j.model.fields.FldSimpleModel

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.