Package nexj.core.scripting

Examples of nexj.core.scripting.FormattingWriter


      if (schemeExpr == null || ObjUtil.equal(schemeExpr, defValue))
      {
         return;
      }

      FormattingWriter writer = (bMultiLine) ? Intrinsic.createPrettyFormatter(null, true)
         : new FormattingWriter(new StringWriter(), true);

      if (bList)
      {
         if (!(schemeExpr instanceof Pair))
         {
            throw new MetadataException("err.meta.service.expectedPairObject",
               new Object[]{schemeExpr});
         }

         for (Pair list = (Pair)schemeExpr; list != null; list = list.getNext())
         {
            writer.formatUnit(list.getHead(), false);
         }
      }
      else
      {
         writer.formatUnit(schemeExpr, false);
      }

      if (sAttrName == null)
      {
         m_writer.writeCDATA(writer.getOutputString());
      }
      else
      {
         m_writer.writeAttribute(sAttrName, writer.getOutputString());
      }
   }
View Full Code Here

TOP

Related Classes of nexj.core.scripting.FormattingWriter

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.