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

## com.endeca.portal.metadata.simple
Class SimpleMetadataObject

    java.lang.Object
      com.endeca.portal.metadata.AbstractMetadata
          com.endeca.portal.metadata.MetadataObject
              com.endeca.portal.metadata.simple.SimpleMetadataObject

All Implemented Interfaces:
  Metadata

    public final class SimpleMetadataObject

extends MetadataObject

Class that represents a simple key-value pair metadata record

Author:
  Endeca Technologies, Inc.

Constructor Summary
`SimpleMetadataObject()` Constructor: initializes the object with an ID of -1
`SimpleMetadataObject(com.endeca.portal.liferay.ext.metadata.model.MetadataRecord record)` Constructor that initializes the object from a MetadataRecord.

Method Summary
`java.lang.String` | `getType()` Returns "SIMPLE"

Methods inherited from class com.endeca.portal.metadata.MetadataObject
`addProperties, addProperty, equals, getProperties, getProperties, getSourceRecord, init, removeAllProperties, removeProperties, removeProperties, removeProperty, setSourceRecord`

Methods inherited from class com.endeca.portal.metadata.AbstractMetadata
`getDescription, getFeature, getKey, getLastUpdated, getLocale, getObjectId, getRel, getSource, getValue, setDescription, setFeature, setKey, setLastUpdated, setLocale, setObjectId, setRel, setSource, setValue, toString`

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

Constructor Detail

### SimpleMetadataObject

    public SimpleMetadataObject()

  Constructor: initializes the object with an ID of -1

### SimpleMetadataObject

    public SimpleMetadataObject(com.endeca.portal.liferay.ext.metadata.model.MetadataRecord record)

  Constructor that initializes the object from a MetadataRecord. The underlying object is not persisted to the database; that must be done explicitly if you want it to be persisted.

  Parameters:
    `record` - the source MetadataRecord

Method Detail

### getType

    public java.lang.String getType()

  Returns "SIMPLE"

  Specified by:
    `getType` in interface `Metadata`
  Specified by:
    `getType` in class `MetadataObject`
  Returns:
    the type of metadata this object represents
  See Also:
    `Metadata.getType()`

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