[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Xapi-J: an architectural detail

  • From: Sarah Slocombe <sarah@a...>
  • To: xml-dev@i...
  • Date: Wed, 06 Aug 1997 15:57:06 -0400

Re: Xapi-J: an architectural detail
Greetings!

I've been following this thread with great interest. 
I'm trying to piece together the suggestions so far but
I wonder if I've muddled it already. Perhaps I should just 
wait a bit longer but things are really starting to get 
exciting now!

As I understand it, we've got:

public interface INode{
    public INode getParent();
    public void setParent(INode aContainer);
}

(Or is INode ONLY so things have a common base class/
interface, and shouldn't have any methods? Or does an 
IContainer never need to deal with parents? Or ought even 
parent stuff to be handled by iterators?)

public interface IContainer extends INode{
    public Enumeration getContents();
    public void insertContent(IContent aContent, 
        IContent preceedingContent);
    public void appendContent(IContent aContent);
    public void removeContent(IContent aContent);
}

public interface IContent extends INode{
     public String getData();
}

public interface IElement extends IContent, IContainer{
    public String getType();
    public void setType(String aType);
    public void addAttribute(String name, String value);
    public void removeAttribute(String name);
    public IAttribute getAttribute(String attributeName);
    public java.util.Enumeration getAttributes();
}

So far so good? Now what about IAttribute? John Tigue's
shown:

public interface IAttribute{
    public String getName();
    public void setName(String aName);
    public String getValue();
    public void setValue();
}

Ought this to inherit from IContent? Chris Lloyd spoke of
IContainer vs. IProperty -- are IContent and IProperty the
same thing?

Thanks for any help.


Sarah Slocombe
sarah@a...

xml-dev: A list for W3C XML Developers
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To unsubscribe, send to majordomo@i... the following message;
unsubscribe xml-dev
List coordinator, Henry Rzepa (rzepa@i...)


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.