info.sswap.http.representation
Class EntityMessage

java.lang.Object
  extended by info.sswap.http.representation.Message
      extended by info.sswap.http.representation.EntityMessage
Direct Known Subclasses:
PDGMessage, ProtocolMessage

public class EntityMessage
extends Message

A message containing a definition of a an object (entity)

Author:
Blazej Bulka

Field Summary
private  Entity entity
          The entity stored in the message
private  java.util.Map<java.lang.String,Entity> individuals
           
 
Constructor Summary
EntityMessage()
          Creates an empty message
EntityMessage(Prefixes prefixes, Imports imports)
          Creates a message containing only the defnition of namespace prefixes and imports
EntityMessage(Prefixes prefixes, Imports imports, Entity entity)
          Creates a message containing information about imports, namespace prefixes and the entity contained within the message
EntityMessage(Prefixes prefixes, Imports imports, Entity entity, java.util.Map<java.lang.String,Entity> individuals)
           
 
Method Summary
 Entity getEntity()
          Gets the information about entity contained within this message.
 Entity getIndividual(java.lang.String identifier)
           
 java.util.Map<java.lang.String,Entity> getIndividuals()
           
 void setEntity(Entity entity)
          Sets the information about entity contained within this message
 void setIndividuals(java.util.Map<java.lang.String,Entity> individuals)
           
 
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

entity

private Entity entity
The entity stored in the message


individuals

private java.util.Map<java.lang.String,Entity> individuals
Constructor Detail

EntityMessage

public EntityMessage()
Creates an empty message


EntityMessage

public EntityMessage(Prefixes prefixes,
                     Imports imports)
Creates a message containing only the defnition of namespace prefixes and imports

Parameters:
prefixes - the information about the namespace prefixes
imports - the information about the imports

EntityMessage

public EntityMessage(Prefixes prefixes,
                     Imports imports,
                     Entity entity)
Creates a message containing information about imports, namespace prefixes and the entity contained within the message

Parameters:
prefixes - the information about namespace prefixes
imports - the information about imports
entity - the information about the entity

EntityMessage

public EntityMessage(Prefixes prefixes,
                     Imports imports,
                     Entity entity,
                     java.util.Map<java.lang.String,Entity> individuals)
Method Detail

getEntity

public Entity getEntity()
Gets the information about entity contained within this message.

Returns:
the entity contained within this message or null, if no entity was contained

setEntity

public void setEntity(Entity entity)
Sets the information about entity contained within this message

Parameters:
entity - the entity contained within this message.

getIndividuals

public java.util.Map<java.lang.String,Entity> getIndividuals()

getIndividual

public Entity getIndividual(java.lang.String identifier)

setIndividuals

public void setIndividuals(java.util.Map<java.lang.String,Entity> individuals)


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