|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.xefer.rebel.XBELElement
The base class of all XBEL elements
Field Summary | |
(package private) Element |
element
|
Constructor Summary | |
protected |
XBELElement()
|
|
XBELElement(Element element)
|
Method Summary | |
protected void |
addChild(XBELElement entity)
Replace the current resource with the given entity |
protected void |
addChildDirect(XBELElement entity)
Replace the current resource with the given entity without first importing it into the parent elements document |
void |
delete()
Delete removes self from parent |
String |
getId()
Gets the id attribute of the underlying XBEL element |
abstract String |
getLocationUrl(StringBuffer url)
Returns the resource Location URL based on the current url and the resource type |
String |
getType()
Gets the tagname of the underlying XBEL element |
abstract boolean |
isLocatable()
Returns true if this XBELElement is directly locatable through a URL. |
void |
post(XBELElement entity)
Handles the POSTing of a subordinate resource |
void |
put(XBELElement entity)
putResource |
protected void |
replaceChild(XBELElement entity,
XBELElement child)
Replace on child element with another |
protected void |
replaceSelf(XBELElement entity)
Replace the given child with the given entity |
void |
setId(String id)
Sets the id attribute of the underlying XBEL element |
void |
write(ServletContext context,
OutputStream stream)
Write out the element ot the given output stream |
Methods inherited from class java.lang.Object |
|
Field Detail |
Element element
Constructor Detail |
protected XBELElement()
public XBELElement(Element element)
Method Detail |
protected void addChild(XBELElement entity)
child
- XBELElement of the new childprotected void addChildDirect(XBELElement entity)
child
- XBELElement of the new childpublic void delete() throws ResourceException
public String getId()
public abstract String getLocationUrl(StringBuffer url)
public String getType()
public abstract boolean isLocatable()
public void post(XBELElement entity) throws ResourceException
entity
- XBELElement
the entity to be postedpublic void put(XBELElement entity) throws ResourceException
entity
- XBELElement
the entity to storeprotected void replaceChild(XBELElement entity, XBELElement child)
entity
- XBELElement of the old childchild
- XBELElement of the new childprotected void replaceSelf(XBELElement entity)
entity
- XBELElement to replace the current elementpublic void setId(String id)
String
- the id of the given element being updatedpublic void write(ServletContext context, OutputStream stream) throws ResourceException
context
- ServletContext that this process is executing instream
- OutputStream of the to be written to
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |