org.apache.myfaces.buildtools.maven2.plugin.builder.qdox
Class _TagAttributes

java.lang.Object
  extended by org.apache.myfaces.buildtools.maven2.plugin.builder.qdox._TagAttributes

public final class _TagAttributes
extends Object

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, org.apache.myfaces.view.facelets.tag.TagAttributeImpl

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

Constructor Detail

_TagAttributes

public _TagAttributes(_TagAttribute[] attrs)
Method Detail

getAll

public _TagAttribute[] getAll()
Return an array of all TagAttributes in this set

Returns:
a non-null array of TagAttributes

get

public _TagAttribute get(String localName)
Using no namespace, find the TagAttribute

Parameters:
localName - tag attribute name
Returns:
the TagAttribute found, otherwise null
See Also:
get(String, String)

get

public _TagAttribute get(String ns,
                         String localName)
Find a TagAttribute that matches the passed namespace and local name.

Parameters:
ns - namespace of the desired attribute
localName - local name of the attribute
Returns:
a TagAttribute found, otherwise null

getAll

public _TagAttribute[] getAll(String namespace)
Get all TagAttributes for the passed namespace

Parameters:
namespace - namespace to search
Returns:
a non-null array of TagAttributes

getNamespaces

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

Returns:
a list of Namespaces found in this set

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.