Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.hp.hpl.jena.xmloutput.impl
Class Abbreviated  view Abbreviated download Abbreviated.java

java.lang.Object
  extended bycom.hp.hpl.jena.xmloutput.impl.BaseXMLWriter
      extended bycom.hp.hpl.jena.xmloutput.impl.Abbreviated
All Implemented Interfaces:
com.hp.hpl.jena.rdf.model.RDFErrorHandler, com.hp.hpl.jena.rdf.model.RDFWriter, com.hp.hpl.jena.xmloutput.RDFXMLWriterI

public class Abbreviated
extends BaseXMLWriter
implements com.hp.hpl.jena.rdf.model.RDFErrorHandler

Writes out RDF in the abbreviated syntax, for human consumption not only machine readable. It is not normal to call the constructor directly, but to use the method RDFWriterF.getWriter("RDF/XML-ABBREV"). Does not support the NSPREFIXPROPBASE system properties. Use setNsPrefix. For best results it is necessary to set the property "prettyTypes". See setProperty for information.

Version:
Release='$Name: $' Revision='$Revision: 1.14 $' Date='$Date: 2005/02/21 12:22:28 $'

Field Summary
(package private)  boolean sDamlCollection
           
(package private)  boolean sIdAttr
           
(package private)  boolean sListExpand
           
(package private)  boolean sParseTypeCollectionPropertyElt
           
(package private)  boolean sParseTypeLiteralPropertyElt
           
(package private)  boolean sParseTypeResourcePropertyElt
           
(package private)  boolean sPropertyAttr
           
(package private)  boolean sReification
           
(package private)  boolean sResourcePropertyElt
           
private  com.hp.hpl.jena.rdf.model.Resource[] types
           
 
Fields inherited from class com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter
anonCount, anonMap, dbg, errorHandler, hexchar, logger, longId, RDFNS, showXmlDeclaration, tab, width, xmlBase
 
Fields inherited from interface com.hp.hpl.jena.xmloutput.RDFXMLWriterI
_NotInteresting
 
Fields inherited from interface com.hp.hpl.jena.rdf.model.RDFWriter
NSPREFIXPROPBASE
 
Constructor Summary
Abbreviated()
           
 
Method Summary
(package private)  void blockRule(com.hp.hpl.jena.rdf.model.Resource r)
           
 void error(java.lang.Exception e)
          report an error
 void fatalError(java.lang.Exception e)
          report a catastrophic error.
static void main(java.lang.String[] args)
           
(package private)  com.hp.hpl.jena.rdf.model.Resource[] setTypes(com.hp.hpl.jena.rdf.model.Resource[] propValue)
           
(package private)  void unblockAll()
           
 void warning(java.lang.Exception e)
          report a warning
 void write(com.hp.hpl.jena.rdf.model.Model baseModel, java.io.Writer out, java.lang.String base)
          Serialize Model model to Writer out.
(package private)  void writeBody(com.hp.hpl.jena.rdf.model.Model model, java.io.PrintWriter pw, java.lang.String base, boolean useXMLBase)
           
 
Methods inherited from class com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter
addNameSpace, anonId, attributeTag, attributeTag, endElementTag, endElementTag, getPrefixFor, isDefaultNamespace, q, qq, rdfAt, rdfEl, relativize, setBlockRules, setErrorHandler, setLogger, setNsPrefix, setProperty, setupMaps, splitTag, startElementTag, startElementTag, str2flags, tag, workOutNamespaces, write, xmlnsDecl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

types

private com.hp.hpl.jena.rdf.model.Resource[] types

sReification

boolean sReification

sIdAttr

boolean sIdAttr

sDamlCollection

boolean sDamlCollection

sParseTypeCollectionPropertyElt

boolean sParseTypeCollectionPropertyElt

sListExpand

boolean sListExpand

sParseTypeLiteralPropertyElt

boolean sParseTypeLiteralPropertyElt

sParseTypeResourcePropertyElt

boolean sParseTypeResourcePropertyElt

sPropertyAttr

boolean sPropertyAttr

sResourcePropertyElt

boolean sResourcePropertyElt
Constructor Detail

Abbreviated

public Abbreviated()
Method Detail

unblockAll

void unblockAll()
Specified by:
unblockAll in class BaseXMLWriter

blockRule

void blockRule(com.hp.hpl.jena.rdf.model.Resource r)
Specified by:
blockRule in class BaseXMLWriter

setTypes

com.hp.hpl.jena.rdf.model.Resource[] setTypes(com.hp.hpl.jena.rdf.model.Resource[] propValue)
Overrides:
setTypes in class BaseXMLWriter

write

public void write(com.hp.hpl.jena.rdf.model.Model baseModel,
                  java.io.Writer out,
                  java.lang.String base)
Description copied from class: BaseXMLWriter
Serialize Model model to Writer out.

Specified by:
write in interface com.hp.hpl.jena.rdf.model.RDFWriter
Overrides:
write in class BaseXMLWriter

writeBody

void writeBody(com.hp.hpl.jena.rdf.model.Model model,
               java.io.PrintWriter pw,
               java.lang.String base,
               boolean useXMLBase)
Specified by:
writeBody in class BaseXMLWriter

error

public void error(java.lang.Exception e)
Description copied from interface: com.hp.hpl.jena.rdf.model.RDFErrorHandler
report an error

Specified by:
error in interface com.hp.hpl.jena.rdf.model.RDFErrorHandler

warning

public void warning(java.lang.Exception e)
Description copied from interface: com.hp.hpl.jena.rdf.model.RDFErrorHandler
report a warning

Specified by:
warning in interface com.hp.hpl.jena.rdf.model.RDFErrorHandler

fatalError

public void fatalError(java.lang.Exception e)
Description copied from interface: com.hp.hpl.jena.rdf.model.RDFErrorHandler
report a catastrophic error. Must not return.

Specified by:
fatalError in interface com.hp.hpl.jena.rdf.model.RDFErrorHandler

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception