PropertyOwner.java :  » JMS » Open-Message-Queue » com » sun » messaging » Java Open Source

Java Open Source » JMS » Open Message Queue 
Open Message Queue » com » sun » messaging » PropertyOwner.java
/*
 * The contents of this file are subject to the terms
 * of the Common Development and Distribution License
 * (the "License").  You may not use this file except
 * in compliance with the License.
 *
 * You can obtain a copy of the license at
 * https://glassfish.dev.java.net/public/CDDLv1.0.html.
 * See the License for the specific language governing
 * permissions and limitations under the License.
 *
 * When distributing Covered Code, include this CDDL
 * HEADER in each file and include the License file at
 * https://glassfish.dev.java.net/public/CDDLv1.0.html.  
 *
 * If applicable add the following below this CDDL HEADER,
 * with the fields enclosed by brackets "[]" replaced with 
 * your own identifying information: Portions Copyright 
 * [year] [name of copyright owner]
 */

/*
 * @(#)PropertyOwner.java  1.4 05/02/06
 *
 * Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.
 */ 

package com.sun.messaging;

/**
 * The <code>PropertyOwner</code> interface is implemented by any property that owns
 * other properties. The property type of this property is <code>com.sun.messaging.PropertyOwner</code>.
 * <p>
 * Setting a property Type to <code>com.sun.messaging.PropertyOwner</code> indicates
 * that dependant property information can be obtained from the class via the
 * interface methods described below.
 *
 * @version     1.4 06/05/02
 * @author      George Tharakan
 */

public interface PropertyOwner {
    /**
     * Returns a String array of property names that this <code>PropertyOwner</code>
     * owns.
     *
     * @return The String array of property names that this <code>PropertyOwner</code> owns.
     */
    public String[] getPropertyNames();

    /**
     * Returns the type of a single owned property.
     * 
     * @param propname The name of the owned property.
     *
     * @return The type of the owned property <code>propname</code>.
     *         <code>null</code> if the property <code>propname</code> is invalid.
     */
    public String getPropertyType(String propname);

    /**
     * Returns the label of a single owned property.
     * 
     * @param propname The name of the owned property.
     *
     * @return The label of the owned property <code>propname</code>.
     *         <code>null</code> if the property <code>propname</code> is invalid.
     */
    public String getPropertyLabel(String propname);

    /**  
     * Returns the default value of a single owned property.
     *   
     * @param propname The name of the owned property.
     *   
     * @return The default value of the owned property <code>propname</code>.
     *         <code>null</code> if the property <code>propname</code> is invalid.
     */  
    public String getPropertyDefault(String propname);
}
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.