EventCategory.java :  » Google-tech » trafficando » com » appspot » trafficando » domain » Java Open Source

Java Open Source » Google tech » trafficando 
trafficando » com » appspot » trafficando » domain » EventCategory.java
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.appspot.trafficando.domain;

import java.util.List;

/**
 *
 * @author Domenico Maria Giffone
 */
public interface EventCategory  {

    public String getScheme();

    /**
     * RFC4287: The "term" attribute is a string that identifies the
     * category to which the entry or feed belongs.  Category elements
     * MUST have a "term" attribute.
     * @return The string value of the term attribute
     */
    public String getTerm();

    /**
     * RFC4287: The "label" attribute provides a human-readable label
     * for display in end-user applications.  The content of the "label"
     * attribute is Language-Sensitive.  Entities such as "&" and
     * "<" represent their corresponding characters ("&" and
     * "<", respectively), not markup.  Category elements MAY have a
     * "label" attribute.
     * @return The value of the human-readable label
     */
    public String getLabel();

    public List<? extends EventCategory> within(String scheme);

    public <T extends EventCategory> T of(String term);

    public List<? extends EventCategory> registeredCategories();
}
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.