Movatterモバイル変換


[0]ホーム

URL:


         


Class TagAttributeInfo

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

public classTagAttributeInfo
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.


ID
          "id" is wired in to be ID.
 
TagAttributeInfo(java.lang.String name, boolean required, java.lang.String type, boolean reqTime)
          Constructor for TagAttributeInfo.
 
canBeRequestTime()
          Whether this attribute can hold a request-time value.
getIdAttribute(TagAttributeInfo[] a)
          Convenience static method that goes through an array of TagAttributeInfo objects and looks for "id".
getName()
          The name of this attribute.
getTypeName()
          The type (as a String) of this attribute.
isRequired()
          Whether this attribute is required.
toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

ID

public static final java.lang.StringID
"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

publicTagAttributeInfo(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).
Parameters:
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.StringgetName()
The name of this attribute.
Returns:
the name of the attribute

getTypeName

public java.lang.StringgetTypeName()
The type (as a String) of this attribute.
Returns:
the type of the attribute

canBeRequestTime

public booleancanBeRequestTime()
Whether this attribute can hold a request-time value.
Returns:
if the attribute can hold a request-time value.

isRequired

public booleanisRequired()
Whether this attribute is required.
Returns:
if the attribute is required.

getIdAttribute

public staticTagAttributeInfogetIdAttribute(TagAttributeInfo[] a)
Convenience static method that goes through an array of TagAttributeInfo objects and looks for "id".
Parameters:
a - An array of TagAttributeInfo
Returns:
The TagAttributeInfo reference with name "id"

toString

public java.lang.StringtoString()
Overrides:
toString in classjava.lang.Object

         


[8]ページ先頭

©2009-2025 Movatter.jp