javax.servlet.jsp.tagext

Class TagData

  • All Implemented Interfaces:
    Cloneable

    public class TagData
    extends Object
    implements Cloneable
    The (translation-time only) attribute/value information for a tag instance.

    TagData is only used as an argument to the isValid, validate, and getVariableInfo methods of TagExtraInfo, which are invoked at translation time.

    • Field Detail

      • REQUEST_TIME_VALUE

        public static final Object REQUEST_TIME_VALUE
        Distinguished value for an attribute to indicate its value is a request-time expression (which is not yet available because TagData instances are used at translation-time).
    • Constructor Detail

      • TagData

        public TagData(Object[][] atts)
        Constructor for TagData.

        A typical constructor may be

         static final Object[][] att = {{"connection", "conn0"}, {"id", "query0"}};
         static final TagData td = new TagData(att);
         
        All values must be Strings except for those holding the distinguished object REQUEST_TIME_VALUE.
        Parameters:
        atts - the static attribute and values. May be null.
      • TagData

        public TagData(Hashtable<String,Object> attrs)
        Constructor for a TagData. If you already have the attributes in a hashtable, use this constructor.
        Parameters:
        attrs - A hashtable to get the values from.
    • Method Detail

      • getId

        public String getId()
        The value of the tag's id attribute.
        Returns:
        the value of the tag's id attribute, or null if no such attribute was specified.
      • getAttribute

        public Object getAttribute(String attName)
        The value of the attribute. If a static value is specified for an attribute that accepts a request-time attribute expression then that static value is returned, even if the value is provided in the body of a <jsp:attribute> action. The distinguished object REQUEST_TIME_VALUE is only returned if the value is specified as a request-time attribute expression or via the <jsp:attribute> action with a body that contains dynamic content (scriptlets, scripting expressions, EL expressions, standard actions, or custom actions). Returns null if the attribute is not set.
        Parameters:
        attName - the name of the attribute
        Returns:
        the attribute's value
      • setAttribute

        public void setAttribute(String attName,
                                 Object value)
        Set the value of an attribute.
        Parameters:
        attName - the name of the attribute
        value - the value.
      • getAttributeString

        public String getAttributeString(String attName)
        Get the value for a given attribute.
        Parameters:
        attName - the name of the attribute
        Returns:
        the attribute value string
        Throws:
        ClassCastException - if attribute value is not a String
      • getAttributes

        public Enumeration<String> getAttributes()
        Enumerates the attributes.
        Returns:
        An enumeration of the attributes in a TagData

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 11/06/2005 gemaakt, de laatste keer de 18/08/2025 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-javaee-rf-javax/servlet/jsp/tagext/TagData.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.

Referenties

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com, TagData (Java(TM) EE 7 Specification APIs)

Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur van deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.