org.richfaces.cdk.templatecompiler.model.CompositeInterface Maven / Gradle / Ivy
The newest version!
/*
* $Id$
*
* License Agreement.
*
* Rich Faces - Natural Ajax for Java Server Faces (JSF)
*
* Copyright (C) 2007 Exadel, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.cdk.templatecompiler.model;
import java.io.Serializable;
import java.util.List;
import javax.faces.render.RenderKitFactory;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.richfaces.cdk.model.ClassName;
import org.richfaces.cdk.model.FacesId;
import org.richfaces.cdk.xmlconfig.model.ClassAdapter;
import org.richfaces.cdk.xmlconfig.model.FacesIdAdapter;
import com.google.common.collect.Lists;
/**
*
*
*
* @author [email protected]
* @author Brian Leathem
*/
@XmlRootElement(name = "interface", namespace = Template.COMPOSITE_NAMESPACE)
@XmlAccessorType(XmlAccessType.NONE)
public class CompositeInterface implements Serializable {
private static final long serialVersionUID = -5578359507253872500L;
@XmlJavaTypeAdapter(FacesIdAdapter.class)
@XmlElement(name = "component-family", namespace = Template.CDK_NAMESPACE)
private FacesId componentFamily;
@XmlElement(name = "attribute", namespace = Template.COMPOSITE_NAMESPACE)
private List attributes = Lists.newArrayList();
@XmlElement(name = "resource-dependency", namespace = Template.CDK_NAMESPACE)
private List resourceDependencies = Lists.newArrayList();
@XmlElement(name = "import-attributes", namespace = Template.CDK_NAMESPACE)
private List attributesImports = Lists.newArrayList();
@XmlJavaTypeAdapter(NormalizedStringAdapter.class)
@XmlElement(name = "renderkit-id", namespace = Template.CDK_NAMESPACE)
private String renderKitId = RenderKitFactory.HTML_BASIC_RENDER_KIT;
@XmlJavaTypeAdapter(ClassAdapter.class)
@XmlElement(name = "class", namespace = Template.CDK_NAMESPACE)
private ClassName javaClass;
@XmlJavaTypeAdapter(ClassAdapter.class)
@XmlElement(name = "superclass", namespace = Template.CDK_NAMESPACE)
private ClassName baseClass;
@XmlJavaTypeAdapter(ClassAdapter.class)
@XmlElement(name = "component-base-class", namespace = Template.CDK_NAMESPACE)
private ClassName componentBaseClass;
@XmlJavaTypeAdapter(FacesIdAdapter.class)
@XmlElement(name = "renderer-type", namespace = Template.CDK_NAMESPACE)
private FacesId rendererType;
@XmlElement(name = "renders-children", namespace = Template.CDK_NAMESPACE)
private Boolean rendersChildren = null;
@XmlElement(name = "import", namespace = Template.CDK_NAMESPACE)
private List classImports = Lists.newArrayList();
/**
*
*
*
* @return the family
*/
public FacesId getComponentFamily() {
return this.componentFamily;
}
/**
*
*
*
* @param family the family to set
*/
public void setComponentFamily(FacesId family) {
this.componentFamily = family;
}
/**
*
*
*
* @return the attributes
*/
public List getAttributes() {
return this.attributes;
}
/**
*
*
*
* @param attributes the attributes to set
*/
public void setAttributes(List attributes) {
this.attributes = attributes;
}
/**
*
*
*
* @return the resourceDependencies
*/
// @XmlElementWrapper(name = "resource-dependencies", namespace = Template.CDK_NAMESPACE)
public List getResourceDependencies() {
return resourceDependencies;
}
/**
*
*
*
* @param resourceDependencies the resourceDependencies to set
*/
public void setResourceDependencies(List resourceDependencies) {
this.resourceDependencies = resourceDependencies;
}
/**
*
*
*
* @return the renderKitId
*/
public String getRenderKitId() {
return this.renderKitId;
}
/**
*
*
*
* @param renderKitId the renderKitId to set
*/
public void setRenderKitId(String renderKitId) {
this.renderKitId = renderKitId;
}
/**
*
*
*
* @return the javaClass
*/
public ClassName getJavaClass() {
return this.javaClass;
}
/**
*
*
*
* @param javaClass the javaClass to set
*/
public void setJavaClass(ClassName javaClass) {
this.javaClass = javaClass;
}
/**
*
*
*
* @return the rendererType
*/
public FacesId getRendererType() {
return this.rendererType;
}
/**
*
*
*
* @param rendererType the rendererType to set
*/
public void setRendererType(FacesId rendererType) {
this.rendererType = rendererType;
}
/**
*
*
*
* @return the baseClass
*/
public ClassName getBaseClass() {
return this.baseClass;
}
/**
*
*
*
* @param baseClass the baseClass to set
*/
public void setBaseClass(ClassName baseClass) {
this.baseClass = baseClass;
}
/**
*
*
*
* @return the componentBaseClass
*/
public ClassName getComponentBaseClass() {
return this.componentBaseClass;
}
/**
*
*
*
* @param componentBaseClass the componentBaseClass to set
*/
public void setComponentBaseClass(ClassName componentBaseClass) {
this.componentBaseClass = componentBaseClass;
}
/**
*
*
*
* @return the rendersChildren
*/
public Boolean getRendersChildren() {
return rendersChildren;
}
/**
* @param rendersChildren the rendersChildren to set
*/
public void setRendersChildren(Boolean rendersChildren) {
this.rendersChildren = rendersChildren;
}
/**
*
*
*
* @return the attributesImports
*/
public List getAttributesImports() {
return attributesImports;
}
/**
*
*
*
* @param attributesImports the attributesImports to set
*/
public void setAttributesImports(List attributesImports) {
this.attributesImports = attributesImports;
}
/**
* @return the classImports
*/
public List getClassImports() {
return classImports;
}
/**
* @param classImports the classImports to set
*/
public void setClassImports(List classImports) {
this.classImports = classImports;
}
}