jetbrains.buildServer.buildTriggers.vcs
Class AbstractVcsPropertiesProcessor

java.lang.Object
  extended by jetbrains.buildServer.buildTriggers.vcs.AbstractVcsPropertiesProcessor
All Implemented Interfaces:
PropertiesProcessor

public abstract class AbstractVcsPropertiesProcessor
extends java.lang.Object
implements PropertiesProcessor

Helper implementation of PropertiesProcessor.


Constructor Summary
AbstractVcsPropertiesProcessor()
           
 
Method Summary
protected  void checkDirectoryProperty(java.lang.String propertyName, java.lang.String propertyValue, java.util.Collection<InvalidProperty> result)
           
protected  void checkFileProperty(java.lang.String propertyName, java.lang.String propertyValue, java.util.Collection<InvalidProperty> result)
           
protected  void checkIntegerProperty(java.lang.String propertyName, java.lang.String propertyValue, java.util.Collection<InvalidProperty> result)
           
protected  void checkPortNumberProperty(java.lang.String propertyName, java.lang.String propertyValue, java.util.Collection<InvalidProperty> result)
           
protected  boolean isEmpty(java.lang.String str)
           
protected  boolean mayContainReference(java.lang.String str)
          Returns true if specified string may contain reference to a parameter.
protected  java.lang.Integer parseInteger(java.lang.String str)
           
protected  void removePropertiesWithEmptyValues(java.util.Map<java.lang.String,java.lang.String> properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jetbrains.buildServer.serverSide.PropertiesProcessor
process
 

Constructor Detail

AbstractVcsPropertiesProcessor

public AbstractVcsPropertiesProcessor()
Method Detail

removePropertiesWithEmptyValues

protected void removePropertiesWithEmptyValues(java.util.Map<java.lang.String,java.lang.String> properties)

checkFileProperty

protected void checkFileProperty(java.lang.String propertyName,
                                 java.lang.String propertyValue,
                                 java.util.Collection<InvalidProperty> result)

checkDirectoryProperty

protected void checkDirectoryProperty(java.lang.String propertyName,
                                      java.lang.String propertyValue,
                                      java.util.Collection<InvalidProperty> result)

checkPortNumberProperty

protected void checkPortNumberProperty(java.lang.String propertyName,
                                       java.lang.String propertyValue,
                                       java.util.Collection<InvalidProperty> result)

checkIntegerProperty

protected void checkIntegerProperty(java.lang.String propertyName,
                                    java.lang.String propertyValue,
                                    java.util.Collection<InvalidProperty> result)

isEmpty

protected boolean isEmpty(java.lang.String str)

mayContainReference

protected boolean mayContainReference(java.lang.String str)
Returns true if specified string may contain reference to a parameter. In this case such string is probably should not be validated.

Parameters:
str - some string
Returns:
see above.

parseInteger

protected java.lang.Integer parseInteger(java.lang.String str)