Rename "classes" to "application" in custom layer configuration
Closes gh-20539
This commit is contained in:
@@ -71,7 +71,7 @@ public class CustomLayersProvider {
|
||||
(StrategyFactory<LibraryFilter, LibraryStrategy>) FilteredLibraryStrategy::new,
|
||||
CoordinateFilter::new, "coordinates"::equals));
|
||||
}
|
||||
if ("classes".equals(nodeName)) {
|
||||
if ("application".equals(nodeName)) {
|
||||
resourceStrategies.addAll(getStrategies(contents,
|
||||
(StrategyFactory<ResourceFilter, ResourceStrategy>) FilteredResourceStrategy::new,
|
||||
LocationFilter::new, "locations"::equals));
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<xsd:sequence>
|
||||
<xsd:element type="layersType" name="layers"/>
|
||||
<xsd:element type="librariesType" name="libraries" minOccurs="0"/>
|
||||
<xsd:element type="classesType" name="classes" minOccurs="0"/>
|
||||
<xsd:element type="applicationType" name="application" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="layersType">
|
||||
@@ -48,25 +48,25 @@
|
||||
</xsd:sequence>
|
||||
<xsd:attribute type="xsd:string" name="layer" use="required"/>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="classesType">
|
||||
<xsd:complexType name="applicationType">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation><![CDATA[
|
||||
Strategies that should be applied to classes. If no strategies are defined, a single
|
||||
Strategies that should be applied to application classes and resources. If no strategies are defined, a single
|
||||
"application" layer is created out-of-the-box.
|
||||
]]></xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element type="classesLayerContentType" name="layer-content" maxOccurs="unbounded"
|
||||
<xsd:element type="applicationLayerContentType" name="layer-content" maxOccurs="unbounded"
|
||||
minOccurs="0">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation><![CDATA[
|
||||
Strategy to apply on classes.
|
||||
Strategy to apply on application classes and resources.
|
||||
]]></xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="classesLayerContentType" mixed="true">
|
||||
<xsd:complexType name="applicationLayerContentType" mixed="true">
|
||||
<xsd:sequence>
|
||||
<xsd:element type="filterType" name="locations" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
|
||||
Reference in New Issue
Block a user