ModelDescription
Keywords: uk.ac.ic.doc.automed.p2p.directory.ModelDescription class

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## uk.ac.ic.doc.automed.p2p.directory
Class ModelDescription

    java.lang.Object
      uk.ac.ic.doc.automed.p2p.directory.ModelDescription

All Implemented Interfaces:
  P2PDirectoryObject

    public class ModelDescription

extends java.lang.Object
implements P2PDirectoryObject

Field Summary
`java.lang.String` | `description`
`java.lang.String` | `name`
`java.lang.String[]` | `schemas`
`java.lang.String` | `structure`

Constructor Summary
`ModelDescription(java.util.Map values)`
`ModelDescription(java.lang.String name, java.lang.String description, java.lang.String structure)`
`ModelDescription(java.lang.String name, java.lang.String description, java.lang.String structure, java.lang.String[] schemas)`

Method Summary
`static java.util.List` | `convertIntoObjects(java.util.List rows)`
`static ModelDescription` | `createFrom(java.util.List data, java.util.List metadata)`
`boolean` | `equals(java.lang.Object o)`
`java.util.List` | `getAsList()`
`java.lang.String` | `getDescription()` Get the plain text description of the public Schema being described.
`java.util.List` | `getMetaData()`
`java.lang.String` | `getName()` Get the name of the public Schmea being described.
`int` | `hashCode()`
`boolean` | `persist()`
`java.lang.String` | `toString(java.lang.Object o)`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### name

    public java.lang.String name

### description

    public java.lang.String description

### structure

    public java.lang.String structure

### schemas

    public java.lang.String[] schemas

Constructor Detail

### ModelDescription

    public ModelDescription(java.lang.String name,
                            java.lang.String description,
                            java.lang.String structure)

### ModelDescription

    public ModelDescription(java.lang.String name,
                            java.lang.String description,
                            java.lang.String structure,
                            java.lang.String[] schemas)

### ModelDescription

    public ModelDescription(java.util.Map values)

Method Detail

### getName

    public java.lang.String getName()

  Get the name of the public Schmea being described. This should be unique accross the whole P2P network.

### getDescription

    public java.lang.String getDescription()

  Get the plain text description of the public Schema being described.

### toString

    public java.lang.String toString(java.lang.Object o)

### persist

    public boolean persist()
                    throws java.sql.SQLException

  Specified by:
    `persist` in interface `P2PDirectoryObject`
  Throws:
    `java.sql.SQLException`

### convertIntoObjects

    public static java.util.List convertIntoObjects(java.util.List rows)
                                             throws java.sql.SQLException

  Throws:
    `java.sql.SQLException`

### createFrom

    public static ModelDescription createFrom(java.util.List data,
                                              java.util.List metadata)

### getAsList

    public java.util.List getAsList()

  Specified by:
    `getAsList` in interface `P2PDirectoryObject`

### getMetaData

    public java.util.List getMetaData()

  Specified by:
    `getMetaData` in interface `P2PDirectoryObject`

### hashCode

    public int hashCode()

  Overrides:
    `hashCode` in class `java.lang.Object`

### equals

    public boolean equals(java.lang.Object o)

  Overrides:
    `equals` in class `java.lang.Object`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD