|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.microsoft.tfs.core.checkinpolicies.PolicyContext
public class PolicyContext
PolicyContext
contains optional values that are passed down to a
check-in policy by the execution environment that hosts the policy. A context
is available during several operations on PolicyInstance
.
Constructor Summary | |
---|---|
PolicyContext()
Creates a PolicyContext with no keys initially set. |
Method Summary | |
---|---|
void |
addProperty(java.lang.String key,
java.lang.Object value)
Adds a property to this PolicyContext . |
java.lang.Object |
getProperty(java.lang.String key)
Gets a property from this PolicyContext . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PolicyContext()
PolicyContext
with no keys initially set.
Method Detail |
---|
public void addProperty(java.lang.String key, java.lang.Object value)
PolicyContext
. If the property is already
defined, the old value will be overwritten.
key
- the property key (must not be null
)value
- the property value (can be null
)public java.lang.Object getProperty(java.lang.String key)
PolicyContext
.
key
- the property key (must not be null
)
null
if not set or
previously set to null)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |