lmandel | 4c1ee84 | 2006-04-05 03:11:42 +0000 | [diff] [blame] | 1 | <?xml version='1.0' encoding='UTF-8'?> |
| 2 | <!-- Schema file written by PDE --> |
| 3 | <schema targetNamespace="org.eclipse.wst.xml.core"> |
| 4 | <annotation> |
| 5 | <appInfo> |
| 6 | <meta.schema plugin="org.eclipse.wst.xml.core" id="errorCustomizer" name="XML Validation Error Customizer"/> |
| 7 | </appInfo> |
| 8 | <documentation> |
| 9 | The error customizer extension point allows a client to contribute an error customizer for a specific namespace. The error customizer can provide error messages that are more domain specific than the generic error messages provided by the underlying generic XML validator. |
| 10 | </documentation> |
| 11 | </annotation> |
| 12 | |
| 13 | <element name="extension"> |
| 14 | <complexType> |
| 15 | <sequence> |
| 16 | <element ref="errorCustomizer" minOccurs="1" maxOccurs="unbounded"/> |
| 17 | </sequence> |
| 18 | <attribute name="point" type="string" use="required"> |
| 19 | <annotation> |
| 20 | <documentation> |
| 21 | a fully qualified identifier of the target extension point |
| 22 | </documentation> |
| 23 | </annotation> |
| 24 | </attribute> |
| 25 | <attribute name="id" type="string"> |
| 26 | <annotation> |
| 27 | <documentation> |
| 28 | an optional identifier of the extension instance |
| 29 | </documentation> |
| 30 | </annotation> |
| 31 | </attribute> |
| 32 | <attribute name="name" type="string"> |
| 33 | <annotation> |
| 34 | <documentation> |
| 35 | an optional name of the extension instance |
| 36 | </documentation> |
| 37 | <appInfo> |
| 38 | <meta.attribute translatable="true"/> |
| 39 | </appInfo> |
| 40 | </annotation> |
| 41 | </attribute> |
| 42 | </complexType> |
| 43 | </element> |
| 44 | |
| 45 | <element name="errorCustomizer"> |
| 46 | <complexType> |
| 47 | <attribute name="namespace" type="string" use="required"> |
| 48 | <annotation> |
| 49 | <documentation> |
| 50 | The namespace for which this error customizer will consider error customizations. |
| 51 | </documentation> |
| 52 | </annotation> |
| 53 | </attribute> |
| 54 | <attribute name="class" type="string" use="required"> |
| 55 | <annotation> |
| 56 | <documentation> |
| 57 | The class that implements <code>org.eclipse.wst.xml.core.internal.validation.errorcustomization.IErrorMessageCustomizer</code>. |
| 58 | </documentation> |
| 59 | </annotation> |
| 60 | </attribute> |
| 61 | </complexType> |
| 62 | </element> |
| 63 | |
| 64 | <annotation> |
| 65 | <appInfo> |
| 66 | <meta.section type="since"/> |
| 67 | </appInfo> |
| 68 | <documentation> |
| 69 | <b>This extension point is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.</b> |
| 70 | </documentation> |
| 71 | </annotation> |
| 72 | |
| 73 | <annotation> |
| 74 | <appInfo> |
| 75 | <meta.section type="examples"/> |
| 76 | </appInfo> |
| 77 | <documentation> |
| 78 | The following is an example of an Error Customizer contribution: |
| 79 | <pre> |
| 80 | <extension |
| 81 | id="sampleErrorCustomizer" |
| 82 | name="Sample Error Customizer" |
| 83 | point="org.eclipse.wst.xml.core.errorCustomizer"> |
| 84 | <errorCustomizer |
| 85 | namespace="http://sample.namespace" |
| 86 | class="org.eclipse.wst.xml.core.SampleErrorCustomizer"/> |
| 87 | </extension> |
| 88 | </pre> |
| 89 | </documentation> |
| 90 | </annotation> |
| 91 | |
| 92 | <annotation> |
| 93 | <appInfo> |
| 94 | <meta.section type="apiInfo"/> |
| 95 | </appInfo> |
| 96 | <documentation> |
| 97 | The supplied class must implement <code>org.eclipse.wst.xml.core.internal.validation.errorcustomization.IErrorMessageCustomizer</code>. |
| 98 | </documentation> |
| 99 | </annotation> |
| 100 | |
| 101 | <annotation> |
| 102 | <appInfo> |
| 103 | <meta.section type="implementation"/> |
| 104 | </appInfo> |
| 105 | <documentation> |
| 106 | |
| 107 | </documentation> |
| 108 | </annotation> |
| 109 | |
| 110 | <annotation> |
| 111 | <appInfo> |
| 112 | <meta.section type="copyright"/> |
| 113 | </appInfo> |
| 114 | <documentation> |
| 115 | Copyright (c) 2006 IBM Corporation and others.<br> |
| 116 | All rights reserved. This program and the accompanying materials are made |
| 117 | available under the terms of the Eclipse Public License v1.0 which accompanies |
| 118 | this distribution, and is available at <a |
| 119 | href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a> |
| 120 | </documentation> |
| 121 | </annotation> |
| 122 | |
| 123 | </schema> |