All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.commons.attributes.AttributeRepositoryClass Maven / Gradle / Ivy

There is a newer version: 2.2
Show newest version
/*
 * Copyright 2003-2004 The 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.commons.attributes;

import java.util.Set;
import java.util.Map;

/**
 * Interface implemented by all attribute repository classes.
 * This interface is used internally and should not be used
 * by clients. The only reason it is public is because the
 * classes implementing it may be in any package.
 */
public interface AttributeRepositoryClass {
    
    /**
     * Returns a set containing all attributes (instances) associated with this class.
     * Should not return any attributes of superclasses etc.
     */
    public Set getClassAttributes ();
    
    /**
     * Returns a map with String keys and Set values. The keys correspond to field names,
     * and their associated Set values are the set of all attributes (instances) associated with that field.
     * Should not return any attributes of superclasses etc.
     */
    public Map getFieldAttributes ();
    
    /**
     * Returns a map with String keys and List values. The keys correspond to method signatures,
     * given by get Util.getSignature method, and the lists are as follows:

* * list.get(0) = A Set with the attributes associated with the method.

* list.get(1) = A Set with the attributes associated with the method's return value.

* list.get(2) = A Set with the attributes associated with the method's first parameter.

* list.get(n) = A Set with the attributes associated with the method's (n - 1) th parameter.

* * All slots in the list must be filled, not just those where there are attributes. * * Should not return any attributes of superclasses etc. */ public Map getMethodAttributes (); /** * Returns a map with String keys and List values. The keys correspond to constructor signatures, * given by get Util.getSignature method, and the lists are as follows:

* * list.get(0) = A Set with the attributes associated with the constructor.

* list.get(1) = A Set with the attributes associated with the constructor's first parameter.

* list.get(n) = A Set with the attributes associated with the constructor's (n - 1) th parameter.

* * All slots in the list must be filled, not just those where there are attributes. * * Should not return any attributes of superclasses etc. */ public Map getConstructorAttributes (); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy