java类javax.xml.bind.annotation.XmlID的实例源码

Department.java 文件源码 项目:termitaria 阅读 30 收藏 0 点赞 0 评论 0
@XmlID
public String getXmlID() {
    if (xmlID == null) {
        xmlID = this.getClass().getName().concat(Integer.toString(departmentId));
    }
    return xmlID;
}
HostedComputerPart.java 文件源码 项目:Disconnected 阅读 20 收藏 0 点赞 0 评论 0
/**
 * Generates an unique id which is used to reference to this computer part.
 * 
 * @return An unique id which is used to reference to this computer part.
 */
@XmlID
@XmlAttribute
public String getId() {

    return host.getId() + "-" + host.getParts().indexOf(this);
}
Process.java 文件源码 项目:Disconnected 阅读 29 收藏 0 点赞 0 评论 0
/**
 * Returns the unique id the process has.
 * 
 * @return The unique id the process has.
 */
@XmlID
@XmlAttribute
protected String getId() {

    return host.getHost().getId() + "-" + pid;
}
FileSystem.java 文件源码 项目:Disconnected 阅读 23 收藏 0 点赞 0 评论 0
/**
 * Returns the unique serialization id for the file system.
 * The id is a combination of the host computer's id and the mountpoint of the file system.
 * You can only generate an id if the file system has been mounted.
 * 
 * @return The unique serialization id for the file system.
 */
@XmlAttribute
@XmlID
protected String getId() {

    if (host.getOperatingSystem().getFileSystemManager().getMounted().contains(this)) {
        return host.getId() + "-" + host.getOperatingSystem().getFileSystemManager().getMountpoint(this);
    } else {
        return null;
    }
}
OnmsIpInterface.java 文件源码 项目:OpenNMS 阅读 31 收藏 0 点赞 0 评论 0
/**
 * <p>getInterfaceId</p>
 *
 * @return a {@link java.lang.String} object.
 */
@XmlID
@XmlAttribute(name="id")
@Transient
public String getInterfaceId() {
    return getId().toString();
}
OnmsNode.java 文件源码 项目:OpenNMS 阅读 25 收藏 0 点赞 0 评论 0
/**
 * <p>getNodeId</p>
 *
 * @return a {@link java.lang.String} object.
 */
@XmlID
@XmlAttribute(name="id", required=true)
@Transient
public String getNodeId() {
    if (getId() != null) {
        return getId().toString();
    }
    return null;
}
CClassInfo.java 文件源码 项目:OpenJSharp 阅读 26 收藏 0 点赞 0 评论 0
@XmlID
public String getName() {
    return fullName();
}
CClassInfo.java 文件源码 项目:openjdk-jdk10 阅读 24 收藏 0 点赞 0 评论 0
@XmlID
public String getName() {
    return fullName();
}
CClassInfo.java 文件源码 项目:openjdk9 阅读 23 收藏 0 点赞 0 评论 0
@XmlID
public String getName() {
    return fullName();
}
NodeSpec.java 文件源码 项目:barleydb 阅读 28 收藏 0 点赞 0 评论 0
@XmlID
@XmlElement
public String getId() {
    return entity.getClassName() + "." +  name;
}


问题


面经


文章

微信
公众号

扫码关注公众号