KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sourceforge > chaperon > model > pattern > CharacterClassElement


1 /*
2  * Copyright (C) Chaperon. All rights reserved.
3  * -------------------------------------------------------------------------
4  * This software is published under the terms of the Apache Software License
5  * version 1.1, a copy of which has been included with this distribution in
6  * the LICENSE file.
7  */

8
9 package net.sourceforge.chaperon.model.pattern;
10
11 import net.sourceforge.chaperon.model.Violations;
12
13 import java.io.Serializable JavaDoc;
14
15 /**
16  * This represents the elements of a character class.
17  *
18  * @author <a HREF="mailto:stephan@apache.org">Stephan Michels</a>
19  * @version CVS $Id: CharacterClassElement.java,v 1.3 2003/12/09 19:55:52 benedikta Exp $
20  */

21 public interface CharacterClassElement extends Serializable JavaDoc, Cloneable JavaDoc
22 {
23   /**
24    * Set the location from the input source.
25    *
26    * @param location Location in the input source.
27    */

28   public void setLocation(String JavaDoc location);
29
30   /**
31    * Returns the location from the input source.
32    *
33    * @return Location in the input source.
34    */

35   public String JavaDoc getLocation();
36
37   /**
38    * Create a clone of this pattern.
39    *
40    * @return Clone of this pattern.
41    *
42    * @throws CloneNotSupportedException If an exception occurs during the cloning.
43    */

44   public String JavaDoc toString();
45
46   /**
47    * Validates this pattern.
48    *
49    * @return Return a list of violations, if this pattern isn't valid.
50    */

51   public Violations validate();
52 }
53
Popular Tags