You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlbeans-cvs@xml.apache.org by pc...@apache.org on 2004/03/09 21:01:58 UTC

cvs commit: xml-xmlbeans/v2/jam_old/src/org/apache/xmlbeans/impl/jam/editable/impl EElementImpl.java

pcal        2004/03/09 12:01:57

  Modified:    v2/jam/src/org/apache/xmlbeans/impl/jam/internal/elements
                        MemberImpl.java
               v2/jam_old/src/org/apache/xmlbeans/impl/jam JElement.java
               v2/jam_old/src/org/apache/xmlbeans/impl/jam/editable
                        EElement.java
               v2/jam_old/src/org/apache/xmlbeans/impl/jam/editable/impl
                        EElementImpl.java
  Log:
  java2schema update, add artifact prop to old jam
  
  Revision  Changes    Path
  1.3       +1 -0      xml-xmlbeans/v2/jam/src/org/apache/xmlbeans/impl/jam/internal/elements/MemberImpl.java
  
  Index: MemberImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/jam/src/org/apache/xmlbeans/impl/jam/internal/elements/MemberImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MemberImpl.java	9 Mar 2004 11:47:10 -0000	1.2
  +++ MemberImpl.java	9 Mar 2004 20:01:57 -0000	1.3
  @@ -50,6 +50,7 @@
   
     public JClass getContainingClass() {
       System.out.println("--------cont class in Memberiml "+this.getClass());
  +    Thread.dumpStack();
       JElement p = getParent();
       //FIXME very gross
       if (p instanceof JClass) return (JClass)p;
  
  
  
  1.2       +8 -1      xml-xmlbeans/v2/jam_old/src/org/apache/xmlbeans/impl/jam/JElement.java
  
  Index: JElement.java
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/jam_old/src/org/apache/xmlbeans/impl/jam/JElement.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- JElement.java	9 Mar 2004 10:23:06 -0000	1.1
  +++ JElement.java	9 Mar 2004 20:01:57 -0000	1.2
  @@ -147,5 +147,12 @@
      */
     public JComment[] getComments();
   
  -
  +  /**
  +   * <p>This is not something you want to mess with.  It's here only for the
  +   * benefit of some JAM implementations which need a handle back to the
  +   * actual implementation-specific object which is being proxied by this
  +   * JElement.</p>
  +   * @return
  +   */
  +  public Object getArtifact();
   }
  
  
  
  1.2       +8 -0      xml-xmlbeans/v2/jam_old/src/org/apache/xmlbeans/impl/jam/editable/EElement.java
  
  Index: EElement.java
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/jam_old/src/org/apache/xmlbeans/impl/jam/editable/EElement.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- EElement.java	9 Mar 2004 10:23:06 -0000	1.1
  +++ EElement.java	9 Mar 2004 20:01:57 -0000	1.2
  @@ -67,4 +67,12 @@
      * </p>
      */
     public void acceptAndWalk(EElementVisitor visitor);
  +
  +  /**
  +   * <p>This is not something you want to mess with.  It's here only for the
  +   * benefit of some JAM implementations which need a handle back to the
  +   * actual implementation-specific object which is being proxied by this
  +   * JElement.</p>
  +     */
  +  public void setArtifact(Object o);
   }
  
  
  
  1.2       +11 -0     xml-xmlbeans/v2/jam_old/src/org/apache/xmlbeans/impl/jam/editable/impl/EElementImpl.java
  
  Index: EElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/jam_old/src/org/apache/xmlbeans/impl/jam/editable/impl/EElementImpl.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- EElementImpl.java	9 Mar 2004 10:23:07 -0000	1.1
  +++ EElementImpl.java	9 Mar 2004 20:01:57 -0000	1.2
  @@ -35,6 +35,7 @@
     private JClassLoader mClassLoader;
     private List mAnnotations = null;
     private EComment mComment = null;
  +  private Object mArtifact = null;
   
     // ========================================================================
     // Constructors
  @@ -117,6 +118,10 @@
       if (mAnnotations != null) mAnnotations.remove(ann);
     }
   
  +  public void setArtifact(Object o) {
  +    mArtifact = o;
  +  }
  +
     public EAnnotation[] getEditableAnnotations() {
       if (mAnnotations == null) return new EAnnotation[0];
       EAnnotation[] out = new EAnnotation[mAnnotations.size()];
  @@ -134,6 +139,8 @@
       return null;
     }
   
  +
  +
     // ========================================================================
     // Public methods & JClass impl
   
  @@ -178,5 +185,9 @@
     public JComment[] getComments() {
       JComment c = getComment();
       return (c == null) ? new JComment[0] : new JComment[] {c};
  +  }
  +
  +  public Object getArtifact() {
  +    return mArtifact;
     }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xmlbeans-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-cvs-help@xml.apache.org