alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

/*******************************************************************************
 * Copyright (c) 2008 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.pde.api.tools.internal;

import org.eclipse.pde.api.tools.internal.provisional.problems.IApiProblem;

/**
 * Interface containing all of the constants used in XML documents
 * in API tooling 
 * 
 * @since 1.0.0
 */
public interface IApiXmlConstants {

	/**
	 * Constant representing the current version for api description files
	 */
	public static final String API_DESCRIPTION_CURRENT_VERSION = "1.1"; //$NON-NLS-1$
	/**
	 * Constant representing the current version for api filter store files
	 */
	public static final String API_FILTER_STORE_CURRENT_VERSION = "1"; //$NON-NLS-1$
	/**
	 * Constant representing the current version for api profile files
	 */
	public static final String API_PROFILE_CURRENT_VERSION = "1"; //$NON-NLS-1$
	/**
	 * Constant representing the category attribute of an {@link IApiProblem} in xml.
	 * Value is: <code>category
	 */
	public static final String ATTR_CATEGORY = "category"; //$NON-NLS-1$
	/**
	 * Constant representing the element kind attribute of an {@link IApiProblem} in xml.
	 * Value is: <code>elementkind
	 */
	public static final String ATTR_ELEMENT_KIND = "elementkind"; //$NON-NLS-1$
	/**
	 * Constant representing the extend attribute for a type xml node.
	 * Value is: <code>extend
	 */
	public static final String ATTR_EXTEND = "extend"; //$NON-NLS-1$
	/**
	 * Constant representing the override attribute for a method xml node.
	 * Value is: <code>override
	 */
	public static final String ATTR_OVERRIDE = "override"; //$NON-NLS-1$
	/**
	 * Constant representing the flags attribute of an {@link IApiProblem} in xml.
	 * Value is: <code>flags
	 */
	public static final String ATTR_FLAGS = "flags"; //$NON-NLS-1$
	/**
	 * Constant representing the java element handle attribute name in xml.
	 * Value is <code>handle
	 */
	public static final String ATTR_HANDLE = "handle"; //$NON-NLS-1$
	/**
	 * Constant representing the id attribute for plug-in xml node.
	 * Value is: <code>id
	 */
	public static final String ATTR_ID = "id"; //$NON-NLS-1$
	/**
	 * Constant representing the implement attribute for a type xml node.
	 * Value is: <code>implement
	 */
	public static final String ATTR_IMPLEMENT = "implement"; //$NON-NLS-1$
	/**
	 * Constant representing the instantiate attribute for a type xml node.
	 * Value is: <code>instantiate
	 */
	public static final String ATTR_INSTANTIATE = "instantiate";	 //$NON-NLS-1$
	/**
	 * Constant representing the kind attribute of an {@link IApiProblem} in xml.
	 * Value is: <code>kind
	 */
	public static final String ATTR_KIND = "kind"; //$NON-NLS-1$
	/**
	 * Constant representing the location attribute name for an API profile xml file.
	 * Value is <code>location
	 */
	static final String ATTR_LOCATION = "location"; //$NON-NLS-1$
	/**
	 * Constant representing the message attribute of an {@link IApiProblem} in xml.
	 * Value is: <code>message
	 */
	public static final String ATTR_MESSAGE = "message"; //$NON-NLS-1$
	/**
	 * Constant representing the resource modification stamp attribute name in xml.
	 * Value is <code>modificationStamp
	 */
	public static final String ATTR_MODIFICATION_STAMP = "modificationStamp"; //$NON-NLS-1$
	/**
	 * Constant representing the name attribute for component, package, type, method and field xml nodes.
	 * Value is: <code>name
	 */
	public static final String ATTR_NAME = "name"; //$NON-NLS-1$
	/**
	 * Constant representing the compatibility attribute of a delta in xml report.
	 * Value is: <code>compatible
	 */
	public static final String ATTR_NAME_COMPATIBLE = "compatible"; //$NON-NLS-1$
	/**
	 * Constant representing the element type attribute of a delta in xml report.
	 * Value is: <code>element_type
	 */
	public static final String ATTR_NAME_ELEMENT_TYPE = "element_type"; //$NON-NLS-1$
	/**
	 * Constant representing the char start attribute of an {@link IApiProblem} in xml.
	 * Value is: <code>charstart
	 */
	public static final String ATTR_CHAR_START = "charstart"; //$NON-NLS-1$
	/**
	 * Constant representing the charend attribute of an {@link IApiProblem} in xml.
	 * Value is: <code>charend
	 */
	public static final String ATTR_CHAR_END = "charend"; //$NON-NLS-1$
	/**
	 * Constant representing the flags attribute of a delta in xml report.
	 * Value is: <code>flags
	 */
	public static final String ATTR_NAME_FLAGS = "flags"; //$NON-NLS-1$
	/**
	 * Constant representing the key attribute of a delta in xml report.
	 * Value is: <code>key
	 */
	public static final String ATTR_NAME_KEY = "key"; //$NON-NLS-1$
	/**
	 * Constant representing the kind attribute of a delta in xml report.
	 * Value is: <code>kind
	 */
	public static final String ATTR_NAME_KIND = "kind"; //$NON-NLS-1$
	/**
	 * Constant representing the modifiers attribute of a delta in xml report.
	 * Value is: <code>modifiers
	 */
	public static final String ATTR_NAME_MODIFIERS = "modifiers"; //$NON-NLS-1$
	/**
	 * Constant representing the restrictions attribute of a delta in xml report.
	 * Value is: <code>restrictions
	 */
	public static final String ATTR_NAME_RESTRICTIONS = "restrictions"; //$NON-NLS-1$
	/**
	 * Constant representing the type name attribute of a delta in xml report.
	 * Value is: <code>type_name
	 */
	public static final String ATTR_NAME_TYPE_NAME = "type_name"; //$NON-NLS-1$
	/**
	 * Constant representing the linenumber attribute of an {@link IApiProblem} in xml.
	 * Value is: <code>linenumber
	 */
	public static final String ATTR_LINE_NUMBER = "linenumber"; //$NON-NLS-1$
	/**
	 * Constant representing the message argument attribute of an {@link IApiProblem} in xml.
	 * Value is: <code>messageargs
	 */
	public static final String ATTR_MESSAGE_ARGUMENTS = "messageargs"; //$NON-NLS-1$
	/**
	 * Constant representing the path attribute of a resource in xml.
	 * Value is: <code>path
	 */
	public static final String ATTR_PATH = "path"; //$NON-NLS-1$
	/**
	 * Constant representing the reference attribute for a type xml node.
	 * Value is: <code>reference
	 */
	public static final String ATTR_REFERENCE = "reference";	 //$NON-NLS-1$
	/**
	 * Constant representing the API restrictions mask attribute name in xml.
	 * Value is <code>restrictions
	 */
	public static final String ATTR_RESTRICTIONS = "restrictions"; //$NON-NLS-1$
	/**
	 * Constant representing the signature attribute for a method xml node.
	 * Value is: <code>signature 
	 */
	public static final String ATTR_SIGNATURE = "signature"; //$NON-NLS-1$
	/**
	 * Constant representing the version attribute name for an API profile xml file.
	 * Value is <code>version
	 */
	static final String ATTR_VERSION = "version"; //$NON-NLS-1$
	/**
	 * Constant representing the visibility attribute for component, package, type, method and field xml nodes.
	 * Will be one of: "API", "private", "private_permissable", or "SPI"
	 */
	public static final String ATTR_VISIBILITY = "visibility"; //$NON-NLS-1$
	/**
	 * Constant representing the delta element name.
	 * Value is: <code>delta
	 */
	public static final String DELTA_ELEMENT_NAME = "delta"; //$NON-NLS-1$
	/**
	 * Constant representing the deltas element name.
	 * Value is: <code>deltas
	 */
	public static final String DELTAS_ELEMENT_NAME = "deltas"; //$NON-NLS-1$
	/**
	 * Constant representing the API component node name for an API profile xml file.
	 * Value is <code>apicomponent
	 */
	public static final String ELEMENT_APICOMPONENT = "apicomponent";  //$NON-NLS-1$
	
