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

📄 emailaddress.java

📁 BEA WebLogic Server 8.1大全 = BEA webLogic server 8.1 unleashed (美) Mark Artiges等著 袁毅 ... [等] 译 eng
💻 JAVA
字号:
/* 
 * WebLogic Server Unleashed
 * 
 */


package com.wlsunleashed.xml.sax.email;

/**
 * This class Represents a single e-mail address.
 * 
 * @version 1.0
 */
public class EMailAddress {
    /** The e-mail id */
    private String id = "";

    /** The name */
    private String name = "";

    /**
     * Creates a new EMailAddress object.
     * 
     * @param name The name
     * @param id The e-mail id
     */
    public EMailAddress(String name, String id) {
        setName(name);
        setId(id);
    }

    /**
     * Sets the id.
     * 
     * @param id The id to set
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * Returns the id.
     * 
     * @return String
     */
    public String getId() {
        return id;
    }

    /**
     * Sets the name.
     * 
     * @param name The name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * Returns the name.
     * 
     * @return String
     */
    public String getName() {
        return name;
    }
    
    /**
     * Returns a Displayable e-mail id
     * 
     * @return String
     */
    public String getDisplayableId() {
        return new String(getName() + " (" + getId() + ")");    	
    }
}

⌨️ 快捷键说明

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