edu.uoc.pfc.social.xml
Enum SocialNetworkXMLTags
java.lang.Object
java.lang.Enum<SocialNetworkXMLTags>
edu.uoc.pfc.social.xml.SocialNetworkXMLTags
- All Implemented Interfaces:
- Serializable, Comparable<SocialNetworkXMLTags>
public enum SocialNetworkXMLTags
- extends Enum<SocialNetworkXMLTags>
Enum on es troben tots els valors dels nodes i atributs dels documents XML
relaccionats amb la configuració de la xarxa social.
- Author:
- Rubén Salvador Gareta.
USER_NODE
public static final SocialNetworkXMLTags USER_NODE
CERTIFICATE_NODE
public static final SocialNetworkXMLTags CERTIFICATE_NODE
CONTACTLIST_NODE
public static final SocialNetworkXMLTags CONTACTLIST_NODE
ID
public static final SocialNetworkXMLTags ID
IP_ADDRESS
public static final SocialNetworkXMLTags IP_ADDRESS
PORT
public static final SocialNetworkXMLTags PORT
values
public static SocialNetworkXMLTags[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (SocialNetworkXMLTags c : SocialNetworkXMLTags.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static SocialNetworkXMLTags valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
getValue
public String getValue()
- Mètode utilitzat per a consultar el valor d'alguna de les constants
de l'enumeration.
- Returns:
- Valor de l'enumerator consultat.