All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sweble.wikitext.lazy.parser.ExternalLink Maven / Gradle / Ivy

There is a newer version: 3.1.9
Show newest version
/* 
 * This file is auto-generated.
 * DO NOT MODIFY MANUALLY!
 * 
 * Generated by AstNodeGenerator.
 * Last generated: 2014-09-12 00:37:37.
 */

package org.sweble.wikitext.lazy.parser;

import de.fau.cs.osr.ptk.common.ast.*;




/**
 * 

External Link

*

Grammar

*
    *
  • '[' Url Space* ']'

    *
  • *
  • '[' Url Space+ Title ']'

    *
  • *
*

The title can contain

*
    *
  • InternalLink

    *
  • *
  • MagicWord

    *
  • *
  • ParserEntity

    *
  • *
  • Signature

    *
  • *
  • Ticks

    *
  • *
  • XmlReference

    *
  • *
*

The title cannot contain

*
    *
  • Newline

    *
      *
    • Tables

      *
    • *
    • Headings

      *
    • *
    • Horizontal lines

      *
    • *
    • Block level elements

      *
    • *
    *
  • *
  • ExternalLink

    *
  • *
  • PlainExternalLink

    *
  • *
  • XmlElement(*)

    *
  • *
*

The title can syntactically not contain

*
    *
  • Newlines

    *
  • *
*/ public class ExternalLink extends InnerNode.InnerNode2 { private static final long serialVersionUID = 1L; // ========================================================================= public ExternalLink() { super(new Url(), new NodeList()); } public ExternalLink(Url target) { super(target, new NodeList()); } public ExternalLink(Url target, NodeList title) { super(target, title); } @Override public int getNodeType() { return org.sweble.wikitext.lazy.AstNodeTypes.NT_EXTERNAL_LINK; } // ========================================================================= // Properties // ========================================================================= // Children public final void setTarget(Url target) { set(0, target); } public final Url getTarget() { return (Url) get(0); } public final void setTitle(NodeList title) { set(1, title); } public final NodeList getTitle() { return (NodeList) get(1); } private static final String[] CHILD_NAMES = new String[] {"target", "title"}; public final String[] getChildNames() { return CHILD_NAMES; } // ========================================================================= }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy