alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

/*
 *                 Sun Public License Notice
 * 
 * The contents of this file are subject to the Sun Public License
 * Version 1.0 (the "License"). You may not use this file except in
 * compliance with the License. A copy of the License is available at
 * http://www.sun.com/
 * 
 * The Original Code is NetBeans. The Initial Developer of the Original
 * Code is Sun Microsystems, Inc. Portions Copyright 1997-2003 Sun
 * Microsystems, Inc. All Rights Reserved.
 */

package org.netbeans.api.web.dd.common;
/**
 * Super interface for all DD elements having the display-name property/properties. 
 *
 *

Important note: Do not provide an implementation of this interface unless you are a DD API provider! *

* * @author Milan Kuchtiak */ public interface DisplayNameInterface { /** * Sets the display-name element value for particular locale.
* If locale=null the method sets the display-name element without xml:lang attribute.
* If displayName=null method removes the display-name element for a specified locale.
* * @param locale string representing the locale - the value for xml:lang attribute e.g. "fr" * @param displayName value for display-name element */ public void setDisplayName(String locale, String displayName) throws VersionNotSupportedException; /** * Sets the display-name element without xml:lang attribute. * * @param displayName value for display-name element */ public void setDisplayName(String displayName); /** * Sets the multiple display-name elements. * * @param displayNames Map of display names in the form of [locale,display-name] */ public void setAllDisplayNames(java.util.Map displayNames) throws VersionNotSupportedException; /** * Returns the display-name element value for particular locale.
* If locale=null method returns display-name for default locale. * * @param locale string representing the locale - the value of xml:lang attribute e.g. "fr". * @return display-name element value or null if not specified for given locale */ public String getDisplayName(String locale) throws VersionNotSupportedException; /** * Returns the display-name element value for default locale. * * @return display-name element value or null if not specified for default locale */ public String getDefaultDisplayName(); /** * Returns all display-name elements in the form of <@link java.util.Map>. * * @return map of all display-names in the form of [locale:display-name] */ public java.util.Map getAllDisplayNames(); /** * Removes the display-name element for particular locale. * If locale=null the method removes the display-name element for default locale. * * @param locale string representing the locale - the value of xml:lang attribute e.g. "fr" */ public void removeDisplayNameForLocale(String locale) throws VersionNotSupportedException; /** * Removes display-name element for default locale. */ public void removeDisplayName(); /** * Removes all display-name elements from DD element. */ public void removeAllDisplayNames(); }
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.