Package edu.sc.seis.sod.web.jsonapi
Class EventVectorJson
java.lang.Object
edu.sc.seis.sod.web.jsonapi.AbstractJsonApiData
edu.sc.seis.sod.web.jsonapi.EventVectorJson
- All Implemented Interfaces:
JsonApiData
public class EventVectorJson extends AbstractJsonApiData
-
Field Summary
-
Constructor Summary
Constructors Constructor Description EventVectorJson(AbstractEventChannelPair ecp, java.lang.String baseUrl)
-
Method Summary
Modifier and Type Method Description void
encodeAttributes(org.json.JSONWriter out)
void
encodeRelationships(org.json.JSONWriter out)
java.lang.String
getId()
java.lang.String
getType()
boolean
hasRelationships()
Methods inherited from class edu.sc.seis.sod.web.jsonapi.AbstractJsonApiData
doKeyValue, encodeLinks, getBaseUrl, hasLinks, included
-
Constructor Details
-
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
-