abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r422926 - in /incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model: Content.java Text.java
Date Tue, 18 Jul 2006 00:15:41 GMT
Author: jmsnell
Date: Mon Jul 17 17:15:41 2006
New Revision: 422926

URL: http://svn.apache.org/viewvc?rev=422926&view=rev
Log:
It's a mystery to me why enum does not automatically expose the ordinal value for it's members

Modified:
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Content.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Text.java

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Content.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Content.java?rev=422926&r1=422925&r2=422926&view=diff
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Content.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Content.java Mon
Jul 17 17:15:41 2006
@@ -100,6 +100,12 @@
  */
 public interface Content extends Element {
 
+  public static final int TYPE_TEXT = 0;
+  public static final int TYPE_HTML = 1;
+  public static final int TYPE_XHTML = 2;
+  public static final int TYPE_XML = 3;
+  public static final int TYPE_MEDIA = 4;
+  
   public enum Type { 
     TEXT, HTML, XHTML, XML, MEDIA;
   

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Text.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Text.java?rev=422926&r1=422925&r2=422926&view=diff
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Text.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Text.java Mon Jul
17 17:15:41 2006
@@ -57,6 +57,10 @@
 public interface Text 
   extends Element {
 
+  public static final int TYPE_TEXT = 0;
+  public static final int TYPE_HTML = 1;
+  public static final int TYPE_XHTML = 2;
+  
   public static enum Type { 
     TEXT, HTML, XHTML;
     



Mime
View raw message