ContentId.java :  » XML » wo-flint » org » weborganic » flint » content » Java Open Source

Java Open Source » XML » wo flint 
wo flint » org » weborganic » flint » content » ContentId.java
/*
 * This file is part of the Flint library.
 * 
 * For licensing information please see the file license.txt included in the release. A copy of this licence can also be
 * found at http://www.opensource.org/licenses/artistic-license-2.0.php
 */
package org.weborganic.flint.content;

/**
 * The ID for a Content.
 * The IndexManager must be able to identify a Content using this ID and its ContentType.
 * 
 * 
 * @author Jean-Baptiste Reure
 * @version 26 February 2010
 */
public interface ContentId {

  /**
   * Turn this ID in a String (must be unique).
   * 
   * @return a String representation of this ID
   */
  String getID();
  // XXX: unique? within the index??

  /**
   * Load the Content Type attached to this ID.
   * 
   * @return the Content Type attached to this ID.
   */
  ContentType getContentType();

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.