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

org.sweble.wikitext.engine.log.ResolveTransclusionLog Maven / Gradle / Ivy

Go to download

A minimal engine using the Sweble Wikitext Parser to process articles in the context of a MediaWiki-like configuration.

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:38:33.
 */

package org.sweble.wikitext.engine.log;

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




/**
 * 

Resolve Transclusion Log

*/ public class ResolveTransclusionLog extends ContentNode { private static final long serialVersionUID = 1L; // ========================================================================= public ResolveTransclusionLog() { super(); } public ResolveTransclusionLog(String target, boolean success) { super(); setTarget(target); setSuccess(success); } // ========================================================================= // Properties private boolean success; public final boolean getSuccess() { return this.success; } public final boolean setSuccess(boolean success) { boolean old = this.success; this.success = success; return old; } private String target; public final String getTarget() { return this.target; } public final String setTarget(String target) { String old = this.target; this.target = target; return old; } private String canonical; public final String getCanonical() { return this.canonical; } public final String setCanonical(String canonical) { String old = this.canonical; this.canonical = canonical; return old; } private Long timeNeeded; public final Long getTimeNeeded() { return this.timeNeeded; } public final Long setTimeNeeded(Long timeNeeded) { Long old = this.timeNeeded; this.timeNeeded = timeNeeded; return old; } @Override public final int getPropertyCount() { return 4; } @Override public final AstNodePropertyIterator propertyIterator() { return new AstNodePropertyIterator() { @Override protected int getPropertyCount() { return 4; } @Override protected String getName(int index) { switch (index) { case 0: return "success"; case 1: return "target"; case 2: return "canonical"; case 3: return "timeNeeded"; default: throw new IndexOutOfBoundsException(); } } @Override protected Object getValue(int index) { switch (index) { case 0: return ResolveTransclusionLog.this.getSuccess(); case 1: return ResolveTransclusionLog.this.getTarget(); case 2: return ResolveTransclusionLog.this.getCanonical(); case 3: return ResolveTransclusionLog.this.getTimeNeeded(); default: throw new IndexOutOfBoundsException(); } } @Override protected Object setValue(int index, Object value) { switch (index) { case 0: return ResolveTransclusionLog.this.setSuccess((Boolean) value); case 1: return ResolveTransclusionLog.this.setTarget((String) value); case 2: return ResolveTransclusionLog.this.setCanonical((String) value); case 3: return ResolveTransclusionLog.this.setTimeNeeded((Long) value); default: throw new IndexOutOfBoundsException(); } } }; } // ========================================================================= // Children // ========================================================================= }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy