|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.validation.util.XmlConfig
public class XmlConfig
Static utilities for loading the constraint provider configurations from XML documents.
This class is not intended to be used outside of the validation framework.
Field Summary | |
---|---|
static String |
A_CACHE
|
static String |
A_CATEGORIES
|
static String |
A_CLASS
|
static String |
A_ENABLED
|
static String |
A_ID
|
static String |
A_LANG
|
static String |
A_MANDATORY
|
static String |
A_MODE
|
static String |
A_NAME
|
static String |
A_NAMESPACE_URI
|
static String |
A_PATH
|
static String |
A_SEVERITY
|
static String |
A_STATUS_CODE
|
static String |
A_VALUE
|
static String |
E_CATEGORY
|
static String |
E_CONSTRAINT
|
static String |
E_CONSTRAINT_PROVIDER
|
static String |
E_CONSTRAINTS
|
static String |
E_CUSTOM_EVENT
|
static String |
E_DESCRIPTION
|
static String |
E_EVENT
|
static String |
E_FEATURE
|
static String |
E_INCLUDE
|
static String |
E_INCLUDED_CONSTRAINTS
|
static String |
E_MESSAGE
|
static String |
E_PACKAGE
|
static String |
E_PARAM
|
static String |
E_TARGET
|
Method Summary | |
---|---|
static void |
flushResourceBundles()
Flushes the resource bundles that were loaded for localization of strings in an XML constraint provider's XML constraint declarations. |
static IConfigurationElement[] |
getEvents(IConfigurationElement config)
Obtains an array including all of the event and customEvent children of the specified configuration element. |
static String |
getParameter(IConfigurationElement constraint,
String name)
Gets the value of the name d parameter on the specified
constraint configuration element. |
static String[] |
getParameterValues(IConfigurationElement constraint,
String name)
Gets the values of the name d parameter in the order in which
they appear on the specified constraint configuration
element. |
static IConfigurationElement |
load(IConfigurationElement parent,
URL url)
Loads a <constraints> element from the specified url . |
static IConfigurationElement |
parseConstraintsWithIncludes(IConfigurationElement constraints)
Parses a <constraints> element into an Eclipse configuration element data structure, with support for including constraints from separate XML files. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String E_CONSTRAINT_PROVIDER
public static final String A_ID
public static final String A_MODE
public static final String A_CACHE
public static final String E_PACKAGE
public static final String A_NAMESPACE_URI
public static final String E_CONSTRAINTS
public static final String A_CATEGORIES
public static final String E_INCLUDED_CONSTRAINTS
public static final String E_CONSTRAINT
public static final String A_LANG
public static final String A_SEVERITY
public static final String A_STATUS_CODE
public static final String A_CLASS
public static final String E_INCLUDE
public static final String A_PATH
public static final String E_TARGET
public static final String E_EVENT
public static final String E_CUSTOM_EVENT
public static final String A_NAME
public static final String E_FEATURE
public static final String E_DESCRIPTION
public static final String E_MESSAGE
public static final String E_PARAM
public static final String A_VALUE
public static final String E_CATEGORY
public static final String A_MANDATORY
public static final String A_ENABLED
Method Detail |
---|
public static IConfigurationElement parseConstraintsWithIncludes(IConfigurationElement constraints) throws CoreException
constraints
- an Eclipse configuration element obtained either
from Eclipse's extension point parser or from this utility class
CoreException
- if there is any problem either in accessing an
existing configuration element or in parsing the XML to create new onespublic static String getParameter(IConfigurationElement constraint, String name)
name
d parameter on the specified
constraint
configuration element. If the parameter occurs
more than once, only the first name will be retrieved.
constraint
- the <constraint> configuration elementname
- the name of the parameter to retrieve
null
if no such parameter
is definedgetParameterValues(org.eclipse.core.runtime.IConfigurationElement, java.lang.String)
public static String[] getParameterValues(IConfigurationElement constraint, String name)
name
d parameter in the order in which
they appear on the specified constraint
configuration
element.
constraint
- the <constraint> configuration elementname
- the name of the parameter to retrieve
null
) if no occurrences of the parameter are foundgetParameter(org.eclipse.core.runtime.IConfigurationElement, java.lang.String)
public static IConfigurationElement load(IConfigurationElement parent, URL url) throws CoreException
url
.
parent
- the configuration element which is to be the parent
of the new <constraints> elementurl
- the location of the document defining the
<constraints> element
CoreException
- on any problem accessing a configuration element
or parsing an XML filepublic static void flushResourceBundles()
public static IConfigurationElement[] getEvents(IConfigurationElement config)
config
- a configuration element
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |