org.apache.jetspeed.om.portlet
Interface GenericMetadata


public interface GenericMetadata

GenericMetadata
Interface that allows retrieving localized information

Version:
$Id: GenericMetadata.java 881862 2009-11-18 18:24:48Z rwatler $
Author:
Jeremy Ford

Method Summary
 void addField(java.util.Locale locale, java.lang.String name, java.lang.String value)
           addField
 void addField(LocalizedField field)
           addField
 void copyFields(java.util.Collection<LocalizedField> fields)
           copyFields
 LocalizedField createLocalizedField()
           createLocalizedField
 java.util.Collection<LocalizedField> getFields()
           getFields
 java.util.Collection<LocalizedField> getFields(java.lang.String name)
           getFields
 java.lang.String getText(java.lang.String name, java.util.Locale locale)
          Get localized text from metadata
 void setFields(java.util.Collection<LocalizedField> fields)
           setFields
 void setFields(java.lang.String name, java.util.Collection<LocalizedField> values)
           setFields
 

Method Detail

addField

void addField(java.util.Locale locale,
              java.lang.String name,
              java.lang.String value)

addField

Parameters:
locale -
name -
value -

addField

void addField(LocalizedField field)

addField

Parameters:
field -

getFields

java.util.Collection<LocalizedField> getFields(java.lang.String name)

getFields

Parameters:
name -
Returns:

setFields

void setFields(java.lang.String name,
               java.util.Collection<LocalizedField> values)

setFields

Parameters:
name -
values -

getFields

java.util.Collection<LocalizedField> getFields()

getFields

Returns:

setFields

void setFields(java.util.Collection<LocalizedField> fields)

setFields

Parameters:
fields -

createLocalizedField

LocalizedField createLocalizedField()

createLocalizedField

Returns:

copyFields

void copyFields(java.util.Collection<LocalizedField> fields)

copyFields

Parameters:
fields -

getText

java.lang.String getText(java.lang.String name,
                         java.util.Locale locale)
Get localized text from metadata

Parameters:
name - text name
locale - preferred locale
Returns:
localized text or null if not available


Copyright © 1999-2011 The Apache Software Foundation. All Rights Reserved.