com.bbn.swede.core
Class OWLElementInfo

java.lang.Object
  extended bycom.bbn.swede.core.OWLElementInfo
Direct Known Subclasses:
OWLDocumentInfo

public class OWLElementInfo
extends Object

Common implementation for OWL element info. Element info objects are used to access data that is only available after opening the OWL element's underlying resources


Field Summary
protected  IOWLElement[] _aelemChildren
          The children of the OWL element this info represents.
protected  IOWLElement _elem
          The OWL element this info represents.
 
Constructor Summary
OWLElementInfo(IOWLElement elem)
          Creates a new info object for an OWL element.
 
Method Summary
 void addChild(IOWLElement elemChild)
          Adds an element to the list of children.
 IOWLElement[] getChildren()
          Returns the children of this OWL element.
 IOWLElement getElement()
          Returns the OWL element associated with this info object.
 boolean includesChild(IOWLElement elemChild)
          Checks whether another element is a child of this one.
 void removeChild(IOWLElement elemChild)
          Removes a single child from the element's list of children.
 void setChildren(IOWLElement[] elems)
          Sets an array of OWL elements as this element's children.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_aelemChildren

protected IOWLElement[] _aelemChildren
The children of the OWL element this info represents.


_elem

protected IOWLElement _elem
The OWL element this info represents.

Constructor Detail

OWLElementInfo

public OWLElementInfo(IOWLElement elem)
Creates a new info object for an OWL element.

Parameters:
elem - The element.
Method Detail

getElement

public IOWLElement getElement()
Returns the OWL element associated with this info object.

Returns:
The OWL element this info object is associated with.

addChild

public void addChild(IOWLElement elemChild)
Adds an element to the list of children.

Parameters:
elemChild - The new child element.

includesChild

public boolean includesChild(IOWLElement elemChild)
Checks whether another element is a child of this one.

Parameters:
elemChild - The element to check
Returns:
true if elemChild is a child of this element, otherwise false.

removeChild

public void removeChild(IOWLElement elemChild)
Removes a single child from the element's list of children.

Parameters:
elemChild - The child to remove.

getChildren

public IOWLElement[] getChildren()
Returns the children of this OWL element.

Returns:
An array (possibly empty) of child elements.

setChildren

public void setChildren(IOWLElement[] elems)
Sets an array of OWL elements as this element's children. Any existing children of this element are disassociated from it.

Parameters:
elems - The array of children to associate


Copyright © 2004-2005 BBN Technologies. All Rights Reserved.