net.sourceforge.chaperon.model.pattern
Interface CharacterClassElement

All Superinterfaces:
java.lang.Cloneable, java.io.Serializable
All Known Implementing Classes:
CharacterInterval, CharacterSet

public interface CharacterClassElement
extends java.io.Serializable, java.lang.Cloneable

This represents the elements of a character class.

Version:
CVS $Id: CharacterClassElement.java,v 1.3 2003/12/09 19:55:52 benedikta Exp $
Author:
Stephan Michels

Method Summary
 java.lang.String getLocation()
          Returns the location from the input source.
 void setLocation(java.lang.String location)
          Set the location from the input source.
 java.lang.String toString()
          Create a clone of this pattern.
 Violations validate()
          Validates this pattern.
 

Method Detail

setLocation

public void setLocation(java.lang.String location)
Set the location from the input source.

Parameters:
location - Location in the input source.

getLocation

public java.lang.String getLocation()
Returns the location from the input source.

Returns:
Location in the input source.

toString

public java.lang.String toString()
Create a clone of this pattern.

Returns:
Clone of this pattern.
Throws:
java.lang.CloneNotSupportedException - If an exception occurs during the cloning.

validate

public Violations validate()
Validates this pattern.

Returns:
Return a list of violations, if this pattern isn't valid.


Copyright ? 2003 Chaperon project. All Rights Reserved.