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

panda.tool.codegen.bean.Format Maven / Gradle / Ivy

Go to download

Panda Tool contains some commonly used tools and source code generator for Panda Mvc. Can generate Entity/Query/Dao/Action class, Freemarker (HTML) template file.

There is a newer version: 1.5.3
Show newest version
package panda.tool.codegen.bean;

import java.util.LinkedList;
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.XmlType;

/**
 * 

* Java class for Format complex type. *

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

 * <complexType name="Format">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="param" type="{panda.tool.codegen}Param" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="pattern" type="{http://www.w3.org/2001/XMLSchema}string" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
*/ @XmlAccessorType(XmlAccessType.NONE) @XmlType(name = "Format") public class Format { @XmlElement(name = "param") private List paramList; @XmlAttribute private String type; @XmlAttribute private String pattern; /** * Constructor */ public Format() { } /** * Constructor - copy properties from source * * @param format source format */ public Format(Format format) { this.type = format.type; this.pattern = format.pattern; paramList = new LinkedList(); for (Param p : format.getParamList()) { paramList.add(new Param(p)); } } /** * @return the paramList */ public List getParamList() { if (paramList == null) { paramList = new LinkedList(); } return this.paramList; } /** * Gets the value of the type property. * * @return possible object is {@link String } */ public String getType() { return type; } /** * Sets the value of the type property. * * @param value allowed object is {@link String } */ public void setType(String value) { this.type = value; } /** * @return the pattern */ public String getPattern() { return pattern; } /** * @param pattern the pattern to set */ public void setPattern(String pattern) { this.pattern = pattern; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy