001: package net.firstpartners.nounit.snippet.xml;
002:
003: /**
004: * Title: NoUnit - Identify Classes that are not being unit Tested
005: *
006: * Copyright (C) 2001 Paul Browne , FirstPartners.net
007: *
008: *
009: * This program is free software; you can redistribute it and/or
010: * modify it under the terms of the GNU General Public License
011: * as published by the Free Software Foundation; either version 2
012: * of the License, or (at your option) any later version.
013: *
014: * This program is distributed in the hope that it will be useful,
015: * but WITHOUT ANY WARRANTY; without even the implied warranty of
016: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
017: * GNU General Public License for more details.
018: *
019: * You should have received a copy of the GNU General Public License
020: * along with this program; if not, write to the Free Software
021: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
022: *
023: * @author Paul Browne
024: * @version 0.7
025: */
026:
027: /**
028: * Constants Used in representing Snippets as XML
029: */
030: public interface IXmlConstants {
031:
032: //----------------------------
033: // General Constants
034: //----------------------------
035:
036: /**
037: * String used in building the general name attribute
038: */
039: public final static String ATTRIBUTE_NAME = "name";
040:
041: /**
042: * String used in building the XML general access attribute
043: */
044: public final static String ATTRIBUTE_ACCESS = "access";
045:
046: //-----------------------------------
047: //Constants to do with Called Methods
048: //-----------------------------------
049:
050: /**
051: * String used in building the XML calls - Method Element
052: */
053: public final static String ELEMENT_CALLS = "CALLS";
054:
055: /**
056: * String used in building the XML calls class attribute- Method Element
057: */
058: public final static String ATTRIBUTE_CLASS = "class";
059:
060: /**
061: * String used in building the XML calls class attribute- Method Element
062: */
063: public final static String ATTRIBUTE_METHOD = "method";
064:
065: //----------------------------
066: //Constants to do with Methods
067: //----------------------------
068:
069: /**
070: * String used in building the XML Method Element
071: */
072: public final static String ELEMENT_METHOD = "METHOD";
073:
074: /**
075: * String used in building the XML Method - Params
076: */
077: public final static String ELEMENT_PARAM = "PARAM";
078:
079: //----------------------------
080: //Constants to do with Classes
081: //----------------------------
082:
083: /**
084: * String used in building the XML Element - Class
085: */
086: public final static String ELEMENT_CLASS = "CLASS";
087:
088: /**
089: * String used in building the XML Element - Extends
090: */
091: public final static String ELEMENT_CLASS_EXTENDS = "EXTENDS";
092:
093: //-----------------------------
094: //Constants to do with Packages
095: //-----------------------------
096: /**
097: * String used in building the XML Package Class
098: */
099: public final static String ELEMENT_PACKAGE = "PACKAGE";
100:
101: /**
102: * String used in building the XML Package Location
103: */
104: public final static String ATTRIBUTE_PACKAGE_LOCATION = "location";
105:
106: //----------------------------
107: //Constants to do with Projects
108: //----------------------------
109: /**
110: * String used in building the XML Project Root
111: */
112: public final static String ELEMENT_PROJECT = "PROJECT";
113:
114: }
|