public class Api extends Object implements JaxbPersistenceApi<Api>
Modifier and Type | Class and Description |
---|---|
static class |
Api.ApiFactory
allows typed / non static access to JaxbFactory features for
|
Modifier and Type | Field and Description |
---|---|
protected Createaccount |
createaccount |
protected Delete |
delete |
protected Edit |
edit |
protected Error |
error |
protected static Logger |
LOGGER
Logging may be enabled by setting debug to true
|
protected Login |
login |
protected Paraminfo |
paraminfo |
protected Parse |
parse |
protected Query |
query |
protected String |
rawJson |
protected Tokens |
tokens |
protected Warnings |
warnings |
Constructor and Description |
---|
Api() |
Modifier and Type | Method and Description |
---|---|
String |
asJson()
return me as a Json string
|
String |
asXML()
return me as an Xml string
|
static Api |
fromXML(String xml)
create a Api from an XML string
|
Createaccount |
getCreateaccount()
Ruft den Wert der createaccount-Eigenschaft ab.
|
Delete |
getDelete() |
Edit |
getEdit()
Gets the value of the edit property.
|
Error |
getError()
Gets the value of the error property.
|
JaxbFactoryApi<Api> |
getFactory()
get my factory
|
Login |
getLogin()
Gets the value of the login property.
|
Paraminfo |
getParaminfo()
Ruft den Wert der paraminfo-Eigenschaft ab.
|
Parse |
getParse()
Gets the value of the parse property.
|
Query |
getQuery() |
String |
getRawJson() |
String |
getServedby() |
Tokens |
getTokens()
Gets the value of the tokens property.
|
Warnings |
getWarnings()
Ruft den Wert der warnings-Eigenschaft ab.
|
void |
setCreateaccount(Createaccount value)
Legt den Wert der createaccount-Eigenschaft fest.
|
void |
setDelete(Delete delete) |
void |
setEdit(Edit value)
Sets the value of the edit property.
|
void |
setError(Error value)
Sets the value of the error property.
|
void |
setLogin(Login value)
Sets the value of the login property.
|
void |
setParaminfo(Paraminfo value)
Legt den Wert der paraminfo-Eigenschaft fest.
|
void |
setParse(Parse value)
Sets the value of the parse property.
|
void |
setQuery(Query query) |
void |
setRawJson(String rawJson) |
void |
setServedby(String servedby) |
void |
setTokens(Tokens value)
Sets the value of the tokens property.
|
void |
setWarnings(Warnings value)
Legt den Wert der warnings-Eigenschaft fest.
|
protected static Logger LOGGER
protected String rawJson
protected Query query
protected Login login
protected Error error
protected Createaccount createaccount
protected Warnings warnings
protected Tokens tokens
protected Edit edit
protected Delete delete
protected Parse parse
protected Paraminfo paraminfo
public Paraminfo getParaminfo()
Paraminfo
public void setParaminfo(Paraminfo value)
value
- allowed object is
Paraminfo
public String getServedby()
public void setServedby(String servedby)
servedby
- the servedby to setpublic String getRawJson()
public void setRawJson(String rawJson)
public Login getLogin()
Login
public void setLogin(Login value)
value
- allowed object is Login
public Query getQuery()
public void setQuery(Query query)
query
- the query to setpublic Error getError()
Error
public void setError(Error value)
value
- allowed object is Error
public Warnings getWarnings()
Warnings
public void setWarnings(Warnings value)
value
- allowed object is Warnings
public Tokens getTokens()
Tokens
public void setTokens(Tokens value)
value
- allowed object is Tokens
public Createaccount getCreateaccount()
Createaccount
public void setCreateaccount(Createaccount value)
value
- allowed object is
Createaccount
public Delete getDelete()
public void setDelete(Delete delete)
delete
- the delete to setpublic void setEdit(Edit value)
value
- allowed object is Edit
public Parse getParse()
Parse
public void setParse(Parse value)
value
- allowed object is Parse
public static Api fromXML(String xml) throws Exception
xml
- - xml representation of Page SchemaException
public JaxbFactoryApi<Api> getFactory()
getFactory
in interface JaxbPersistenceApi<Api>
public String asJson() throws JAXBException
asJson
in interface JaxbPersistenceApi<Api>
JAXBException
public String asXML() throws JAXBException
asXML
in interface JaxbPersistenceApi<Api>
JAXBException
Copyright © 2018 BITPlan GmbH. All rights reserved.