public class MetadataTemplateEntryList extends ListPackManager
BaseManager.PackEntryChangeListener, BaseManager.RegistryEntry
TYPE_EJP, TYPE_NATIVE
Modifier and Type | Method and Description |
---|---|
int |
countEntries()
Returns the number of contained entries.
|
MetadataTemplateEntry |
createEntry(FieldDefinition fieldDefinition)
Creates a new entry for the given field or returns the existing entry matching the field.
|
MetadataTemplateEntry |
createEntry(java.lang.String uid,
java.lang.String name,
int fieldType,
int valueInterpretation)
Creates a new entry for the given UID or returns the existing entry matching the UID.
|
void |
delete(MetadataTemplateEntry templateEntry)
Deletes the given entry.
|
java.util.List<MetadataTemplateEntry> |
getEntries()
Returns a list of all
MetadataTemplateEntry instances contained in this list. |
MetadataTemplateEntry |
getEntry(java.lang.String uid)
Returns the entry found for the given UID.
|
java.util.Set<GUID> |
getEntryGUIDs()
Returns a list of entry GUIDs contained in this list.
|
java.util.List<java.lang.String> |
getEntryUIDs()
Returns a list of entry UIDs contained in this list.
|
addChangeListener, addChangeListener, addGlobalChangeListener, addPackListener, forgetPush, getPack, isShared, popPack, pushPack, removeChangeListener, removeChangeListener, removeGlobalChangeListener, removePackListener, save, save, toString, writeAsXML
public int countEntries()
public java.util.List<java.lang.String> getEntryUIDs()
String
instancespublic java.util.Set<GUID> getEntryGUIDs()
GUID
instancespublic java.util.List<MetadataTemplateEntry> getEntries()
MetadataTemplateEntry
instances contained in this list.MetadataTemplateEntry
instancespublic MetadataTemplateEntry getEntry(java.lang.String uid)
uid
- the UID for the entry to getpublic MetadataTemplateEntry createEntry(java.lang.String uid, java.lang.String name, int fieldType, int valueInterpretation)
FieldDefinition
is available as it cannot make sure that multiple languages fields are handled correctly. With a FieldDefinition available use
createEntry(com.canto.cumulus.FieldDefinition)
instead.uid
- UID for the entry to createname
- display name of the entry to createfieldType
- field type of the entry to createvalueInterpretation
- value interpretation of the entry to createpublic MetadataTemplateEntry createEntry(FieldDefinition fieldDefinition)
fieldDefinition
- the field to add to this metadata templatepublic void delete(MetadataTemplateEntry templateEntry)
templateEntry
- the entry to deletewww.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.