net.jxta.codat
Class Metadata
java.lang.Object
net.jxta.codat.Codat
net.jxta.codat.Metadata
public class Metadata
- extends Codat
This class represents a metadata Codat. Medata Codats are special
codats that contain information about another codats. Multiple medata
codats can refer to the same codat. Medata codats can hold any kinds
of information about a codat, such as a symbolic name, description,
index and seraching information, etc.
Codats are JXTA objects that can hold both data or code. The core
platform API is making available the Codat APIs to JXTA services and
applications as a placeholder for all contents they are
manipulating. The Core is not making any references to this class. The
Codat class is offered as a standard way for applications and services
to exchange any kinds of contents.
- See Also:
Codat
,
CodatID
,
Document
,
StructuredDocument
,
StructuredTextDocument
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Metadata
public Metadata(PeerGroupID groupID,
CodatID about,
Document document)
throws IOException
- Construct a new Codat with a new CodatId given a PeerGroupID
and a document.
- Parameters:
groupID
- the group to which this metadata will be publishedabout
- metadata for which this Codat is metadatadocument
- doc held by this codat.
- Throws:
IOException
- if there is an error accessing the document.
Metadata
public Metadata(CodatID id,
CodatID about,
Document document)
- Construct a new Metadata instance from parameters for an existing Codat,
a CodatID and a document.
- Parameters:
id
- CodatId of the new codatabout
- CodatId for which this is a codatdocument
- Document hold by this codat