Package edu.sc.seis.sod.web.jsonapi
Class ChannelJson
java.lang.Object
edu.sc.seis.sod.web.jsonapi.AbstractJsonApiData
edu.sc.seis.sod.web.jsonapi.ChannelJson
- All Implemented Interfaces:
JsonApiData
public class ChannelJson extends AbstractJsonApiData
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ChannelJson(edu.sc.seis.seisFile.fdsnws.stationxml.Channel chan, java.lang.String baseUrl)
-
Method Summary
Modifier and Type Method Description void
encodeAttributes(org.json.JSONWriter out)
void
encodeLinks(org.json.JSONWriter out)
void
encodeRelationships(org.json.JSONWriter out)
java.lang.String
getId()
java.lang.String
getType()
boolean
hasLinks()
boolean
hasRelationships()
Methods inherited from class edu.sc.seis.sod.web.jsonapi.AbstractJsonApiData
doKeyValue, getBaseUrl, included
-
Constructor Details
-
ChannelJson
public ChannelJson(edu.sc.seis.seisFile.fdsnws.stationxml.Channel chan, java.lang.String baseUrl)
-
-
Method Details
-
getType
public java.lang.String getType() -
getId
public java.lang.String getId() -
encodeAttributes
public void encodeAttributes(org.json.JSONWriter out) throws org.json.JSONException- Specified by:
encodeAttributes
in interfaceJsonApiData
- Overrides:
encodeAttributes
in classAbstractJsonApiData
- Throws:
org.json.JSONException
-
hasRelationships
public boolean hasRelationships()- Specified by:
hasRelationships
in interfaceJsonApiData
- Overrides:
hasRelationships
in classAbstractJsonApiData
-
encodeRelationships
public void encodeRelationships(org.json.JSONWriter out) throws org.json.JSONException- Specified by:
encodeRelationships
in interfaceJsonApiData
- Overrides:
encodeRelationships
in classAbstractJsonApiData
- Throws:
org.json.JSONException
-
hasLinks
public boolean hasLinks()- Specified by:
hasLinks
in interfaceJsonApiData
- Overrides:
hasLinks
in classAbstractJsonApiData
-
encodeLinks
public void encodeLinks(org.json.JSONWriter out) throws org.json.JSONException- Specified by:
encodeLinks
in interfaceJsonApiData
- Overrides:
encodeLinks
in classAbstractJsonApiData
- Throws:
org.json.JSONException
-