Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-528

add IComponentSpecification.getReservedParameterNames()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 4.0
    • 4.0
    • Framework
    • None

    Description

      It will allow documentation generators to include reserved parameter names in the generated docs.
      I have included the implementation.
      Br,
      Norbi

      ------------- 8< ------------- 8< ------------- 8< ------------- 8< ------------- 8< ------------- 8< ------------- 8< -------------

      Index: IComponentSpecification.java
      ===================================================================
      RCS file: /home/cvspublic/jakarta-tapestry/framework/src/java/org/apache/tapestry/spec/IComponentSpecification.java,v
      retrieving revision 1.11
      diff -u -r1.11 IComponentSpecification.java
      — IComponentSpecification.java 6 Jun 2005 22:28:19 -0000 1.11
      +++ IComponentSpecification.java 4 Aug 2005 19:04:27 -0000
      @@ -16,6 +16,7 @@

      import java.util.Collection;
      import java.util.List;
      +import java.util.Set;

      import org.apache.hivemind.Locatable;
      import org.apache.hivemind.LocationHolder;
      @@ -197,6 +198,12 @@
      public boolean isReservedParameterName(String value);

      /**
      + * @return reserved parameter names
      + * @since 4.0
      + */
      + public Set getReservedParameterNames();
      +
      + /**

      • Returns the documentation for this component.
      • @since 1.0.9

      ------------- 8< ------------- 8< ------------- 8< ------------- 8< ------------- 8< ------------- 8< ------------- 8< -------------

      Index: ComponentSpecification.java
      ===================================================================
      RCS file: /home/cvspublic/jakarta-tapestry/framework/src/java/org/apache/tapestry/spec/ComponentSpecification.java,v
      retrieving revision 1.12
      diff -u -r1.12 ComponentSpecification.java
      — ComponentSpecification.java 9 Jun 2005 18:33:44 -0000 1.12
      +++ ComponentSpecification.java 4 Aug 2005 19:05:43 -0000
      @@ -472,6 +472,11 @@
      return _reservedParameterNames.contains(value.toLowerCase());
      }

      + public Set getReservedParameterNames()
      +

      { + return _reservedParameterNames; + }

      +
      public String toString()
      {
      ToStringBuilder builder = new ToStringBuilder(this);

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            snorbi Norbert Sándor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: