001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package org.apache.jetspeed.om.common;
018:
019: import java.util.Collection;
020: import java.util.Locale;
021:
022: /**
023: * GenericMetadata <br/>Interface that allows retrieving localized information
024: *
025: * @author <a href="mailto:jford@apache.org">Jeremy Ford </a>
026: * @version $Id: GenericMetadata.java 516448 2007-03-09 16:25:47Z ate $
027: */
028: public interface GenericMetadata {
029: /**
030: *
031: * <p>
032: * addField
033: * </p>
034: *
035: * @param locale
036: * @param name
037: * @param value
038: */
039: public void addField(Locale locale, String name, String value);
040:
041: /**
042: *
043: * <p>
044: * addField
045: * </p>
046: *
047: * @param field
048: */
049: public void addField(LocalizedField field);
050:
051: /**
052: *
053: * <p>
054: * getFields
055: * </p>
056: *
057: * @param name
058: * @return
059: */
060: public Collection getFields(String name);
061:
062: /**
063: *
064: * <p>
065: * setFields
066: * </p>
067: *
068: * @param name
069: * @param values
070: */
071: public void setFields(String name, Collection values);
072:
073: /**
074: *
075: * <p>
076: * getFields
077: * </p>
078: *
079: * @return
080: */
081: public Collection getFields();
082:
083: /**
084: *
085: * <p>
086: * setFields
087: * </p>
088: *
089: * @param fields
090: */
091: public void setFields(Collection fields);
092:
093: /**
094: *
095: * <p>
096: * createLocalizedField
097: * </p>
098: *
099: * @return
100: */
101: LocalizedField createLocalizedField();
102:
103: /**
104: *
105: * <p>
106: * copyFields
107: * </p>
108: *
109: * @param fields
110: */
111: public void copyFields(Collection fields);
112: }
|