|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xiruss.snapcm.api.NullRepositoryObject org.xiruss.snapcm.api.NullResolutionPolicy
public class NullResolutionPolicy
Constructor Summary | |
---|---|
NullResolutionPolicy()
|
Method Summary | |
---|---|
Version |
applyPolicy(Version sourceVersion,
Resource targetResource,
Snapshot onSnapshot)
Applies a policy and returns a collection of zero or more result versions. |
java.lang.String |
getParameter(java.lang.String paramName)
Returns the value of the specified parameter. |
java.util.Map |
getParams()
Returns the map of name/value pairs representing the specific parameter values the policy was created with. |
java.lang.String |
getPolicyTypeName()
Returns the repository-implementation-unique name for the policy, i.e., the class name. |
void |
initialize(java.util.Map parameters)
Initialize the new policy instance with a set of parameters. |
void |
setParameter(java.lang.String name,
java.lang.String value)
Sets a parameter of the resolution policy instance. |
Methods inherited from class org.xiruss.snapcm.api.NullRepositoryObject |
---|
accept, compareTo, getId, getName, getProperties, getProperty, getPropertyNames, getRepository, getType, hasProperty, initialize, isNull, setId, setName, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xiruss.snapcm.api.RepositoryObject |
---|
accept, compareTo, getId, getName, getProperties, getProperty, getPropertyNames, getRepository, getType, hasProperty, initialize, isNull, setId, setName, setProperty, toString |
Constructor Detail |
---|
public NullResolutionPolicy()
Method Detail |
---|
public Version applyPolicy(Version sourceVersion, Resource targetResource, Snapshot onSnapshot) throws RepositoryException
ResolutionPolicy
applyPolicy
in interface ResolutionPolicy
sourceVersion
- The version the dependency is fromtargetResource
- The resource the depencency targetsonSnapshot
- The snapshot that establishes the visibility context within which
the policy is resolved.
RepositoryException
public void initialize(java.util.Map parameters)
ResolutionPolicy
initialize
in interface ResolutionPolicy
public java.lang.String getPolicyTypeName()
ResolutionPolicy
getPolicyTypeName
in interface ResolutionPolicy
public java.util.Map getParams()
ResolutionPolicy
getParams
in interface ResolutionPolicy
public void setParameter(java.lang.String name, java.lang.String value)
ResolutionPolicy
setParameter
in interface ResolutionPolicy
public java.lang.String getParameter(java.lang.String paramName)
ResolutionPolicy
getParameter
in interface ResolutionPolicy
paramName
- Name of the parameter to get;
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |