📄 vcard.java
字号:
}else if (localityTag.equals(subNode.getNodeName())){ addr.setCity( getText(subNode)); }else if (streetTag.equals(subNode.getNodeName())){ addr.setStreet( getText(subNode)); }else if (countryTag.equals(subNode.getNodeName())){ addr.setCountry( getText(subNode)); }else if ( pcodeTag.equals(subNode.getNodeName())){ addr.setPostalCode( getText(subNode)); }else if (regionTag.equals(subNode.getNodeName())){ addr.setState( getText(subNode)); }else if (extaddTag.equals(subNode.getNodeName())){ addr.setExtadd( getText(subNode)); }else if (poboxTag.equals(subNode.getNodeName())){ addr.setPobox( getText(subNode)); } } } } LOG.debug("End Processing Element!"); }catch(Exception e){ e.printStackTrace(); } }// end of processMessage() protected String getText(Node node) { Text t = (Text) node.getFirstChild(); if (t == null) return ""; else return t.getData(); } /** Getter for property birthday. * @return Value of property birthday. */ public String getBirthday() { return this.birthday; } /** Setter for property birthday. * @param birthday New value of property birthday. */ public void setBirthday(String birthday) { this.birthday = birthday; } /** Getter for property changed. * @return Value of property changed. */ public boolean isChanged() { return this.changed; } /** Setter for property changed. * @param changed New value of property changed. */ public void setChanged(boolean changed) { this.changed = changed; } /** Getter for property email. * @return Value of property email. */ public String getEmail() { return this.email; } /** Setter for property email. * @param email New value of property email. */ public void setEmail(String email) { this.email = email; } /** Getter for property firstName. * @return Value of property firstName. */ public String getFirstName() { return this.firstName; } /** Setter for property firstName. * @param firstName New value of property firstName. */ public void setFirstName(String firstName) { this.firstName = firstName; } /** Getter for property lastName. * @return Value of property lastName. */ public String getLastName() { return this.lastName; } /** Setter for property lastName. * @param lastName New value of property lastName. */ public void setLastName(String lastName) { this.lastName = lastName; } /** Getter for property latitude. * @return Value of property latitude. */ public String getLatitude() { return this.latitude; } /** Setter for property latitude. * @param latitude New value of property latitude. */ public void setLatitude(String latitude) { this.latitude = latitude; } /** Getter for property longitude. * @return Value of property longitude. */ public String getLongitude() { return this.longitude; } /** Setter for property longitude. * @param longitude New value of property longitude. */ public void setLongitude(String longitude) { this.longitude = longitude; } /** Getter for property nickname. * @return Value of property nickname. */ public String getNickname() { return this.nickName; } /** Setter for property nickname. * @param nickname New value of property nickname. */ public void setNickname(String nickName) { this.nickName = nickName; } /** Getter for property note. * @return Value of property note. */ public String getNote() { return this.note; } /** Setter for property note. * @param note New value of property note. */ public void setNote(String note) { this.note = note; } /** Getter for property peerID. * @return Value of property peerID. */ public String getPeerID() { return this.peerID; } /** Setter for property peerID. * @param peerID New value of property peerID. */ public void setPeerID(String peerID) { this.peerID = peerID; } /** Getter for property peerName. * @return Value of property peerName. */ public String getPeerName() { return this.peerName; } /** Setter for property peerName. * @param peerName New value of property peerName. */ public void setPeerName(String peerName) { this.peerName = peerName; } /** Getter for property versionAttr. * @return Value of property versionAttr. */ public String getVersionAttr() { return this.versionAttr; } /** Getter for property nickName. * @return Value of property nickName. */ public java.lang.String getNickName() { return this.nickName; } public String toString(){ return firstName+" "+lastName+" ("+email+")"+dtstamp; } /** Setter for property nickName. * @param nickName New value of property nickName. */ public void setNickName(java.lang.String nickName) { this.nickName = nickName; } /** Getter for property fullName. * @return Value of property fullName. */ public java.lang.String getFullName() { return this.fullName; } /** Setter for property fullName. * @param fullName New value of property fullName. */ public void setFullName(java.lang.String fullName) { this.fullName = fullName; } /** Getter for property dtstamp. * @return Value of property dtstamp. */ public java.lang.String getDtstamp() { return this.dtstamp; } /** Setter for property dtstamp. * @param dtstamp New value of property dtstamp. */ public void setDtstamp(java.lang.String dtstamp) { this.dtstamp = dtstamp; } /** Getter for property id. * @return Value of property id. */ public String getID() { return id; } /** Setter for property id. * @param id New value of property id. */ public void setID(String id) { this.id = id; } /** Getter for property groupID. * @return Value of property groupID. */ public java.lang.String getGroupID() { return groupID; } /** Setter for property groupID. * @param groupID New value of property groupID. */ public void setGroupID(java.lang.String groupID) { this.groupID = groupID; } /** Getter for property groupName. * @return Value of property groupName. */ public java.lang.String getGroupName() { return groupName; } /** Setter for property groupName. * @param groupName New value of property groupName. */ public void setGroupName(java.lang.String groupName) { this.groupName = groupName; } /** Getter for property groupDesc. * @return Value of property groupDesc. */ public java.lang.String getGroupDesc() { return groupDesc; } /** Setter for property groupDesc. * @param groupDesc New value of property groupDesc. */ public void setGroupDesc(java.lang.String groupDesc) { this.groupDesc = groupDesc; } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -