com.atlassian.renderer.v2.macro.basic.validator
Class BorderStyleValidator

java.lang.Object
  extended by com.atlassian.renderer.v2.macro.basic.validator.BorderStyleValidator
All Implemented Interfaces:
ParameterValidator

public class BorderStyleValidator
extends Object
implements ParameterValidator

Validates that a parameter is a valid CSS2 border-style property value.


Method Summary
 void assertValid(String propertyValue)
          Throws a MacroParameterValidationException if the property value is invalid.
static BorderStyleValidator getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static BorderStyleValidator getInstance()

assertValid

public void assertValid(String propertyValue)
                 throws MacroParameterValidationException
Description copied from interface: ParameterValidator
Throws a MacroParameterValidationException if the property value is invalid. Implementations should check for null and handle it appropriately appropriately.

Specified by:
assertValid in interface ParameterValidator
Parameters:
propertyValue - the property value to validate
Throws:
MacroParameterValidationException - if the property value is invalid


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.