public class ServiceIdentity
extends java.lang.Object
ServiceInfoIQMessage| Constructor and Description |
|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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
ParseExceptionpublic 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
ParseExceptionpublic Element encode()
Copyright © 2001-2005 Echomine. All Rights Reserved.