[jdom-interest] Text class

Brett McLaughlin brett at newInstance.com
Sun May 27 07:27:50 PDT 2001


----- Original Message -----
From: "Matthew Mackenzie" <matt at xmlglobal.com>
To: "Brett McLaughlin" <brett at newInstance.com>; <jdom-interest at jdom.org>
Sent: Saturday, May 26, 2001 10:33 PM
Subject: RE: [jdom-interest] Text class


> Question: Will setText(String) be removed when this Text class is
> integrated, or will setText(String) be transparently promoted to
> setText(Text) with all getText() calls returning Text?

The latter. We won't make anyone use the Text class unless they want to,
essentially.

-Brett

>
> -Matt
>
> -----Original Message-----
> From: Brett McLaughlin
> Sent: Sat 5/26/2001 5:03 PM
> To: jdom-interest at jdom.org
> Cc:
> Subject: [jdom-interest] Text class
>
>
>
> Here's where we're at:
>
> public class Text {
>
>     private StringBuffer value;
>
>     protected Text() { }
>
>     public Text(String stringValue) {
>         value = new StringBuffer(stringValue);
>     }
>
>     public String getValue() {
>         return value.toString();
>     }
>
>     public void setValue(String stringValue) {
>         value = new StringBuffer(stringValue);
>     }
>
>     public void append(String stringValue) {
>         value.append(stringValue);
>     }
>
>     public String toString() {
>         return getValue();
>     }
>
>     public int hashCode() {
>         return value.toString().hashCode();
>     }
>
>     // Leaving out impl for now on below here
>     public boolean equals(Object ob);
>
> }
>
> OK. Now we can discuss. What you think?
>
> -Brett
>
> _______________________________________________
> To control your jdom-interest membership:
>
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@you
> rhost.com
>
>
>




More information about the jdom-interest mailing list