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

org.richfaces.cdk.templatecompiler.model.AnyElement 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 static org.richfaces.cdk.templatecompiler.QNameComparator.QNAME_COMPARATOR;

import java.util.Map;
import java.util.TreeMap;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.namespace.QName;

import org.richfaces.cdk.CdkException;

/**
 * 

*

* * @author [email protected] */ @XmlAccessorType(XmlAccessType.NONE) public class AnyElement extends ModelFragment { private QName name; @XmlAttribute(namespace = Template.CDK_NAMESPACE) private String passThrough; @XmlAttribute(namespace = Template.CDK_NAMESPACE) private String passThroughWithExclusions; @XmlAnyAttribute private Map attributes = new TreeMap(QNAME_COMPARATOR); /** *

*

* * @return the name */ public QName getName() { return this.name; } /** *

*

* * @param name the name to set */ public void setName(QName name) { this.name = name; } /** *

*

* * @return the passThrough */ public String getPassThrough() { return this.passThrough; } /** *

*

* * @param passThrough the passThrough to set */ public void setPassThrough(String passThrough) { this.passThrough = passThrough; } /** *

*

* * @return the passThroughWithExclusions */ public String getPassThroughWithExclusions() { return this.passThroughWithExclusions; } /** *

*

* * @param passThroughWithExclusions the passThroughWithExclusions to set */ public void setPassThroughWithExclusions(String passThroughWithExclusions) { this.passThroughWithExclusions = passThroughWithExclusions; } /** *

*

* * @return the attributes */ public Map getAttributes() { return this.attributes; } /** *

*

* * @param attributes the attributes to set */ public void setAttributes(Map attributes) { this.attributes = attributes; } @Override public void beforeVisit(TemplateVisitor visitor) throws CdkException { visitor.startElement(this); } @Override public void afterVisit(TemplateVisitor visitor) throws CdkException { visitor.endElement(this); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy