Project JXTA

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.

Since:
JXTA 1.0
See Also:
Codat, CodatID, Document, StructuredDocument, StructuredTextDocument

Fields inherited from class net.jxta.codat.Codat
doc, id, metaId
 
Constructor Summary
Metadata(CodatID id, CodatID about, Document document)
          Makes a new Metadata instance from parameters for an existing Codat, a CodatID and a document.
Metadata(PeerGroupID groupID, CodatID about, Document document)
           
 
Methods inherited from class net.jxta.codat.Codat
getCodatID, getDocument, getMetaID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Metadata

public Metadata(PeerGroupID groupID,
                CodatID about,
                Document document)
Parameters:
groupID - the group to which this metadata will be published
about - metadata for which this Codat is metadata
Document - doc held by this codat.
Since:
JXTA 1.0

Metadata

public Metadata(CodatID id,
                CodatID about,
                Document document)
Makes a new Metadata instance from parameters for an existing Codat, a CodatID and a document.
Parameters:
id - CodatId of the new codat
about - CodatId for which this is a codat
doc - Document hold by this codat
Since:
JXTA 1.0

Project JXTA