de.knup.jedi.jayshare
Class XTag

java.lang.Object
  |
  +--de.knup.jedi.jayshare.XTag

public class XTag
extends java.lang.Object
implements XMLOutput

XTag contains junk of additional information assigned to a file. This could be a content abstract, streaming file bitrate or copyright information etc.

Version:
0.1 $Revision: 1.4 $
Author:
B. Pietsch

Field Summary
private  java.lang.String key
          Specifies the category of the additional information (e.b.
private  java.lang.String type
          Specifies the kind of data.
private  java.lang.String value
          Contains the X-Tag value.
 
Constructor Summary
XTag()
          Create an empty X-Tag.
XTag(java.lang.String key, java.lang.String type, java.lang.String value)
          Create an X-Tag.
 
Method Summary
 void appendToXMLStream(java.lang.StringBuffer retval)
          Attach an XML serialisation to a string buffer.
 java.lang.String getKey()
           
 java.lang.String getType()
           
 java.lang.String getValue()
           
 void setKey(java.lang.String key)
          Set the X-Tag category.
 void setType(java.lang.String type)
          Set the X-Tag data type.
 void setValue(java.lang.String value)
          (Re)set the X-Tag data.
 java.lang.String toXML()
          Create an XML representation of the object.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

value

private java.lang.String value
Contains the X-Tag value. This is the data (e.g. "Donna Haraway")

key

private java.lang.String key
Specifies the category of the additional information (e.b. "author").

type

private java.lang.String type
Specifies the kind of data. blob is a special type. A blob X-Tag has no value attribute. The value is read from the tag content. E.g.: <x-tag key='abstract' type='blob'>
This article is a close reading of two essays by Donna Haraway on feminist philosophy, the biophysical sciences, and critical social theory. Haraway's strong social constructionist approach to science is criticized by colleague Sandra Harding, resulting in an epistemological reconceptualization of objectivity by Haraway. Haraway's notion of "Situated Knowledges" provides a workable episte mology for all social and biophysical sciences, while inviting the reintegration of religions as critical conversation partners in an emancipatory hermeneutics of nature, culture, and technology.
</x-tag>
Constructor Detail

XTag

public XTag()
Create an empty X-Tag.

XTag

public XTag(java.lang.String key,
            java.lang.String type,
            java.lang.String value)
Create an X-Tag.
Parameters:
key - is the X-Tag category (e.g. "author").
type - is the X-Tag data type (e.g. "text").
value - is the X-Tag data (e.g. "Donna Haraway").
Method Detail

getValue

public java.lang.String getValue()
Returns:
the X-Tag data.

setValue

public void setValue(java.lang.String value)
(Re)set the X-Tag data.

getKey

public java.lang.String getKey()
Returns:
the X-Tag category.

setKey

public void setKey(java.lang.String key)
Set the X-Tag category.

getType

public java.lang.String getType()
Returns:
the X-Tag data type.

setType

public void setType(java.lang.String type)
Set the X-Tag data type.

toXML

public java.lang.String toXML()
Description copied from interface: XMLOutput
Create an XML representation of the object.
Specified by:
toXML in interface XMLOutput
Tags copied from interface: XMLOutput
Returns:
an XML conforming String object.

appendToXMLStream

public void appendToXMLStream(java.lang.StringBuffer retval)
Attach an XML serialisation to a string buffer.