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

com.bitplan.mediawiki.japi.api.Page Maven / Gradle / Ivy

Go to download

Java library to call Mediawiki API described at http://www.mediawiki.org/wiki/API:Main_page

There is a newer version: 0.2.3
Show newest version
/**
 *
 * This file is part of the https://github.com/WolfgangFahl/Mediawiki-Japi open source project
 *
 * Copyright 2015-2017 BITPlan GmbH https://github.com/BITPlan
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 *
 *  You may obtain a copy of the License at
 *
 *  http:www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2015.01.01 at 07:50:59 PM CET 
//


package com.bitplan.mediawiki.japi.api;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.datatype.XMLGregorianCalendar;



/**
 * 

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType>
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="revisions">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="rev">
 *                     <complexType>
 *                       <simpleContent>
 *                         <extension base="<http://www.w3.org/2001/XMLSchema>string">
 *                           <attribute name="contentformat" type="{http://www.w3.org/2001/XMLSchema}string" />
 *                           <attribute name="contentmodel" type="{http://www.w3.org/2001/XMLSchema}string" />
 *                         </extension>
 *                       </simpleContent>
 *                     </complexType>
 *                   </element>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *       </sequence>
 *       <attribute name="pageid" type="{http://www.w3.org/2001/XMLSchema}short" />
 *       <attribute name="ns" type="{http://www.w3.org/2001/XMLSchema}byte" />
 *       <attribute name="title" type="{http://www.w3.org/2001/XMLSchema}string" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlRootElement public class Page { @XmlAttribute(name = "pageid") protected Short pageid; @XmlAttribute(name = "ns") protected Integer ns; @XmlAttribute(name = "title") protected String title; @XmlTransient protected List revisions=new ArrayList(); @XmlTransient protected List images=new ArrayList(); @XmlElement protected Imageinfo imageinfo; /** * Gets the value of the revisions property. * * @return list of {@link Rev } * */ @XmlElementWrapper(name="revisions") @XmlElement(name="rev", type=Rev.class) public List getRevisions() { return revisions; } /** * Sets the value of the revisions property. * * @param value list of {@link Rev } * */ public void setRevisions(List value) { this.revisions = value; } /** * Gets the value of the images property. * * @return list of {@link Im } * */ @XmlElementWrapper(name="images") @XmlElement(name="im", type=Im.class) public List getImages() { return images; } /** * Sets the value of the images property. * * @param value list of {@link Im } * */ public void setImages(List value) { this.images = value; } /** * Gets the value of the pageid property. * * @return * possible object is * {@link Short } * */ public Short getPageid() { return pageid; } /** * Sets the value of the pageid property. * * @param value * allowed object is * {@link Short } * */ public void setPageid(Short value) { this.pageid = value; } /** * Gets the value of the ns property. * * @return * possible object is * {@link Integer } * */ public Integer getNs() { return ns; } /** * Sets the value of the ns property. * * @param value * allowed object is * {@link Integer } * */ public void setNs(Integer value) { this.ns = value; } /** * Gets the value of the title property. * * @return * possible object is * {@link String } * */ public String getTitle() { return title; } /** * Sets the value of the title property. * * @param value * allowed object is * {@link String } * */ public void setTitle(String value) { this.title = value; } /** * Mediawiki 1_19 */ @XmlAttribute @XmlSchemaType(name = "dateTime") protected XMLGregorianCalendar touched; @XmlAttribute protected Integer lastrevid; @XmlAttribute protected Integer counter; @XmlAttribute protected Integer length; @XmlAttribute(name = "new") protected String _new; @XmlAttribute @XmlSchemaType(name = "dateTime") protected XMLGregorianCalendar starttimestamp; @XmlAttribute protected String edittoken; @XmlAttribute protected String deletetoken; /** * Gets the value of the touched property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getTouched() { return touched; } /** * Sets the value of the touched property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setTouched(XMLGregorianCalendar value) { this.touched = value; } /** * Gets the value of the lastrevid property. * * @return * possible object is * {@link Integer } * */ public Integer getLastrevid() { return lastrevid; } /** * Sets the value of the lastrevid property. * * @param value * allowed object is * {@link Integer } * */ public void setLastrevid(Integer value) { this.lastrevid = value; } /** * Gets the value of the counter property. * * @return * possible object is * {@link Integer } * */ public Integer getCounter() { return counter; } /** * Sets the value of the counter property. * * @param value * allowed object is * {@link Integer } * */ public void setCounter(Integer value) { this.counter = value; } /** * Gets the value of the length property. * * @return * possible object is * {@link Integer } * */ public Integer getLength() { return length; } /** * Sets the value of the length property. * * @param value * allowed object is * {@link Integer } * */ public void setLength(Integer value) { this.length = value; } /** * Gets the value of the new property. * * @return * possible object is * {@link String } * */ public String getNew() { return _new; } /** * Sets the value of the new property. * * @param value * allowed object is * {@link String } * */ public void setNew(String value) { this._new = value; } /** * Gets the value of the starttimestamp property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getStarttimestamp() { return starttimestamp; } /** * Sets the value of the starttimestamp property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setStarttimestamp(XMLGregorianCalendar value) { this.starttimestamp = value; } /** * Gets the value of the edittoken property. * * @return * possible object is * {@link String } * */ public String getEdittoken() { return edittoken; } /** * Sets the value of the edittoken property. * * @param value * allowed object is * {@link String } * */ public void setEdittoken(String value) { this.edittoken = value; } /** * @return the deletetoken */ public String getDeletetoken() { return deletetoken; } /** * @param deletetoken the deletetoken to set */ public void setDeletetoken(String deletetoken) { this.deletetoken = deletetoken; } /** * Ruft den Wert der imageinfo-Eigenschaft ab. * * @return * possible object is * {@link Imageinfo } * */ public Imageinfo getImageinfo() { return imageinfo; } /** * Legt den Wert der imageinfo-Eigenschaft fest. * * @param value * allowed object is * {@link Imageinfo } * */ public void setImageinfo(Imageinfo value) { this.imageinfo = value; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy