Package net.java.textilej.parser

Examples of net.java.textilej.parser.QuoteAttributes



  private void applyQuoteAttributes(Attributes attributes) {
    applyAttributes(attributes);
    if (attributes instanceof QuoteAttributes) {
      QuoteAttributes quoteAttributes = (QuoteAttributes) attributes;
      if (quoteAttributes.getCitation() != null) {
        writer.writeAttribute("cite", quoteAttributes.getCitation());
      }
    }
  }
View Full Code Here


  }

  @Override
  public int processLineContent(String line,int offset) {
    if (blockLineCount == 0) {
      QuoteAttributes attributes = new QuoteAttributes();
     
      Textile.configureAttributes(attributes,matcher, 1,true);
     
      attributes.setCitation(matcher.group(CITATION_GROUP));
     
      offset = matcher.start(LINE_REMAINDER_GROUP);
      extended = matcher.group(EXTENDED_GROUP) != null;
     
      builder.beginBlock(BlockType.QUOTE, attributes);
View Full Code Here

TOP

Related Classes of net.java.textilej.parser.QuoteAttributes

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.