com.atlassian.renderer.v2.macro.basic.validator
Interface ParameterValidator

All Known Implementing Classes:
BorderStyleValidator, ColorStyleValidator, CssSizeValidator, WidthSizeValidator

public interface ParameterValidator

Validates a user supplied property that may be used in "style" attributes, leading to Cross Site Scripting vulnerabilities.


Method Summary
 void assertValid(String parameterValue)
          Throws a MacroParameterValidationException if the property value is invalid.
 

Method Detail

assertValid

void assertValid(String parameterValue)
                 throws MacroParameterValidationException
Throws a MacroParameterValidationException if the property value is invalid. Implementations should check for null and handle it appropriately appropriately.

Parameters:
parameterValue - the property value to validate
Throws:
MacroParameterValidationException - if the property value is invalid


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.