|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.praqma.jenkins.rqm.model.RqmObject<T>
public abstract class RqmObject<T>
Attempt at making the RQM object a bit more human readable.
| Field Summary | |
|---|---|
protected String |
rqmObjectResourceUrl
|
| Constructor Summary | |
|---|---|
RqmObject()
|
|
| Method Summary | ||
|---|---|---|
HashMap<String,String> |
attributes()
|
|
static
|
createObject(Class<T> clazz,
RqmParameterList parameters)
|
|
List<T> |
createOrUpdate(RqmParameterList parameters)
Override this method if you wish to push data from RQM (PUT && POST) |
|
boolean |
equals(Object obj)
|
|
static String |
getDescriptor(RqmObject obj)
|
|
static String |
getDescriptor(RqmObject obj,
String title)
|
|
static Document |
getDocumentReader(InputStream is)
Factory method for the xml document reader |
|
static Document |
getDocumentReader(String xml)
|
|
int |
getInternalId()
|
|
abstract String |
getResourceName()
|
|
String |
getRqmObjectResourceUrl()
|
|
int |
hashCode()
|
|
abstract T |
initializeSingleResource(String xml)
Expects an internal resource id. |
|
T |
intializeSingleResource(InputStream is)
|
|
List<T> |
read(RqmParameterList parameters)
Override this method if you wish to read data from RQM (Primarily GET) |
|
List<T> |
readMultiple(RqmParameterList parameters)
|
|
void |
setRqmObjectResourceUrl(String rqmObjectResourceUrl)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String rqmObjectResourceUrl
| Constructor Detail |
|---|
public RqmObject()
| Method Detail |
|---|
public abstract String getResourceName()
public static Document getDocumentReader(String xml)
throws RQMObjectParseException
RQMObjectParseException
public static Document getDocumentReader(InputStream is)
throws Exception
is -
Exception
public abstract T initializeSingleResource(String xml)
throws RQMObjectParseException
xml -
RQMObjectParseException
public T intializeSingleResource(InputStream is)
throws RQMObjectParseException
RQMObjectParseExceptionpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic static String getDescriptor(RqmObject obj)
public static String getDescriptor(RqmObject obj,
String title)
public String getRqmObjectResourceUrl()
public void setRqmObjectResourceUrl(String rqmObjectResourceUrl)
rqmObjectResourceUrl - the rqmObjectResourceUrl to set
public int getInternalId()
throws RQMObjectParseException
RQMObjectParseException
public List<T> read(RqmParameterList parameters)
throws IOException
parameters -
IOException
public List<T> readMultiple(RqmParameterList parameters)
throws IOException
IOException
public List<T> createOrUpdate(RqmParameterList parameters)
throws IOException
parameters -
IOExceptionpublic HashMap<String,String> attributes()
public static <T extends RqmObject> T createObject(Class<T> clazz,
RqmParameterList parameters)
throws InstantiationException,
IllegalAccessException,
IOException
InstantiationException
IllegalAccessException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||