|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.echomine.jabber.msg.ServiceIdentity
public class ServiceIdentity
Supporting class to work with Service Discovery protocol. This objects contains data for one identity entry
ServiceInfoIQMessage
Constructor Summary | |
---|---|
ServiceIdentity(Element identElem)
parses out the data for the identity out of the element |
|
ServiceIdentity(java.lang.String category,
java.lang.String name)
constructor to work with the required fields |
|
ServiceIdentity(java.lang.String category,
java.lang.String name,
java.lang.String type)
constructor to work with the data |
Method Summary | |
---|---|
Element |
encode()
encodes the data into an identity element and returns it for inclusion into another dom tree |
java.lang.String |
getCategory()
|
java.lang.String |
getName()
|
java.lang.String |
getType()
|
void |
parse(Element identElem)
parses the element for the required data |
void |
setCategory(java.lang.String category)
sets the category name of the identity. |
void |
setName(java.lang.String name)
sets the name/description of the identity. |
void |
setType(java.lang.String type)
sets the identity type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceIdentity(java.lang.String category, java.lang.String name)
category
- the category namename
- the name/description of the categorypublic ServiceIdentity(java.lang.String category, java.lang.String name, java.lang.String type)
category
- the category namename
- the name/description of the categorytype
- optional type, can be nullpublic ServiceIdentity(Element identElem) throws ParseException
ParseException
Method Detail |
---|
public java.lang.String getCategory()
public void setCategory(java.lang.String category)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getType()
public void setType(java.lang.String type)
public void parse(Element identElem) throws ParseException
ParseException
public Element encode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |