org.unitedfront2.domain.communication
Class BlogValidator

java.lang.Object
  extended by org.unitedfront2.domain.communication.BlogValidator
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BlogValidator

public class BlogValidator
extends Object
implements Serializable

ブログの検証クラスです。

Author:
kurokkie
See Also:
Serialized Form

Field Summary
static int DEFAULT_CODE_MAX_LENGTH
          コード最大文字列長のデフォルト (32)
static String DEFAULT_CODE_REGEX
          コードの正規表現のデフォルト ([0-9a-z]+)
 
Constructor Summary
BlogValidator()
           
 
Method Summary
 boolean equals(Object other)
           
 int getCodeMaxLength()
           
 String getCodeRegex()
           
 int hashCode()
           
 void setBlogTable(BlogTable blogTable)
           
 void setCodeMaxLength(int codeMaxLength)
           
 void setCodeRegex(String codeRegex)
           
 String toString()
           
 void validateCode(Blog blog)
          コードを検証します。
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_CODE_REGEX

public static final String DEFAULT_CODE_REGEX
コードの正規表現のデフォルト ([0-9a-z]+)

See Also:
Constant Field Values

DEFAULT_CODE_MAX_LENGTH

public static final int DEFAULT_CODE_MAX_LENGTH
コード最大文字列長のデフォルト (32)

See Also:
Constant Field Values
Constructor Detail

BlogValidator

public BlogValidator()
Method Detail

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

validateCode

public void validateCode(Blog blog)
                  throws ValidationException
コードを検証します。

検証内容

Parameters:
blog - ブログ
Throws:
ValidationException - ValidationException

getCodeRegex

public String getCodeRegex()

setCodeRegex

public void setCodeRegex(String codeRegex)

getCodeMaxLength

public int getCodeMaxLength()

setCodeMaxLength

public void setCodeMaxLength(int codeMaxLength)

setBlogTable

public void setBlogTable(BlogTable blogTable)


Copyright © 2007-2009 www.unitedfront2.org. All Rights Reserved.