	/**
	 * Constant representing the API profile node name for an API profile xml file.
	 * Value is <code>apiprofile
	 */
	public static final String ELEMENT_APIPROFILE = "apiprofile";  //$NON-NLS-1$

	/**
	 * Constant representing a component element node in xml.
	 * Value is: <code>component 
	 */
	public static final String ELEMENT_COMPONENT = "component"; //$NON-NLS-1$

	/**
	 * Constant representing a field element node in xml.
	 * Value is: <code>field
	 */
	public static final String ELEMENT_FIELD = "field"; //$NON-NLS-1$
	/**
	 * Constant representing a api filter element node in xml.
	 * Value is: <code>filter
	 */
	public static final String ELEMENT_FILTER = "filter"; //$NON-NLS-1$
	/**
	 * Constant representing a method element node in xml.
	 * Value is: <code>method
	 */
	public static final String ELEMENT_METHOD = "method"; //$NON-NLS-1$
	/**
	 * Constant representing a package element node in xml.
	 * Value is: <code>package
	 */
	public static final String ELEMENT_PACKAGE = "package"; //$NON-NLS-1$
	/**
	 * Constant representing a package fragment element node in xml.
	 * Value is: <code>package
	 */
	public static final String ELEMENT_PACKAGE_FRAGMENT = "fragment"; //$NON-NLS-1$	
	/**
	 * Constant representing a plugin element node in xml.
	 * Value is: <code>plugin
	 */
	public static final String ELEMENT_PLUGIN = "plugin"; //$NON-NLS-1$
	/**
	 * Constant representing the API component pool node name for an API profile xml file.
	 * Value is <code>pool
	 */
	public static final String ELEMENT_POOL = "pool";  //$NON-NLS-1$	
	/**
	 * Constant representing a resource element node in xml.
	 * Value is: <code>resource
	 */
	public static final String ELEMENT_RESOURCE = "resource"; //$NON-NLS-1$
	/**
	 * Constant representing a type element node in xml.
	 * Value is: <code>type
	 */
	public static final String ELEMENT_TYPE = "type"; //$NON-NLS-1$
}
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.