poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ser...@apache.org
Subject svn commit: r1150605 - /poi/trunk/src/types/styles/hdftype.xsl
Date Mon, 25 Jul 2011 09:38:05 GMT
Author: sergey
Date: Mon Jul 25 09:38:05 2011
New Revision: 1150605

URL: http://svn.apache.org/viewvc?rev=1150605&view=rev
Log:
mark autogenerated methods as internal, but leave them as public

Modified:
    poi/trunk/src/types/styles/hdftype.xsl

Modified: poi/trunk/src/types/styles/hdftype.xsl
URL: http://svn.apache.org/viewvc/poi/trunk/src/types/styles/hdftype.xsl?rev=1150605&r1=1150604&r2=1150605&view=diff
==============================================================================
--- poi/trunk/src/types/styles/hdftype.xsl (original)
+++ poi/trunk/src/types/styles/hdftype.xsl Mon Jul 25 09:38:05 2011
@@ -32,6 +32,7 @@ package <xsl:value-of select="@package"/
 </xsl:if>
 
 import org.apache.poi.util.BitField;
+import org.apache.poi.util.Internal;
 import org.apache.poi.util.LittleEndian;
 import org.apache.poi.util.StringUtil;
 import org.apache.poi.util.HexDump;
@@ -39,10 +40,15 @@ import org.apache.poi.hwpf.usermodel.*;
 
 /**
  * <xsl:value-of select="/record/description"/>
+ * &lt;p&gt;
  * NOTE: This source is automatically generated please do not modify this file.  Either subclass
or
  *       remove the record in src/types/definitions.
+ * &lt;p&gt;
+ * This class is internal. It content or properties may change without notice 
+ * due to changes in our knowledge of internal Microsoft Word binary structures.
 <xsl:apply-templates select="author"/><xsl:text>
  */
+@Internal
 public abstract class </xsl:text><xsl:value-of select="@name"/><xsl:text>AbstractType
 {
 
@@ -208,6 +214,7 @@ public abstract class </xsl:text><xsl:va
      * Sets the <xsl:value-of select="@name"/> field value.
      * <xsl:value-of select="@description"/>
      */
+    @Internal
     public void set<xsl:value-of select="recutil:getFieldName1stCap(@name,0)"/>( <xsl:value-of
select="recutil:getBitFieldType(@name, @mask, ../@type)"/> value )
     {
         <xsl:value-of select="recutil:getFieldName($fieldNum,../@name,0)"/> = <xsl:value-of
select="recutil:getBitFieldSet(@name, @mask, ../@type, recutil:getFieldName($fieldNum,../@name,0))"/>;
@@ -217,6 +224,7 @@ public abstract class </xsl:text><xsl:va
      * <xsl:value-of select="@description"/>
      * @return  the <xsl:value-of select="@name"/> field value.
      */
+    @Internal
     public <xsl:value-of select="recutil:getBitFieldFunction(@name,@mask,../@type, 'true')"/>()
     {
         return <xsl:value-of select="recutil:getBitFieldGet(@name, @mask,../@type, recutil:getFieldName($fieldNum,../@name,0))"/>
@@ -244,7 +252,7 @@ public abstract class </xsl:text><xsl:va
         </xsl:if>
         <xsl:call-template name="indent"/>
         <xsl:text>/**/</xsl:text>
-        <xsl:text>public final static </xsl:text>
+        <xsl:text>protected final static </xsl:text>
         <xsl:value-of select="@type"/>
         <xsl:text> </xsl:text>
         <xsl:value-of select="recutil:getConstName(../@name,@name,0)"/>
@@ -290,6 +298,7 @@ public abstract class </xsl:text><xsl:va
      *
      * @return One of <xsl:apply-templates select="./const" mode="listconsts"/></xsl:if>
      */
+    @Internal
     public <xsl:value-of select="@type"/> get<xsl:value-of select="recutil:getFieldName1stCap(@name,0)"/>()
     {
         return <xsl:value-of select="recutil:getFieldName(position(),@name,0)"/>;
@@ -314,6 +323,7 @@ public abstract class </xsl:text><xsl:va
      * @param <xsl:value-of select="recutil:getFieldName(position(),@name,0)"/>
      *        One of <xsl:apply-templates select="./const" mode="listconsts"/></xsl:if>
      */
+    @Internal
     public void set<xsl:value-of select="recutil:getFieldName1stCap(@name,0)"/>( <xsl:value-of
select="@type"/><xsl:text> </xsl:text><xsl:value-of select="recutil:getFieldName(position(),@name,0)"/>
)
     {
         this.<xsl:value-of select="recutil:getFieldName(position(),@name,0)"/> = <xsl:value-of
select="recutil:getFieldName(position(),@name,0)"/>;



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message