Package com.google.template.soy.msgs.restricted

Examples of com.google.template.soy.msgs.restricted.SoyMsgRawTextPart


              " (found element '" + qName + "' in message).");
        }
        // Placeholder in message: Save the preceding raw text (if any) and then save the
        // placeholder name.
        if (currRawTextPart != null) {
          currMsgParts.add(new SoyMsgRawTextPart(currRawTextPart));
          currRawTextPart = null;
        }
        currMsgParts.add(new SoyMsgPlaceholderPart(atts.getValue("id")));
      }
    }
View Full Code Here


      if (qName.equals("target")) {
        // End 'target': Save the preceding raw text (if any). Then create a SoyMsg object from the
        // collected message data and add it to msgs list.
        if (currRawTextPart != null) {
          currMsgParts.add(new SoyMsgRawTextPart(currRawTextPart));
          currRawTextPart = null;
        }
        isInMsg = false;
        if (currMsgParts.size() > 0) {
          msgs.add(new SoyMsg(
View Full Code Here

    List<SoyMsgPart> msgParts = Lists.newArrayList();

    for (StandaloneNode child : parent.getChildren()) {
      if (child instanceof RawTextNode) {
        String rawText = ((RawTextNode) child).getRawText();
        msgParts.add(new SoyMsgRawTextPart(rawText));
      } else if (child instanceof MsgPlaceholderNode) {
        String placeholderName = msgNode.getPlaceholderName((MsgPlaceholderNode) child);
        msgParts.add(new SoyMsgPlaceholderPart(placeholderName));
      } else if (child instanceof MsgPluralRemainderNode) {
        msgParts.add(new SoyMsgPluralRemainderPart(
View Full Code Here

TOP

Related Classes of com.google.template.soy.msgs.restricted.SoyMsgRawTextPart

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.