abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r465078 - in /incubator/abdera/java/trunk: core/src/main/java/org/apache/abdera/factory/ core/src/main/java/org/apache/abdera/model/ core/src/main/java/org/apache/abdera/util/ parser/src/main/java/org/apache/abdera/parser/stax/
Date Tue, 17 Oct 2006 22:16:12 GMT
Author: jmsnell
Date: Tue Oct 17 15:16:11 2006
New Revision: 465078

URL: http://svn.apache.org/viewvc?view=rev&rev=465078
Log:
In the current draft of APP, app:modified became app:edited

Modified:
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/factory/Factory.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Entry.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/Constants.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMEntry.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/factory/Factory.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/factory/Factory.java?view=diff&rev=465078&r1=465077&r2=465078
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/factory/Factory.java
(original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/factory/Factory.java
Tue Oct 17 15:16:11 2006
@@ -168,14 +168,14 @@
   DateTime newUpdated(Element parent);
 
   /**
-   * Create a new app:modified element
+   * Create a new app:edited element
    */
-  DateTime newModified();
+  DateTime newEdited();
   
   /**
-   * create a new app:modified element as a child of the given Element
+   * create a new app:edited element as a child of the given Element
    */
-  DateTime newModified(Element parent);
+  DateTime newEdited(Element parent);
   
   /**
    * Create a new DateTime element with the given QName as a child of the given Element.

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Entry.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Entry.java?view=diff&rev=465078&r1=465077&r2=465078
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Entry.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Entry.java Tue
Oct 17 15:16:11 2006
@@ -548,18 +548,18 @@
   DateTime setUpdated(String value);
   
   /**
-   * APP Introduces a new app:modified element whose value changes 
+   * APP Introduces a new app:edited element whose value changes 
    * every time the entry is updated
    */
-  DateTime getModifiedElement();
+  DateTime getEditedElement();
   
-  void setModifiedElement(DateTime modified);
+  void setEditedElement(DateTime modified);
   
-  Date getModified();
+  Date getEdited();
   
-  DateTime setModified(Date value);
+  DateTime setEdited(Date value);
   
-  DateTime setModified(String value);
+  DateTime setEdited(String value);
   
   /**
    * Returns this entries Atom Publishing Protocol control element

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/Constants.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/Constants.java?view=diff&rev=465078&r1=465077&r2=465078
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/Constants.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/Constants.java Tue
Oct 17 15:16:11 2006
@@ -74,7 +74,7 @@
   public static final String LN_SUMMARY           = "summary";
   public static final String LN_TITLE             = "title";
   public static final String LN_UPDATED           = "updated";
-  public static final String LN_MODIFIED          = "modified";
+  public static final String LN_EDITED          = "edited";
   public static final String LN_TERM              = "term";
   public static final String LN_SCHEME            = "scheme";
   public static final String LN_LABEL             = "label";
@@ -121,7 +121,7 @@
   public static final QName TITLE                 = new QName(ATOM_NS, LN_TITLE, PREFIX);
   public static final QName PREFIXED_TITLE        = new QName(ATOM_NS, LN_TITLE, "atom");
   public static final QName UPDATED               = new QName(ATOM_NS, LN_UPDATED, PREFIX);
-  public static final QName MODIFIED              = new QName(APP_NS, LN_MODIFIED, "app");
+  public static final QName EDITED                = new QName(APP_NS, LN_EDITED, "app");
   public static final QName ENTRY                 = new QName(ATOM_NS, LN_ENTRY, PREFIX);
   public static final QName TERM                  = new QName(LN_TERM);
   public static final QName SCHEME                = new QName(LN_SCHEME);

Modified: incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMEntry.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMEntry.java?view=diff&rev=465078&r1=465077&r2=465078
==============================================================================
--- incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMEntry.java
(original)
+++ incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMEntry.java
Tue Oct 17 15:16:11 2006
@@ -619,46 +619,46 @@
     return setUpdated((value != null) ? AtomDate.valueOf(value) : null);
   }
 
-  public DateTime getModifiedElement() {
-    return (DateTime)getFirstChildWithName(MODIFIED);
+  public DateTime getEditedElement() {
+    return (DateTime)getFirstChildWithName(EDITED);
   }
 
-  public void setModifiedElement(DateTime updated) {
+  public void setEditedElement(DateTime updated) {
     declareNamespace(APP_NS, "app");
     if (updated != null)
-      _setChild(MODIFIED, (OMElement)updated);
+      _setChild(EDITED, (OMElement)updated);
     else 
-      _removeChildren(MODIFIED, false);
+      _removeChildren(EDITED, false);
   }
 
-  public Date getModified() {
-    DateTime dte = getModifiedElement();
+  public Date getEdited() {
+    DateTime dte = getEditedElement();
     return (dte != null) ? dte.getDate() : null;
   }
   
   private DateTime setModified(AtomDate value) {
     declareNamespace(APP_NS, "app");
     if (value == null) {
-      _removeChildren(MODIFIED, false);
+      _removeChildren(EDITED, false);
       return null;
     }
-    DateTime dte = getModifiedElement();
+    DateTime dte = getEditedElement();
     if (dte != null) {
       dte.setValue(value);
       return dte;
     } else {
       FOMFactory fomfactory = (FOMFactory) factory;
-      DateTime dt = fomfactory.newModified(this);
+      DateTime dt = fomfactory.newEdited(this);
       dt.setValue(value);
       return dt;
     }
   }
   
-  public DateTime setModified(Date value) {
+  public DateTime setEdited(Date value) {
     return setModified((value != null) ? AtomDate.valueOf(value) : null);
   }
   
-  public DateTime setModified(String value) {
+  public DateTime setEdited(String value) {
     return setUpdated((value != null) ? AtomDate.valueOf(value) : null);
   }
   

Modified: incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java?view=diff&rev=465078&r1=465077&r2=465078
==============================================================================
--- incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java
(original)
+++ incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java
Tue Oct 17 15:16:11 2006
@@ -486,12 +486,12 @@
     return newDateTime(Constants.UPDATED, parent);
   }
 
-  public DateTime newModified() {
-    return newModified(null);
+  public DateTime newEdited() {
+    return newEdited(null);
   }
   
-  public DateTime newModified(Element parent) {
-    return newDateTime(Constants.MODIFIED, parent);
+  public DateTime newEdited(Element parent) {
+    return newDateTime(Constants.EDITED, parent);
   }
 
   public IRIElement newIcon() {
@@ -707,7 +707,7 @@
         element = new FOMDiv(qname.getLocalPart(), namespace, parent, factory);
       } else if (CATEGORIES.equals(qname)) {
         element = new FOMCategories(qname.getLocalPart(), namespace, parent, factory);
-      } else if (MODIFIED.equals(qname)) {
+      } else if (EDITED.equals(qname)) {
         element = new FOMDateTime(qname.getLocalPart(), namespace, parent, factory);
       } else if (parent instanceof ExtensibleElement || 
                  parent instanceof Document) {
@@ -781,7 +781,7 @@
       element = (OMElement) newDiv(qname, parent, builder);
     } else if (CATEGORIES.equals(qname)) {
       element = (OMElement) newCategories(qname, parent, builder);
-    } else if (MODIFIED.equals(qname)) {
+    } else if (EDITED.equals(qname)) {
       element = (OMElement) newDateTimeElement(qname, parent, builder);
     } else if (parent instanceof ExtensibleElement || parent instanceof Document) {
       element = (OMElement) newExtensionElement(qname, parent, builder);



Mime
View raw message