|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.juddi.datatype.Email
public class Email
Holds email address, can be adorned with an optinal useType attribute. If more than one Email element is saved within the same contact then the useType must be supplied. The useType attribute is used to describe the type of the email address in freeform text. Examples are "technical questions", "sales contact", etc.
Constructor Summary | |
---|---|
Email()
Construct a new initialized Email instance. |
|
Email(java.lang.String email)
Construct a new Email with a given address. |
|
Email(java.lang.String email,
java.lang.String type)
Construct a new Email with a given address and given usetype. |
Method Summary | |
---|---|
java.lang.String |
getUseType()
Returns the usetype of this Email. |
java.lang.String |
getValue()
Returns the emailAddress of this Email. |
void |
setUseType(java.lang.String type)
Sets the usetype of this Email to the given usetype. |
void |
setValue(java.lang.String email)
Sets the emailAddress of the Email to the given address. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Email()
public Email(java.lang.String email)
email
- The address of the email.public Email(java.lang.String email, java.lang.String type)
email
- The address of the email.type
- The usetype of the email.Method Detail |
---|
public void setValue(java.lang.String email)
email
- The new address of this email.public java.lang.String getValue()
public void setUseType(java.lang.String type)
type
- The new usetype of this Email, or null if this Email doesn't
have an usetype anymore.public java.lang.String getUseType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |