You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by jf...@apache.org on 2004/02/20 06:25:01 UTC

cvs commit: jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/om/common DublinCore.java LocalizedField.java

jford       2004/02/19 21:25:01

  Added:       commons/src/java/org/apache/jetspeed/om/common
                        DublinCore.java LocalizedField.java
  Log:
  Initial version of the DublinCore
  
  Revision  Changes    Path
  1.1                  jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/om/common/DublinCore.java
  
  Index: DublinCore.java
  ===================================================================
  /* Copyright 2004 Apache Software Foundation
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *     http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  package org.apache.jetspeed.om.common;
  
  import java.util.Collection ;
  import java.util.Locale;
  
  import org.apache.pluto.om.common.ObjectID;
  
  /**
   * DublinCore
   * <br/>
   * Interface that allows retrieving information according to the 
   * Dublin Core specification 
   * (<a href="http://www.dublincore.org">http://www.dublincore.org</a>)
   * 
   * @author <a href="mailto:jford@apache.org">Jeremy Ford</a>
   * @version $Id: DublinCore.java,v 1.1 2004/02/20 05:25:01 jford Exp $
   *
   */
  public interface DublinCore extends java.io.Serializable
  {
      public Collection getTitles();
      public void setTitles(Collection titles);
      void addTitle(Locale locale, String title);
      
      public Collection getContributors();
      public void setContributors(Collection contributors);
      void addContributor(Locale locale, String contributor);
      
      public Collection getCoverages();
      public void setCoverages(Collection coverages);
      void addCoverage(Locale locale, String coverage);
      
      public Collection getCreators();
      public void setCreators(Collection creators);
      void addCreator(Locale locale, String creator);
      
      public Collection getDescriptions();
      public void setDescriptions(Collection descriptions);
      void addDescription(Locale locale, String description);
      
      public Collection getFormats();
      public void setFormats(Collection formats);
      void addFormat(Locale locale, String format);
      
      public Collection getIdentifiers();
      public void setIdentifiers(Collection identifiers);
      void addIdentifier(Locale locale, String identifier);
      
      public Collection getLanguages();
      public void setLanguages(Collection languages);
      void addLanguage(Locale locale, String language);
      
      public Collection getPublishers();
      public void setPublishers(Collection publishers);
      void addPublisher(Locale locale, String publisher);
      
      public Collection getRelations();
      public void setRelations(Collection relations);
      void addRelation(Locale locale, String relation);
      
      public Collection getRights();
      public void setRights(Collection rights);
      void addRight(Locale locale, String right);
      
      public Collection getSources();
      public void setSources(Collection sources);
      void addSource(Locale locale, String source);
      
      public Collection getSubjects();
      public void setSubjects(Collection subjects);
      void addSubject(Locale locale, String subject);
      
      public Collection getTypes();
      public void setTypes(Collection types);
      void addType(Locale locale, String type);
      
      /**
       * @param objectID
       */
      void setId(String objectID);
      
      /**
       * @see org.apache.pluto.om.portlet.PortletDefinition#getId()
       */
      public ObjectID getId();
  }
  
  
  
  1.1                  jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/om/common/LocalizedField.java
  
  Index: LocalizedField.java
  ===================================================================
  /* Copyright 2004 Apache Software Foundation
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *     http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  package org.apache.jetspeed.om.common;
  
  import java.util.Locale;
  
  import org.apache.pluto.om.common.ObjectID;
  
  /**
   * LocalizedField
   * <br/>
   * Interface that represents a string value and the locale of that string
   * 
   * @author <a href="mailto:jford@apache.org">Jeremy Ford</a>
   * @version $Id: LocalizedField.java,v 1.1 2004/02/20 05:25:01 jford Exp $
   *
   */
  public interface LocalizedField
  {
      public Locale getLocale();
      public void setLocale(Locale locale);
      
      public String getValue();
      public void setValue(String value);
      
      /**
       * @param objectID
       */
      void setId(String objectID);
  
      /**
       * 
       */
      public ObjectID getId();
  }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org