commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject cvs commit: jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/io BeanRuleSet.java
Date Tue, 03 Aug 2004 21:45:59 GMT
rdonkin     2004/08/03 14:45:59

  Modified:    betwixt/src/java/org/apache/commons/betwixt Tag:
                        RELEASE_0_6_BRANCH ElementDescriptor.java
                        XMLIntrospector.java
               betwixt/src/java/org/apache/commons/betwixt/digester Tag:
                        RELEASE_0_6_BRANCH XMLIntrospectorHelper.java
               betwixt/src/java/org/apache/commons/betwixt/io Tag:
                        RELEASE_0_6_BRANCH BeanRuleSet.java
  Log:
  Added version numbers to methods deprecated since 0.5
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.17.2.1  +5 -5      jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/ElementDescriptor.java
  
  Index: ElementDescriptor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/ElementDescriptor.java,v
  retrieving revision 1.17
  retrieving revision 1.17.2.1
  diff -u -r1.17 -r1.17.2.1
  --- ElementDescriptor.java	4 Jul 2004 16:59:14 -0000	1.17
  +++ ElementDescriptor.java	3 Aug 2004 21:45:59 -0000	1.17.2.1
  @@ -107,7 +107,7 @@
       /**
        * Base constructor.
        * @param primitiveType if true, this element refers to a primitive type
  -     * @deprecated PrimitiveType property has been removed
  +     * @deprecated 0.6 PrimitiveType property has been removed
        */
       public ElementDescriptor(boolean primitiveType) {
           this.primitiveType = primitiveType;
  @@ -184,7 +184,7 @@
        *
        * @param wrapCollectionsInElement true if the elements for the items in the collection

        * should be contained in a parent element
  -     * @deprecated moved to a declarative style of descriptors where the alrogithmic should
  +     * @deprecated 0.6 moved to a declarative style of descriptors where the alrogithmic
should
        * be done during introspection
        */
       public void setWrapCollectionsInElement(boolean wrapCollectionsInElement) {
  @@ -199,7 +199,7 @@
        *
        * @return true if the elements for the items in the collection should be contained

        * in a parent element
  -     * @deprecated moved to a declarative style of descriptors where the alrogithmic should
  +     * @deprecated 0.6 moved to a declarative style of descriptors where the alrogithmic
should
        * be done during introspection
        */
       public boolean isWrapCollectionsInElement() {
  @@ -425,7 +425,7 @@
       /** 
        * Returns true if this element refers to a primitive type property
        * @return whether this element refers to a primitive type (or property of a parent
object) 
  -     * @deprecated moved to a declarative style of descriptors where the alrogithmic should
  +     * @deprecated 0.6 moved to a declarative style of descriptors where the alrogithmic
should
        * be done during introspection
        */
       public boolean isPrimitiveType() {
  @@ -435,7 +435,7 @@
       /** 
        * Sets whether this element refers to a primitive type (or property of a parent object)

        * @param primitiveType true if this element refers to a primitive type
  -     * @deprecated moved to a declarative style of descriptors where the alrogithmic should
  +     * @deprecated 0.6 moved to a declarative style of descriptors where the alrogithmic
should
        * be done during introspection
        */
       public void setPrimitiveType(boolean primitiveType) {
  
  
  
  1.31.2.1  +17 -17    jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/XMLIntrospector.java
  
  Index: XMLIntrospector.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/XMLIntrospector.java,v
  retrieving revision 1.31
  retrieving revision 1.31.2.1
  diff -u -r1.31 -r1.31.2.1
  --- XMLIntrospector.java	14 Jul 2004 21:38:17 -0000	1.31
  +++ XMLIntrospector.java	3 Aug 2004 21:45:59 -0000	1.31.2.1
  @@ -72,7 +72,7 @@
   public class XMLIntrospector {
       /** 
        * Log used for logging (Doh!) 
  -     * @deprecated use the {@link #getLog()} property instead
  +     * @deprecated 0.6 use the {@link #getLog()} property instead
        */    
       protected Log log = LogFactory.getLog( XMLIntrospector.class );
       
  @@ -184,7 +184,7 @@
         *
         * @return the <code>ClassNormalizer</code> used to determine the Class
to be introspected
         * for a given Object.
  -      * @deprecated use getConfiguration().getClassNormalizer
  +      * @deprecated 0.6 use getConfiguration().getClassNormalizer
         * @since 0.5
         */
       public ClassNormalizer getClassNormalizer() {
  @@ -198,7 +198,7 @@
         *
         * @param classNormalizer the <code>ClassNormalizer</code> to be used
to determine 
         * the Class to be introspected for a given Object.
  -      * @deprecated use getConfiguration().setClassNormalizer
  +      * @deprecated 0.6 use getConfiguration().setClassNormalizer
         * @since 0.5
         *
         */    
  @@ -230,7 +230,7 @@
       /** 
         * Should attributes (or elements) be used for primitive types.
         * @return true if primitive types will be mapped to attributes in the introspection
  -      * @deprecated use getConfiguration().isAttributesForPrimitives
  +      * @deprecated 0.6 use getConfiguration().isAttributesForPrimitives
         */
       public boolean isAttributesForPrimitives() {
           return getConfiguration().isAttributesForPrimitives();
  @@ -240,7 +240,7 @@
         * Set whether attributes (or elements) should be used for primitive types. 
         * @param attributesForPrimitives pass trus to map primitives to attributes,
         *        pass false to map primitives to elements
  -      * @deprecated use getConfiguration().setAttributesForPrimitives
  +      * @deprecated 0.6 use getConfiguration().setAttributesForPrimitives
         */
       public void setAttributesForPrimitives(boolean attributesForPrimitives) {
           getConfiguration().setAttributesForPrimitives(attributesForPrimitives);
  @@ -250,7 +250,7 @@
        * Should collections be wrapped in an extra element?
        * 
        * @return whether we should we wrap collections in an extra element? 
  -     * @deprecated use getConfiguration().isWrapCollectionsInElement
  +     * @deprecated 0.6 use getConfiguration().isWrapCollectionsInElement
        */
       public boolean isWrapCollectionsInElement() {
           return getConfiguration().isWrapCollectionsInElement();
  @@ -261,7 +261,7 @@
        *
        * @param wrapCollectionsInElement pass true if collections should be wrapped in a
        *        parent element
  -     * @deprecated use getConfiguration().setWrapCollectionsInElement
  +     * @deprecated 0.6 use getConfiguration().setWrapCollectionsInElement
        */
       public void setWrapCollectionsInElement(boolean wrapCollectionsInElement) {
           getConfiguration().setWrapCollectionsInElement(wrapCollectionsInElement);
  @@ -271,7 +271,7 @@
        * Get singular and plural matching strategy.
        *
        * @return the strategy used to detect matching singular and plural properties 
  -     * @deprecated use getConfiguration().getPluralStemmer
  +     * @deprecated 0.6 use getConfiguration().getPluralStemmer
        */
       public PluralStemmer getPluralStemmer() {
           return getConfiguration().getPluralStemmer();
  @@ -281,7 +281,7 @@
        * Sets the strategy used to detect matching singular and plural properties 
        *
        * @param pluralStemmer the PluralStemmer used to match singular and plural
  -     * @deprecated use getConfiguration().setPluralStemmer 
  +     * @deprecated 0.6 use getConfiguration().setPluralStemmer 
        */
       public void setPluralStemmer(PluralStemmer pluralStemmer) {
           getConfiguration().setPluralStemmer(pluralStemmer);
  @@ -314,7 +314,7 @@
        *
        * @return the strategy used to convert bean type names into element 
        * names. If no element mapper is currently defined then a default one is created.
  -     * @deprecated use getConfiguration().getElementNameMapper
  +     * @deprecated 0.6 use getConfiguration().getElementNameMapper
        */ 
       public NameMapper getElementNameMapper() {
           return getConfiguration().getElementNameMapper();
  @@ -323,7 +323,7 @@
       /**
        * Sets the strategy used to convert bean type names into element names
        * @param nameMapper the NameMapper to use for the conversion
  -     * @deprecated use getConfiguration().setElementNameMapper
  +     * @deprecated 0.6 use getConfiguration().setElementNameMapper
        */
       public void setElementNameMapper(NameMapper nameMapper) {
           getConfiguration().setElementNameMapper( nameMapper );
  @@ -335,7 +335,7 @@
        *
        * @return the strategy used to convert bean type names into attribute
        * names. If no attributeNamemapper is known, it will default to the ElementNameMapper
  -     * @deprecated getConfiguration().getAttributeNameMapper
  +     * @deprecated 0.6 getConfiguration().getAttributeNameMapper
        */
       public NameMapper getAttributeNameMapper() {
           return getConfiguration().getAttributeNameMapper();
  @@ -345,7 +345,7 @@
       /**
        * Sets the strategy used to convert bean type names into attribute names
        * @param nameMapper the NameMapper to use for the convertion
  -     * @deprecated use getConfiguration().setAttributeNameMapper
  +     * @deprecated 0.6 use getConfiguration().setAttributeNameMapper
        */
       public void setAttributeNameMapper(NameMapper nameMapper) {
           getConfiguration().setAttributeNameMapper( nameMapper );
  @@ -356,7 +356,7 @@
        * By default it will be false.
        * 
        * @return boolean if the beanInfoSearchPath should be used.
  -     * @deprecated use getConfiguration().useBeanInfoSearchPath
  +     * @deprecated 0.6 use getConfiguration().useBeanInfoSearchPath
        */
       public boolean useBeanInfoSearchPath() {
           return getConfiguration().useBeanInfoSearchPath();
  @@ -366,7 +366,7 @@
        * Specifies if you want to use the beanInfoSearchPath 
        * @see java.beans.Introspector for more details
        * @param useBeanInfoSearchPath 
  -     * @deprecated use getConfiguration().setUseBeanInfoSearchPath
  +     * @deprecated 0.6 use getConfiguration().setUseBeanInfoSearchPath
        */
       public void setUseBeanInfoSearchPath(boolean useBeanInfoSearchPath) {
           getConfiguration().setUseBeanInfoSearchPath( useBeanInfoSearchPath );
  @@ -895,7 +895,7 @@
        * to detect matching singular and plural properties.
        *
        * @return new defualt PluralStemmer implementation
  -     * @deprecated this method has been moved into IntrospectionConfiguration.
  +     * @deprecated 0.6 this method has been moved into IntrospectionConfiguration.
        * Those who need to vary this should subclass that class instead
        */
       protected PluralStemmer createPluralStemmer() {
  @@ -907,7 +907,7 @@
        * used to convert bean type names into element names.
        *
        * @return new default NameMapper implementation
  -     * @deprecated this method has been moved into IntrospectionConfiguration.
  +     * @deprecated 0.6 this method has been moved into IntrospectionConfiguration.
        * Those who need to vary this should subclass that class instead
        */
       protected NameMapper createNameMapper() {
  
  
  
  No                   revision
  No                   revision
  1.32.2.1  +8 -8      jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/digester/XMLIntrospectorHelper.java
  
  Index: XMLIntrospectorHelper.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/digester/XMLIntrospectorHelper.java,v
  retrieving revision 1.32
  retrieving revision 1.32.2.1
  diff -u -r1.32 -r1.32.2.1
  --- XMLIntrospectorHelper.java	14 Jul 2004 21:38:17 -0000	1.32
  +++ XMLIntrospectorHelper.java	3 Aug 2004 21:45:59 -0000	1.32.2.1
  @@ -214,7 +214,7 @@
        *
        * @param elementDescriptor configure this <code>ElementDescriptor</code>
        * @param propertyDescriptor configure from this <code>PropertyDescriptor</code>
  -     * @deprecated unused
  +     * @deprecated 0.6 unused
        */
       public static void configureProperty( 
                                       ElementDescriptor elementDescriptor, 
  @@ -234,7 +234,7 @@
        * @param beanClass the <code>Class</code> from which the update method
should be found.
        * This may be null only when <code>updateMethodName</code> is also null.
        * @since 0.5
  -     * @deprecated moved into ElementRule
  +     * @deprecated 0.6 moved into ElementRule
        */
       public static void configureProperty( 
                                       ElementDescriptor elementDescriptor, 
  @@ -342,7 +342,7 @@
        *
        * @param attributeDescriptor configure this <code>AttributeDescriptor</code>
        * @param propertyDescriptor configure from this <code>PropertyDescriptor</code>
  -     * @deprecated moved into AttributeRule
  +     * @deprecated 0.6 moved into AttributeRule
        */
       public static void configureProperty( 
                                       AttributeDescriptor attributeDescriptor, 
  @@ -405,7 +405,7 @@
        * @param introspector use this <code>XMLIntrospector</code> for introspection
        * @param rootDescriptor add defaults to this descriptor
        * @param beanClass the <code>Class</code> to which descriptor corresponds
  -     * @deprecated use the method in XMLIntrospector instead
  +     * @deprecated 0.6 use the method in XMLIntrospector instead
        */
       public static void defaultAddMethods( 
                                               XMLIntrospector introspector, 
  @@ -573,7 +573,7 @@
        * type can be varied.
        * @param type is this <code>Class<code> a primitive type?
        * @return true for primitive types 
  -     * @deprecated replaced by {@link org.apache.commons.betwixt.strategy.TypeBindingStrategy}
  +     * @deprecated 0.6 replaced by {@link org.apache.commons.betwixt.strategy.TypeBindingStrategy}
        */
       public static boolean isPrimitiveType(Class type) {
           if ( type == null ) {
  @@ -610,7 +610,7 @@
        * searched for a match
        * @param propertyName the name of the 'adder' method to match
        * @return <code>ElementDescriptor</code> for the matching getter 
  -     * @deprecated moved into XMLIntrospector
  +     * @deprecated 0.6 moved into XMLIntrospector
        */
       protected static ElementDescriptor findGetCollectionDescriptor( 
                                                   XMLIntrospector introspector, 
  @@ -647,7 +647,7 @@
        * @param rootDescriptor the values of the maps are the children of this 
        * <code>ElementDescriptor</code> index by their property names
        * @param map the map to which the elements will be added
  -     * @deprecated moved into XMLIntrospector
  +     * @deprecated 0.6 moved into XMLIntrospector
        */
       protected static void makeElementDescriptorMap( ElementDescriptor rootDescriptor, Map
map ) {
           ElementDescriptor[] children = rootDescriptor.getElementDescriptors();
  @@ -670,7 +670,7 @@
        * @param rootDescriptor traverse child graph for this <code>ElementDescriptor</code>
        * @param oldValue replace this <code>ElementDescriptor</code>
        * @param newValue replace with this <code>ElementDescriptor</code>
  -     * @deprecated now unused
  +     * @deprecated 0.6 now unused
        */     
       protected static void swapDescriptor( 
                                   ElementDescriptor rootDescriptor, 
  
  
  
  No                   revision
  No                   revision
  1.20.2.1  +2 -2      jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/io/BeanRuleSet.java
  
  Index: BeanRuleSet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/io/BeanRuleSet.java,v
  retrieving revision 1.20
  retrieving revision 1.20.2.1
  diff -u -r1.20 -r1.20.2.1
  --- BeanRuleSet.java	4 Jul 2004 16:58:17 -0000	1.20
  +++ BeanRuleSet.java	3 Aug 2004 21:45:59 -0000	1.20.2.1
  @@ -98,7 +98,7 @@
        * @param baseBeanClass the <code>Class</code> whose mapping rules will
be created
        * @param context the root Context that bean carrying Contexts should be obtained from,

        * not null
  -     * @deprecated use the constructor which takes a ReadContext instead
  +     * @deprecated 0.6 use the constructor which takes a ReadContext instead
        */
       public BeanRuleSet(
           XMLIntrospector introspector,
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message