fipaos.parser.rdf
Class RDFContentHandler

java.lang.Object
  |
  +--fipaos.parser.rdf.RDFContentHandler
All Implemented Interfaces:
Parser

Deprecated. Content objects should be avoided - please use XML Databinding instead

public class RDFContentHandler
extends java.lang.Object
implements Parser

This class provides mechanisms for parsing/deparsing RDF to/from Content object containers, using SiRPACHandler If the system property fipaos.parser.xmlparser is set, the classname it contains will be used as an XML parser (providing it uses the SAX 1.0 interface).

See Also:
XMLDataBinding

Inner Class Summary
 class RDFContentHandler.RDFDocument
          Deprecated.  
 
Field Summary
static java.lang.String ENDTAG
          Deprecated.  
static java.lang.String FOOTER
          Deprecated.  
static java.lang.String HEADER
          Deprecated.  
static java.lang.String PARSE_TYPE_LITERAL
          Deprecated.  
static java.lang.String RDF
          Deprecated.  
static java.lang.String RDF_HEADER
          Deprecated.  
static java.lang.String RDFABOUT
          Deprecated.  
static java.lang.String RDFNAME
          Deprecated.  
static java.lang.String RDFRESOURCE
          Deprecated.  
static java.lang.String RDFS
          Deprecated.  
static java.lang.String RDFSCHEMA
          Deprecated.  
static java.lang.String RDFSNAME
          Deprecated.  
static java.lang.String RDFSYNTAX
          Deprecated.  
static java.lang.String STARTTAG
          Deprecated.  
static java.lang.String XMLNS
          Deprecated.  
 
Constructor Summary
RDFContentHandler()
          Deprecated. Initialises the Parser, ready to parse and deparse RDF documents
 
Method Summary
 boolean canParse(java.lang.String content)
          Deprecated. Determines if the Parser implementation can parse the given content
 java.lang.String deparse(Content content)
          Deprecated. Attempts to deparse the given content, and produce a RDF document to represent it.
 java.lang.String getParserType()
          Deprecated. Returns the type of content language that the Parser implementation handles.
 java.util.LinkedList getTriples(java.util.LinkedList array_of_triples, Content content)
          Deprecated.  
static boolean isRDF(java.lang.String content)
          Deprecated.  
static void main(java.lang.String[] args)
          Deprecated.  
 Content parse(java.lang.String content)
          Deprecated. Attempts to parse the given content, and produce a Content object to represent it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RDF_HEADER

public static final java.lang.String RDF_HEADER
Deprecated. 

STARTTAG

public static final java.lang.String STARTTAG
Deprecated. 

ENDTAG

public static final java.lang.String ENDTAG
Deprecated. 

HEADER

public static final java.lang.String HEADER
Deprecated. 

FOOTER

public static final java.lang.String FOOTER
Deprecated. 

RDFSYNTAX

public static final java.lang.String RDFSYNTAX
Deprecated. 

RDFSCHEMA

public static final java.lang.String RDFSCHEMA
Deprecated. 

RDFABOUT

public static final java.lang.String RDFABOUT
Deprecated. 

RDFRESOURCE

public static final java.lang.String RDFRESOURCE
Deprecated. 

RDF

public static final java.lang.String RDF
Deprecated. 

RDFS

public static final java.lang.String RDFS
Deprecated. 

RDFNAME

public static final java.lang.String RDFNAME
Deprecated. 

RDFSNAME

public static final java.lang.String RDFSNAME
Deprecated. 

XMLNS

public static final java.lang.String XMLNS
Deprecated. 

PARSE_TYPE_LITERAL

public static final java.lang.String PARSE_TYPE_LITERAL
Deprecated. 
Constructor Detail

RDFContentHandler

public RDFContentHandler()
Deprecated. 
Initialises the Parser, ready to parse and deparse RDF documents
Method Detail

parse

public Content parse(java.lang.String content)
Deprecated. 
Attempts to parse the given content, and produce a Content object to represent it.
Specified by:
parse in interface Parser
Parameters:
content - The RDF document to be parsed
Returns:
A Content object representing the given RDF document, null if parsing failed.

deparse

public java.lang.String deparse(Content content)
Deprecated. 
Attempts to deparse the given content, and produce a RDF document to represent it. Works by using a vector of attributes objects. It keeps on getting more attributenames to get more attributes untill it find primitives Then repackages according to rdf SYNTAX
Specified by:
deparse in interface Parser
Parameters:
content - The content to be deparsed
Returns:
A RDF document representing the given Content object, null if parsing failed.

getTriples

public java.util.LinkedList getTriples(java.util.LinkedList array_of_triples,
                                       Content content)
Deprecated. 

canParse

public boolean canParse(java.lang.String content)
Deprecated. 
Determines if the Parser implementation can parse the given content
Specified by:
canParse in interface Parser
Parameters:
A - content String.
Returns:
True if the Parser implementation can parse the given String

getParserType

public java.lang.String getParserType()
Deprecated. 
Returns the type of content language that the Parser implementation handles.
Specified by:
getParserType in interface Parser
Returns:
A String representation of the content format (e.g. RDF, SL)

isRDF

public static boolean isRDF(java.lang.String content)
Deprecated. 

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Deprecated.