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

org.richfaces.cdk.templatecompiler.statements.PassThrough Maven / Gradle / Ivy

The newest version!
package org.richfaces.cdk.templatecompiler.statements;

import java.util.Set;

import javax.xml.namespace.QName;

import org.richfaces.cdk.attributes.Attribute.Kind;

import com.google.common.collect.Sets;

/**
 * 

* object contains information about attribute *

* * @author [email protected] * */ public final class PassThrough implements Comparable { QName name; Kind kind = Kind.GENERIC; String componentAttribute; String type; Object defaultValue; Set behaviors = Sets.newHashSet(); /** *

*

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

*

* * @return the kind */ public Kind getKind() { return this.kind; } /** *

*

* * @return the componentAttribute */ public String getComponentAttribute() { return this.componentAttribute; } /** *

*

* * @return the type */ public String getType() { return this.type; } /** *

*

* * @return the defaultValue */ public Object getDefaultValue() { return this.defaultValue; } /** *

*

* * @return the behaviors */ public Set getBehaviors() { return this.behaviors; } public String getBuilderMethod() { if (Kind.BOOLEAN.equals(kind)) { return "bool"; } else { return kind.toString().toLowerCase(); } } @Override public int compareTo(PassThrough o) { return name.toString().compareTo(o.name.toString()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy