|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.w3c.jigsaw.admin.PlainRemoteResource
Field Summary | |
protected AdminContext |
admin
The client side admin context |
protected Attribute[] |
attributes
The remote resource set of attributes. |
protected java.lang.String[] |
classes
The remote resource class hierarchy. |
protected RemoteResource[] |
frames
Set of attached frames. |
protected java.lang.String |
identifier
The name of that resource (ie it's identifier attribute). |
protected boolean |
iscontainer
Is that resource a container resource ? |
protected boolean |
isDirectoryResource
Is that resource a directory resource ? |
protected boolean |
isframed
Is that resource a framed resource ? |
protected boolean |
isindexerscatalog
Is that resource a indexers catalog ? |
protected java.net.URL |
parent
The name of the parent of that resource, as an URL. |
protected java.net.URL |
url
The admin URL for the wrapped resource. |
protected java.lang.Object[] |
values
The remote resource attribute values. |
Method Summary | |
protected Request |
createRequest()
|
void |
delete()
Delete that resource, and detach it from its container. |
void |
dump(java.io.PrintStream prt)
Dump that resource to the given output stream. |
java.lang.String[] |
enumerateResourceIdentifiers()
|
Attribute[] |
getAttributes()
Get the target resource list of attributes. |
java.lang.String[] |
getClassHierarchy()
Get the target resource class hierarchy. |
RemoteResource[] |
getFrames()
Get the frames attached to that resource. |
java.lang.Object |
getValue(java.lang.String attr)
|
java.lang.Object[] |
getValues(java.lang.String[] attrs)
|
boolean |
isContainer()
|
boolean |
isDirectoryResource()
Is is a DirectoryResource |
boolean |
isFrame()
|
boolean |
isFramed()
Is this resource a framed resource ? |
protected boolean |
isFrameURL(java.net.URL furl)
|
boolean |
isIndexersCatalog()
|
RemoteResource |
loadResource(java.lang.String identifier)
|
protected int |
lookupAttribute(java.lang.String attr)
|
RemoteResource |
registerFrame(java.lang.String id,
java.lang.String classname)
Attach a new frame to that resource. |
RemoteResource |
registerResource(java.lang.String id,
java.lang.String classname)
Register a new resource within this container. |
void |
reindex()
Reindex the resource's children if this resource is a DirectoryResource. |
protected void |
setFrames(RemoteResource[] frames)
|
void |
setValue(java.lang.String attr,
java.lang.Object value)
|
void |
setValues(java.lang.String[] names,
java.lang.Object[] values)
Set a set of attribute values in one shot. |
void |
unregisterFrame(RemoteResource frame)
Unregister a given frame from that resource. |
void |
updateURL(java.net.URL parentURL)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected AdminContext admin
protected java.lang.String[] classes
protected Attribute[] attributes
protected java.lang.Object[] values
protected boolean iscontainer
protected boolean isindexerscatalog
protected boolean isDirectoryResource
protected boolean isframed
protected java.lang.String identifier
protected java.net.URL parent
protected java.net.URL url
protected RemoteResource[] frames
Method Detail |
protected Request createRequest()
protected int lookupAttribute(java.lang.String attr) throws RemoteAccessException
protected void setFrames(RemoteResource[] frames)
public java.lang.String[] getClassHierarchy() throws RemoteAccessException
public void reindex() throws RemoteAccessException
public void delete() throws RemoteAccessException
public Attribute[] getAttributes() throws RemoteAccessException
Even though this returns all the attribute resources, only the ones that are advertized as being editable can be set through this interface.
public java.lang.Object getValue(java.lang.String attr) throws RemoteAccessException
name
- The attribute whose value is to be fetched, encoded as
its name.public java.lang.Object[] getValues(java.lang.String[] attrs) throws RemoteAccessException
attrs
- The (ordered) set of attributes whose value is to be
fetched.public void setValue(java.lang.String attr, java.lang.Object value) throws RemoteAccessException
attr
- The attribute to set, encoded as it's name.value
- The new value for that attribute.public void setValues(java.lang.String[] names, java.lang.Object[] values) throws RemoteAccessException
attrs
- The (ordered) list of attribute to set, encoded as their
names.values
- The (ordered) list of values, for each of the above
attributes.public void updateURL(java.net.URL parentURL)
public boolean isContainer() throws RemoteAccessException
public boolean isIndexersCatalog() throws RemoteAccessException
public boolean isDirectoryResource() throws RemoteAccessException
public java.lang.String[] enumerateResourceIdentifiers() throws RemoteAccessException
public RemoteResource loadResource(java.lang.String identifier) throws RemoteAccessException
public RemoteResource registerResource(java.lang.String id, java.lang.String classname) throws RemoteAccessException
id
- The identifier of the resource to be created.classname
- The name of the class of the resource to be added.public boolean isFramed() throws RemoteAccessException
public RemoteResource[] getFrames() throws RemoteAccessException
public void unregisterFrame(RemoteResource frame) throws RemoteAccessException
frame
- The frame to unregister.public boolean isFrame()
protected boolean isFrameURL(java.net.URL furl)
public RemoteResource registerFrame(java.lang.String id, java.lang.String classname) throws RemoteAccessException
identifier
- The name for this frame (if any).clsname
- The name of the frame's class.public void dump(java.io.PrintStream prt) throws RemoteAccessException
prt
- A print stream to dump to.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |