|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.embl.ebi.escience.scufl.SemanticMarkup
public class SemanticMarkup
| Constructor Summary | |
|---|---|
SemanticMarkup(java.lang.Object subject)
Create a new item of semantic markup for the Object specified. |
|
SemanticMarkup(SemanticMarkup 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. |
org.jdom.Element |
getConfigurationElement()
Emit an element that would be used to configure this object in the method above |
org.jdom.Element |
getConfigurationElement(java.util.List knownMIMETypes)
Emit an element that would be used to configure this object in the method above, do not emit mime types that occur within the supplied list. |
java.lang.String |
getDescription()
Get the free text description |
java.lang.String |
getDisplayTypeList()
Get the MIME types as a single string with new lines seperating the types |
java.lang.String |
getFirstMIMEType()
Get the first MIME type in the list, or return the empty string if no MIME types have been defined. |
java.util.List |
getMIMETypeList()
Get hold of the List used to hold the MIME types, useful for UI components. |
java.lang.String[] |
getMIMETypes()
Get an array of strings containing MIME types for the item this markup object applies to. |
java.lang.String |
getSemanticType()
Get the string of semantic markup text FIXME - this is currently unstructured free text, which it almost certainly shouldn't be. |
java.lang.Object |
getSubject()
Get the Object that is the subject of this markup, if that's not too confusing a way of expressing it... |
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 |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SemanticMarkup(java.lang.Object subject)
public SemanticMarkup(SemanticMarkup other)
| Method Detail |
|---|
public java.util.List getMIMETypeList()
public void setDescription(java.lang.String theDescription)
public java.lang.String getDescription()
public java.lang.Object getSubject()
public java.lang.String[] getMIMETypes()
public java.lang.String getFirstMIMEType()
public java.lang.String getDisplayTypeList()
public void clearMIMETypes()
public void addMIMEType(java.lang.String mimeType)
public void setMIMETypes(java.util.List mimeTypes)
public java.lang.String getSemanticType()
public void setSemanticType(java.lang.String newSemanticType)
public void configureFromElement(org.jdom.Element theElement)
public org.jdom.Element getConfigurationElement()
public org.jdom.Element getConfigurationElement(java.util.List knownMIMETypes)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||