|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.oclc.da.gdfr.registryprototype.srw.test.StubStructuredObject
public class StubStructuredObject
Created on Oct 24, 2006
| Constructor Summary | |
|---|---|
StubStructuredObject(java.lang.String bytes)
|
|
| Method Summary | |
|---|---|
AdminData |
getAdminData()
Returns the admin data for the CollectionItem in an Xml String |
java.lang.Object[] |
getAttr(java.lang.String name)
Gets the attribute with the given name |
java.lang.String |
getBytestream()
Returns the bytestream of the dataobject |
Content |
getPayload()
Gets the data associated with the collection item. |
Ref |
getRef()
Creates and returns a Ref based on this CollectionItem |
boolean |
setAdminData(AdminData data)
Sets the admin data for the given CollectionItem |
boolean |
setAttr(java.lang.String attr,
java.lang.String val)
Sets the attribute specified with the given text value |
boolean |
setAttr(java.lang.String attr,
java.lang.String[] vals)
Sets a reoccuring attribute with the given values |
boolean |
setAttr(java.lang.String attr,
StructuredDataObject obj)
Sets an attribute with a complex value |
boolean |
setAttr(java.lang.String attr,
StructuredDataObject[] objs)
Sets a reoccuring attribute with complex values |
boolean |
setBytestream(java.lang.String bytes)
Sets the bytestream of the dataobject |
boolean |
setPayload(Content data)
Adds data to a CollectionItem |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StubStructuredObject(java.lang.String bytes)
| Method Detail |
|---|
public AdminData getAdminData()
CollectionItem
getAdminData in interface CollectionItempublic Content getPayload()
CollectionItem
getPayload in interface CollectionItempublic Ref getRef()
CollectionItem
getRef in interface CollectionItempublic boolean setAdminData(AdminData data)
CollectionItem
setAdminData in interface CollectionItemdata - Xml String representing the admin data
public boolean setPayload(Content data)
CollectionItem
setPayload in interface CollectionItemdata - The data to be added
public java.lang.Object[] getAttr(java.lang.String name)
StructuredDataObject
getAttr in interface StructuredDataObjectname - The name of the attribute to get
public boolean setBytestream(java.lang.String bytes)
DataObject
setBytestream in interface DataObjectpublic java.lang.String getBytestream()
DataObject
getBytestream in interface DataObject
public boolean setAttr(java.lang.String attr,
StructuredDataObject[] objs)
StructuredDataObject
setAttr in interface StructuredDataObjectattr - The attribute to setobjs - The complex elements to use
public boolean setAttr(java.lang.String attr,
StructuredDataObject obj)
StructuredDataObject
setAttr in interface StructuredDataObjectattr - The attribute to setobj - The complex element to use
public boolean setAttr(java.lang.String attr,
java.lang.String val)
StructuredDataObject
setAttr in interface StructuredDataObjectattr - The name of the attribute to setval - The value to give the attribute
public boolean setAttr(java.lang.String attr,
java.lang.String[] vals)
StructuredDataObject
setAttr in interface StructuredDataObjectattr - The attribute to setvals - The values to assign
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||