org.richfaces.cdk.xmlconfig.model.FacetBean 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.xmlconfig.model;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.richfaces.cdk.model.ComponentLibrary;
import org.richfaces.cdk.model.ConfigExtension;
/**
*
*
*
* @author [email protected]
*/
@XmlType(name = "faces-config-facetType", namespace = ComponentLibrary.FACES_CONFIG_NAMESPACE, propOrder = { "name",
"extension" })
@XmlJavaTypeAdapter(FacetAdapter.class)
public class FacetBean extends ExtensibleBean {
private String name;
/**
*
*
*
* @return the name
*/
@XmlElement(name = "facet-name", namespace = ComponentLibrary.FACES_CONFIG_NAMESPACE)
public String getName() {
return name;
}
/**
*
*
*
* @param name the name to set
*/
public void setName(String name) {
this.name = name;
}
/**
*
*
*
* @return the extension
*/
@XmlElement(name = "facet-extension", namespace = ComponentLibrary.FACES_CONFIG_NAMESPACE)
public FacetExtension getExtension() {
return super.getExtension();
}
@Override
public void setExtension(FacetExtension extension) {
super.setExtension(extension);
}
/**
*
*
*
* @author [email protected]
*/
public static final class FacetExtension extends ConfigExtension {
private Boolean generate;
/**
*
*
*
* @return the generate
*/
@XmlElement(name = "generate", namespace = ComponentLibrary.CDK_EXTENSIONS_NAMESPACE)
public Boolean getGenerate() {
return generate;
}
/**
*
*
*
* @param generate the generate to set
*/
public void setGenerate(Boolean generate) {
this.generate = generate;
}
}
}