org.apache.chemistry.opencmis.server.impl.atompub
Class AtomEntry

java.lang.Object
  extended by org.apache.chemistry.opencmis.server.impl.atompub.XMLDocumentBase
      extended by org.apache.chemistry.opencmis.server.impl.atompub.AtomDocumentBase
          extended by org.apache.chemistry.opencmis.server.impl.atompub.AtomEntry

public class AtomEntry
extends AtomDocumentBase

Atom Entry class.


Field Summary
 
Fields inherited from class org.apache.chemistry.opencmis.server.impl.atompub.XMLDocumentBase
PREFIX_APP, PREFIX_ATOM, PREFIX_CMIS, PREFIX_RESTATOM, PREFIX_XSI
 
Constructor Summary
AtomEntry()
          Creates an Atom entry document.
AtomEntry(javax.xml.stream.XMLStreamWriter writer)
          Creates an Atom entry that is embedded somewhere.
 
Method Summary
 void endEntry()
          Closes the entry tag.
 void startEntry(boolean isRoot)
          Opens the entry tag.
 void writeContent(String src, String type)
          Writes a content tag.
 void writeDeletedObject(ObjectData object)
          Writes a delete object.
 void writeObject(ObjectData object, ObjectInfo info, String contentSrc, String contentType, String pathSegment, String relativePathSegment)
          Writes an object.
 void writeType(TypeDefinition type)
          Writes a type.
 
Methods inherited from class org.apache.chemistry.opencmis.server.impl.atompub.AtomDocumentBase
formatDate, generateAtomId, writeAclLink, writeAllowableActionsLink, writeAlternateLink, writeAuthor, writeCollection, writeCurrentVerionsLink, writeDescribedByLink, writeDownLink, writeEditLink, writeEditMediaLink, writeEnclosureLink, writeFirstLink, writeFolderTreeLink, writeId, writeLastLink, writeLink, writeNextLink, writePathSegment, writePoliciesLink, writePreviousLink, writePublished, writePublished, writeRelationshipsLink, writeRelationshipSourceLink, writeRelationshipTargetLink, writeRelativePathSegment, writeSelfLink, writeServiceLink, writeSimpleDate, writeSimpleDate, writeSimpleTag, writeTitle, writeTypeDownLink, writeTypeUpLink, writeUpdated, writeUpdated, writeUpLink, writeVersionHistoryLink, writeViaLink, writeWorkingCopyLink
 
Methods inherited from class org.apache.chemistry.opencmis.server.impl.atompub.XMLDocumentBase
endDocument, getWriter, setNamespaces, setWriter, startDocument, writeNamespace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtomEntry

public AtomEntry()
Creates an Atom entry document.


AtomEntry

public AtomEntry(javax.xml.stream.XMLStreamWriter writer)
Creates an Atom entry that is embedded somewhere.

Method Detail

startEntry

public void startEntry(boolean isRoot)
                throws javax.xml.stream.XMLStreamException
Opens the entry tag.

Throws:
javax.xml.stream.XMLStreamException

endEntry

public void endEntry()
              throws javax.xml.stream.XMLStreamException
Closes the entry tag.

Throws:
javax.xml.stream.XMLStreamException

writeObject

public void writeObject(ObjectData object,
                        ObjectInfo info,
                        String contentSrc,
                        String contentType,
                        String pathSegment,
                        String relativePathSegment)
                 throws javax.xml.stream.XMLStreamException,
                        javax.xml.bind.JAXBException
Writes an object.

Throws:
javax.xml.stream.XMLStreamException
javax.xml.bind.JAXBException

writeDeletedObject

public void writeDeletedObject(ObjectData object)
                        throws javax.xml.stream.XMLStreamException,
                               javax.xml.bind.JAXBException
Writes a delete object.

Throws:
javax.xml.stream.XMLStreamException
javax.xml.bind.JAXBException

writeType

public void writeType(TypeDefinition type)
               throws javax.xml.stream.XMLStreamException,
                      javax.xml.bind.JAXBException
Writes a type.

Throws:
javax.xml.bind.JAXBException
javax.xml.stream.XMLStreamException

writeContent

public void writeContent(String src,
                         String type)
                  throws javax.xml.stream.XMLStreamException
Writes a content tag.

Throws:
javax.xml.stream.XMLStreamException


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.