public class Profile extends Data
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONDOR |
static java.lang.String |
DAGMAN |
static java.lang.String |
ENV |
static java.lang.String |
GLOBUS |
static java.lang.String |
HINTS |
private static Escape |
mEscape
A private static handle to the escape class.
|
private java.lang.String |
mKey |
private java.lang.String |
mNamespace |
private java.lang.String |
mValue |
static java.lang.String |
SELECTOR |
static java.lang.String |
STAT |
static java.lang.String |
VDS |
Constructor and Description |
---|
Profile()
C'tpr for the class;
|
Profile(java.lang.String namespace,
java.lang.String key,
java.lang.String value)
This constructor allows to set the namespace , key and value of the PoolProfile.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Returns a copy of the object.
|
java.util.List |
getProfile()
Returns the Profile (namespace, value and key);
|
java.lang.String |
getProfileKey()
Returns the Key of the Profile
|
java.lang.String |
getProfileNamespace()
Returns the NameSpace of the Profile
|
java.lang.String |
getProfileValue()
Returns the Value for the profile
|
static boolean |
namespaceValid(java.lang.String namespace)
Returns a boolean indicating whether the namespace is valid or not.
|
void |
setProfile(java.lang.String namespace,
java.lang.String key,
java.lang.String value)
This method allows to set the namespace , key and value of the Profile.
|
void |
setProfileKey(java.lang.String key)
Sets the profile key
|
void |
setProfileNamespace(java.lang.String namespace)
Sets the NameSpace of the Profile
|
void |
setProfileValue(java.lang.String value)
Sets the profile value
|
java.lang.String |
toMultiLine()
Returns the textual description of the contents of
Profile
object in the multiline format. |
java.lang.String |
toString()
This method returns a string of the contents of this object.
|
java.lang.String |
toXML()
This method returns an xml of the contents of this object.
|
static java.lang.String |
unknownNamespaceMessage(java.lang.String namespace)
Returns the unknown namespace message.
|
static java.lang.String |
validTypesToString()
Returns a comma separated string containing the valid namespace types.
|
setToString, vectorToString
private static Escape mEscape
public static final java.lang.String CONDOR
public static final java.lang.String GLOBUS
public static final java.lang.String VDS
public static final java.lang.String DAGMAN
public static final java.lang.String HINTS
public static final java.lang.String ENV
public static final java.lang.String STAT
public static final java.lang.String SELECTOR
private java.lang.String mNamespace
private java.lang.String mKey
private java.lang.String mValue
public Profile()
java.lang.Exception
public Profile(java.lang.String namespace, java.lang.String key, java.lang.String value)
namespace
- Takes a String as the namespace. Has to be one of the predefined types.key
- Takes a String as the key.value
- The value for the key as Stringjava.lang.Exception
public static final java.lang.String unknownNamespaceMessage(java.lang.String namespace)
namespace
- the namespace.public static boolean namespaceValid(java.lang.String namespace)
namespace
- the namespacepublic static java.lang.String validTypesToString()
public void setProfile(java.lang.String namespace, java.lang.String key, java.lang.String value)
namespace
- Takes a String as the namespace. Has to be one of the predefined types.key
- Takes a String as the key.value
- The value for the key as Stringjava.lang.Exception
public java.util.List getProfile()
public void setProfileNamespace(java.lang.String namespace)
namespace
- the namespacein
- case of invalid namespacepublic java.lang.String getProfileNamespace()
public void setProfileKey(java.lang.String key)
key
- the profile keypublic java.lang.String getProfileKey()
public void setProfileValue(java.lang.String value)
value
- the profile valuepublic java.lang.String getProfileValue()
public java.lang.String toMultiLine()
Profile
object in the multiline format.public java.lang.String toString()
public java.lang.String toXML()
public java.lang.Object clone()
clone
in class java.lang.Object