info.sswap.http.representation
Class ProtocolMessage

java.lang.Object
  extended by info.sswap.http.representation.Message
      extended by info.sswap.http.representation.EntityMessage
          extended by info.sswap.http.representation.ProtocolMessage

public class ProtocolMessage
extends EntityMessage

Intermediate representation of the input describing an RDG

Author:
Blazej Bulka

Field Summary
private  java.util.Collection<Mapping> mappings
           
 
Constructor Summary
ProtocolMessage()
          Creates an empty object
ProtocolMessage(Prefixes prefixes, Imports imports)
          Creates an object just with prefix and imports declarations
ProtocolMessage(Prefixes prefixes, Imports imports, Entity resource, java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> subjectObjectMap)
          Creates an object with all data read from the input
 
Method Summary
 java.util.Collection<Mapping> getMappings()
           
 Entity getResource()
          Gets the properties of the SSWAPResource (e.g., name, oneLineDescription).
 void setMappings(java.util.Collection<Mapping> mappings)
           
 void setResource(Entity resource)
          Sets the properties of the SSWAPResource (e.g., name, oneLineDescription)
 
Methods inherited from class info.sswap.http.representation.EntityMessage
getEntity, getIndividual, getIndividuals, setEntity, setIndividuals
 
Methods inherited from class info.sswap.http.representation.Message
getImports, getPrefixes, setImports, setPrefixes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mappings

private java.util.Collection<Mapping> mappings
Constructor Detail

ProtocolMessage

public ProtocolMessage()
Creates an empty object


ProtocolMessage

public ProtocolMessage(Prefixes prefixes,
                       Imports imports)
Creates an object just with prefix and imports declarations

Parameters:
prefixes - the prefix information
imports - the imports declarations

ProtocolMessage

public ProtocolMessage(Prefixes prefixes,
                       Imports imports,
                       Entity resource,
                       java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> subjectObjectMap)
Creates an object with all data read from the input

Parameters:
prefixes - the prefix information
imports - the imports declarations
resource - the information about the properties/values for the resource
subjectObjectMap - mapping of subject URI to object URIs
Method Detail

getMappings

public java.util.Collection<Mapping> getMappings()

setMappings

public void setMappings(java.util.Collection<Mapping> mappings)

getResource

public Entity getResource()
Gets the properties of the SSWAPResource (e.g., name, oneLineDescription).

Returns:
the Entity object with the properties

setResource

public void setResource(Entity resource)
Sets the properties of the SSWAPResource (e.g., name, oneLineDescription)

Parameters:
resource - the Entity object with the properites


Copyright (c) 2010, iPlant Collaborative, University of Arizona, Cold Spring Harbor Laboratories, University of Texas at Austin.