net.jxta.codat
Class Metadata
java.lang.Object
net.jxta.codat.Codat
net.jxta.codat.Metadata
public class Metadata
- extends Codat
Medata Codats are special codats that contain information about another
Codat. Multiple medata Codats can refer to the same Codat. Medata codats can
hold any kind of information about a codat, such as a symbolic name,
description, index and searching information, etc.
- See Also:
Codat
,
CodatID
,
Document
Constructor Summary |
Metadata(CodatID id,
CodatID about,
Document document)
Constructs a Metadata instance for an existing Codat given it's
CodatID, the CodatID of the associated Codat and a Document. |
Metadata(PeerGroupID groupID,
CodatID about,
Document document)
Constructs a Metadata instance with a new CodatId given a PeerGroupID,
the CodatID of the associated Codat and a Document. |
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
- Constructs a Metadata instance with a new CodatId given a PeerGroupID,
the CodatID of the associated Codat and a Document.
- Parameters:
groupID
- The peer group to which this Codat will belong.about
- The CodatID of an associated Codat for which this Codat is
metadata or null if there is no associated Codat.document
- Document which contains the content data for this Codat.
- Throws:
IOException
- if there is an error accessing the document.
Metadata
public Metadata(CodatID id,
CodatID about,
Document document)
- Constructs a Metadata instance for an existing Codat given it's
CodatID, the CodatID of the associated Codat and a Document.
This implementation does not verify that the CodatID matches the
provided Document.
- Parameters:
id
- CodatId of the new Codat.about
- CodatID of an associated Codat for which this Codat is metadata.document
- Document which contains the content data for this Codat.