|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
interface YosokumoDIF
Defines methods which transform bytes obtained from HTTP requests into
Yosokumo Java objects (such as Catalog
and Study
) and
vice versa. Each class implementing this interface handles a different
DIF, e.g., XML and Google Protocol Buffers.
Method Summary | |
---|---|
java.lang.String |
getContentType()
Return a content type string for use in Accept and Content-Type HTTP header lines. |
ServiceException |
getException()
Return a ServiceException from the code-decode process. |
Block |
makeBlockFromBytes(byte[] blockAsBytes)
Make a Yosokumo Block object out of the bytes of an HTTP
Entity. |
byte[] |
makeBytesFromBlock(Block block)
Make the bytes for an HTTP Entity out of a Yosokumo Block
object. |
byte[] |
makeBytesFromCell(Cell cell)
Make the bytes for an HTTP Entity out of a Yosokumo Cell
object. |
byte[] |
makeBytesFromPredictor(Predictor predictor)
Make the bytes for an HTTP Entity out of a Yosokumo Predictor
object. |
byte[] |
makeBytesFromRole(Role role)
Make the bytes for an HTTP Entity out of a Yosokumo Role
object. |
byte[] |
makeBytesFromSpecimen(Specimen specimen)
Make the bytes for an HTTP Entity out of a Yosokumo Specimen
object. |
byte[] |
makeBytesFromStudy(Study study)
Make the bytes for an HTTP Entity out of a Yosokumo Study
object. |
byte[] |
makeBytesFromStudyName(java.lang.String name)
Make the bytes for an HTTP Entity out of a Yosokumo Study
name. |
byte[] |
makeBytesFromStudyStatus(Study.Status status)
Make the bytes for an HTTP Entity out of a Yosokumo Study
status. |
byte[] |
makeBytesFromStudyVisibility(Study.Visibility visibility)
Make the bytes for an HTTP Entity out of a Yosokumo Study
visibility. |
Catalog |
makeCatalogFromBytes(byte[] catalogAsBytes)
Make a Yosokumo Catalog object out of the bytes of an HTTP
Entity. |
Cell |
makeCellFromBytes(byte[] cellAsBytes)
Make a Yosokumo Cell object out of the bytes of an HTTP
Entity. |
Message |
makeMessageFromBytes(byte[] messageAsBytes)
Make a Yosokumo Message object out of the bytes of an HTTP
Entity. |
Panel |
makePanelFromBytes(byte[] panelAsBytes)
Make a Yosokumo Panel object out of the bytes of an HTTP
Entity. |
Predictor |
makePredictorFromBytes(byte[] predictorAsBytes)
Make a Yosokumo Predictor object out of the bytes of an HTTP
Entity. |
Role |
makeRoleFromBytes(byte[] roleAsBytes)
Make a Yosokumo Role object out of the bytes of an HTTP
Entity. |
Roster |
makeRosterFromBytes(byte[] rosterAsBytes)
Make a Yosokumo Roster object out of the bytes of an HTTP
Entity. |
Specimen |
makeSpecimenFromBytes(byte[] specimenAsBytes)
Make a Yosokumo Specimen object out of the bytes of an HTTP
Entity. |
Study |
makeStudyFromBytes(byte[] studyAsBytes)
Make a Yosokumo Study object out of the bytes of an HTTP
Entity. |
Method Detail |
---|
java.lang.String getContentType()
ServiceException getException()
ServiceException
from the code-decode process.
ServiceException
; null means there is no exception.Catalog makeCatalogFromBytes(byte[] catalogAsBytes)
Catalog
object out of the bytes of an HTTP
Entity.
catalogAsBytes
- a catalog as bytes from an HTTP Entity.
Catalog
object represented by the
input bytes.Study makeStudyFromBytes(byte[] studyAsBytes)
Study
object out of the bytes of an HTTP
Entity.
studyAsBytes
- a study as bytes from an HTTP Entity.
Study
object represented by the
input bytes.byte[] makeBytesFromStudy(Study study)
Study
object.
study
- a Yosokumo Study
object.
Study
object.byte[] makeBytesFromStudyName(java.lang.String name)
Study
name.
name
- a Yosokumo Study
name.
Study
name.byte[] makeBytesFromStudyStatus(Study.Status status)
Study
status.
status
- a Yosokumo Study
status.
Study
status.byte[] makeBytesFromStudyVisibility(Study.Visibility visibility)
Study
visibility.
visibility
- a Yosokumo Study
visibility.
Study
visibility.Panel makePanelFromBytes(byte[] panelAsBytes)
Panel
object out of the bytes of an HTTP
Entity.
panelAsBytes
- a panel as bytes from an HTTP Entity.
Panel
object represented by the
input bytes.Roster makeRosterFromBytes(byte[] rosterAsBytes)
Roster
object out of the bytes of an HTTP
Entity.
rosterAsBytes
- a roster as bytes from an HTTP Entity.
Roster
object represented by the
input bytes.Role makeRoleFromBytes(byte[] roleAsBytes)
Role
object out of the bytes of an HTTP
Entity.
roleAsBytes
- a role as bytes from an HTTP Entity.
Role
object represented by the
input bytes.byte[] makeBytesFromRole(Role role)
Role
object.
role
- a Yosokumo Role
object.
Role
object.Predictor makePredictorFromBytes(byte[] predictorAsBytes)
Predictor
object out of the bytes of an HTTP
Entity.
predictorAsBytes
- a predictor as bytes from an HTTP Entity.
Predictor
object represented by the
input bytes.byte[] makeBytesFromPredictor(Predictor predictor)
Predictor
object.
predictor
- a Yosokumo Predictor
object.
Predictor
object.Specimen makeSpecimenFromBytes(byte[] specimenAsBytes)
Specimen
object out of the bytes of an HTTP
Entity.
specimenAsBytes
- a specimen as bytes from an HTTP Entity.
Specimen
object represented by the
input bytes.byte[] makeBytesFromSpecimen(Specimen specimen)
Specimen
object.
specimen
- a Yosokumo Specimen
object.
Specimen
object.Cell makeCellFromBytes(byte[] cellAsBytes)
Cell
object out of the bytes of an HTTP
Entity.
cellAsBytes
- a cell as bytes from an HTTP Entity.
Cell
object represented by the
input bytes.byte[] makeBytesFromCell(Cell cell)
Cell
object.
cell
- a Yosokumo Cell
object.
Cell
object.Block makeBlockFromBytes(byte[] blockAsBytes)
Block
object out of the bytes of an HTTP
Entity.
blockAsBytes
- a block as bytes from an HTTP Entity.
Block
object represented by the input
bytes.byte[] makeBytesFromBlock(Block block)
Block
object.
block
- a Yosokumo Block
object.
Block
object.Message makeMessageFromBytes(byte[] messageAsBytes)
Message
object out of the bytes of an HTTP
Entity.
messageAsBytes
- a message as bytes from an HTTP Entity.
Message
object represented by the
input bytes.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |