OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: Xapi-J: an architectural detail

[ Lists Home | Date Index | Thread Index ]
  • From: Sarah Slocombe <sarah@attd.com>
  • To: xml-dev@ic.ac.uk
  • Date: Wed, 06 Aug 1997 15:57:06 -0400

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@attd.com

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





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS