javax.servlet.jsp.tagext
クラス TagAttributeInfo

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagAttributeInfo

public class TagAttributeInfo
extends java.lang.Object

Information on the attributes of a Tag, available at translation time. This class is instantiated from the Tag Library Descriptor file (TLD).

Only the information needed to generate code is included here. Other information like SCHEMA for validation belongs elsewhere.


フィールドの概要
static java.lang.String ID
          "id" is wired in to be ID.
 
コンストラクタの概要
TagAttributeInfo(java.lang.String name, boolean required, java.lang.String type, boolean reqTime)
          Constructor for TagAttributeInfo.
 
メソッドの概要
 boolean canBeRequestTime()
          Whether this attribute can hold a request-time value.
static TagAttributeInfo getIdAttribute(TagAttributeInfo[] a)
          Convenience static method that goes through an array of TagAttributeInfo objects and looks for "id".
 java.lang.String getName()
          The name of this attribute.
 java.lang.String getTypeName()
          The type (as a String) of this attribute.
 boolean isRequired()
          Whether this attribute is required.
 java.lang.String toString()
           
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

ID

public static final java.lang.String ID
"id" is wired in to be ID. There is no real benefit in having it be something else IDREFs are not handled any differently.

関連項目:
定数フィールド値
コンストラクタの詳細

TagAttributeInfo

public TagAttributeInfo(java.lang.String name,
                        boolean required,
                        java.lang.String type,
                        boolean reqTime)
Constructor for TagAttributeInfo. This class is to be instantiated only from the TagLibrary code under request from some JSP code that is parsing a TLD (Tag Library Descriptor).

パラメータ:
name - The name of the attribute.
required - If this attribute is required in tag instances.
type - The name of the type of the attribute.
reqTime - Whether this attribute holds a request-time Attribute.
メソッドの詳細

getName

public java.lang.String getName()
The name of this attribute.

戻り値:
the name of the attribute

getTypeName

public java.lang.String getTypeName()
The type (as a String) of this attribute.

戻り値:
the type of the attribute

canBeRequestTime

public boolean canBeRequestTime()
Whether this attribute can hold a request-time value.

戻り値:
if the attribute can hold a request-time value.

isRequired

public boolean isRequired()
Whether this attribute is required.

戻り値:
if the attribute is required.

getIdAttribute

public static TagAttributeInfo getIdAttribute(TagAttributeInfo[] a)
Convenience static method that goes through an array of TagAttributeInfo objects and looks for "id".

パラメータ:
a - An array of TagAttributeInfo
戻り値:
The TagAttributeInfo reference with name "id"

toString

public java.lang.String toString()
オーバーライド:
クラス java.lang.Object 内の toString


Copyright © 1999-2002 The Apache Software Foundation. All Rights Reserved.