org.embl.ebi.escience.scufl
Class PortSemanticMarkup

java.lang.Object
  extended by org.embl.ebi.escience.scufl.SemanticMarkup
      extended by org.embl.ebi.escience.scufl.PortSemanticMarkup
All Implemented Interfaces:
java.io.Serializable

public class PortSemanticMarkup
extends SemanticMarkup

A SemanticMarkup for Ports that fires ScuflModelEvents when markup elements are changed.

Author:
David Withers
See Also:
Serialized Form

Constructor Summary
PortSemanticMarkup(java.lang.Object subject)
          Create a new item of semantic markup for the Port specified.
PortSemanticMarkup(PortSemanticMarkup other)
           
 
Method Summary
 void addMIMEType(java.lang.String mimeType)
          Add a MIME type
 void clearMIMETypes()
          Clear the array of MIME types
 void configureFromElement(org.jdom.Element theElement)
          Configure this markup object from the supplied XML element.
 void setDescription(java.lang.String theDescription)
          Set the free text description
 void setMIMETypes(java.util.List mimeTypes)
           
 void setSemanticType(java.lang.String newSemanticType)
          Set the semantic markup as a string, not the best way to do things but will have to do for now
 
Methods inherited from class org.embl.ebi.escience.scufl.SemanticMarkup
getConfigurationElement, getConfigurationElement, getDescription, getDisplayTypeList, getFirstMIMEType, getMIMETypeList, getMIMETypes, getSemanticType, getSubject, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PortSemanticMarkup

public PortSemanticMarkup(java.lang.Object subject)
Create a new item of semantic markup for the Port specified. This should be interpreted as 'this markup object applies to the supplied Port'.


PortSemanticMarkup

public PortSemanticMarkup(PortSemanticMarkup other)
Method Detail

setDescription

public void setDescription(java.lang.String theDescription)
Set the free text description

Overrides:
setDescription in class SemanticMarkup

clearMIMETypes

public void clearMIMETypes()
Clear the array of MIME types

Overrides:
clearMIMETypes in class SemanticMarkup

addMIMEType

public void addMIMEType(java.lang.String mimeType)
Add a MIME type

Overrides:
addMIMEType in class SemanticMarkup

setMIMETypes

public void setMIMETypes(java.util.List mimeTypes)
Overrides:
setMIMETypes in class SemanticMarkup

setSemanticType

public void setSemanticType(java.lang.String newSemanticType)
Set the semantic markup as a string, not the best way to do things but will have to do for now

Overrides:
setSemanticType in class SemanticMarkup

configureFromElement

public void configureFromElement(org.jdom.Element theElement)
Configure this markup object from the supplied XML element. This is assuming that the element passed in is the 'metadata' element in the XScufl namespace.

Overrides:
configureFromElement in class SemanticMarkup