⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jbclassdescriptor.java

📁 OPIAM stands for Open Identity and Access Management. This Suite will provide modules for user & rig
💻 JAVA
字号:
/*
 * OPIAM Suite
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */

package opiam.admin.faare.config.javabeans;

import opiam.admin.faare.MessageUtil;

import org.apache.log4j.Logger;

import java.io.Serializable;

import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Properties;
import java.util.Set;


/**
 *  Bean representing a mapped object defined in faare_mapping.xml.
 *
 */

public class JBClassDescriptor implements Serializable, Comparable
{
    /** Instance of logger. */
    private static Logger _logger = Logger.getLogger(JBClassDescriptor.class);

    /** Mapped object classes. */
    private JBMapTo mapTo;

    /** List of JBFieldDescriptor, key = name. */
    private Map fieldsMap = new HashMap();

    /** Name of the class implementing the object. */
    private String name;

    /** Attribute of the object which identifies it (dname). */
    private String identity;

    /** Class implementing the object. */
    private Class theClass;

    /** For optimization : cache the fieldName to attribute conversion.
     * It is case insensitive, all requests are transformed to lowerCase !
     * key = string of objectName, value = string of dataSource name,
     * eg LDAP atttribute
     */
    private Properties field2AttrConversion = new Properties();

    /** For optimization : cache the fieldName to attribute conversion.
     * It is case insensitive, all requests are transformed to lowerCase !
     * key = string of dataSource name , value =  string of objectName
     * eg LDAP atttribute
     */
    private Properties attr2FieldConversion = new Properties();

    /** For optimization. */
    private Set nonLazyFieldNames = new HashSet();

    /**
     * Returns the fields.
     * @return collection of JBFieldDescriptors
     */
    public Collection getFields()
    {
        return fieldsMap.values();
    }

    /**
     * Returns the attribute of the object which identifies it (dname).
     * @return attribute name
     */
    public String getIdentity()
    {
        return identity;
    }

    /**
     * Returns the name of the class implementing the object.
     * @return name
     */
    public String getName()
    {
        return name;
    }

    /**
     * Sets the  attribute of the object which identifies it (dname)..
     * @param aidentity The attribute name to set
     */
    public void setIdentity(String aidentity)
    {
        this.identity = aidentity;
    }

    /**
     * Sets the name of the class implementing the object.
     * @param aname The name to set
     */
    public void setName(String aname)
    {
        this.name = aname;

        // obligation d'avoir la classe d'objet dans la classPath
        // 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -