org.apache.myfaces.view.facelets.tag
Class TagAttributesImpl

java.lang.Object
  extended by javax.faces.view.facelets.TagAttributes
      extended by org.apache.myfaces.view.facelets.tag.TagAttributesImpl

public final class TagAttributesImpl
extends javax.faces.view.facelets.TagAttributes

A set of TagAttributes, usually representing all attributes on a Tag. TODO: PROFILE - Explore the possibility of using HashMap instead of sorted arrays. The footprint should be higher, but the instanciation and access speed should be faster Instanciation: from O(n log n) to O(1) Access: from O(log n) to O(1)

Version:
$Id: TagAttributes.java,v 1.3 2008/07/13 19:01:35 rlubke Exp $
Author:
Jacob Hookom
See Also:
org.apache.myfaces.view.facelets.tag.Tag, TagAttributeImpl

Constructor Summary
TagAttributesImpl(javax.faces.view.facelets.TagAttribute[] attrs)
           
 
Method Summary
 javax.faces.view.facelets.TagAttribute get(java.lang.String localName)
          Using no namespace, find the TagAttribute
 javax.faces.view.facelets.TagAttribute get(java.lang.String ns, java.lang.String localName)
          Find a TagAttribute that matches the passed namespace and local name.
 javax.faces.view.facelets.TagAttribute[] getAll()
          Return an array of all TagAttributes in this set
 javax.faces.view.facelets.TagAttribute[] getAll(java.lang.String namespace)
          Get all TagAttributes for the passed namespace
 java.lang.String[] getNamespaces()
          A list of Namespaces found in this set
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TagAttributesImpl

public TagAttributesImpl(javax.faces.view.facelets.TagAttribute[] attrs)
Method Detail

getAll

public javax.faces.view.facelets.TagAttribute[] getAll()
Return an array of all TagAttributes in this set

Specified by:
getAll in class javax.faces.view.facelets.TagAttributes
Returns:
a non-null array of TagAttributes

get

public javax.faces.view.facelets.TagAttribute get(java.lang.String localName)
Using no namespace, find the TagAttribute

Specified by:
get in class javax.faces.view.facelets.TagAttributes
Parameters:
localName - tag attribute name
Returns:
the TagAttribute found, otherwise null
See Also:
get(String, String)

get

public javax.faces.view.facelets.TagAttribute get(java.lang.String ns,
                                                  java.lang.String localName)
Find a TagAttribute that matches the passed namespace and local name.

Specified by:
get in class javax.faces.view.facelets.TagAttributes
Parameters:
ns - namespace of the desired attribute
localName - local name of the attribute
Returns:
a TagAttribute found, otherwise null

getAll

public javax.faces.view.facelets.TagAttribute[] getAll(java.lang.String namespace)
Get all TagAttributes for the passed namespace

Specified by:
getAll in class javax.faces.view.facelets.TagAttributes
Parameters:
namespace - namespace to search
Returns:
a non-null array of TagAttributes

getNamespaces

public java.lang.String[] getNamespaces()
A list of Namespaces found in this set

Specified by:
getNamespaces in class javax.faces.view.facelets.TagAttributes
Returns:
a list of Namespaces found in this set

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010 The Apache Software Foundation. All Rights Reserved.