add IComponentSpecification.getReservedParameterNames()
-------------------------------------------------------
Key: TAPESTRY-528
URL: http://issues.apache.org/jira/browse/TAPESTRY-528
Project: Tapestry
Type: Improvement
Components: Framework
Versions: 4.0
Reporter: Norbert Sándor
Priority: Trivial
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);
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]