| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <view> |
| <name>PROPERTY-VALIDATOR</name> |
| <label>PropertyValidator</label> |
| <version>0.1.0</version> |
| <validator-class>org.apache.ambari.view.property.MyValidator</validator-class> |
| <parameter> |
| <name>integer</name> |
| <description>Enter an integer value</description> |
| <label>Integer</label> |
| <required>true</required> |
| </parameter> |
| <parameter> |
| <name>url</name> |
| <description>URL</description> |
| <label>URL</label> |
| <placeholder>http://enter.some.url</placeholder> |
| <required>true</required> |
| </parameter> |
| <parameter> |
| <name>freeform</name> |
| <description>Enter a free-form string</description> |
| <label>FreeForm String</label> |
| <default-value>this is some free form string</default-value> |
| <required>true</required> |
| </parameter> |
| <parameter> |
| <name>first.value</name> |
| <description>This is the first value, must be less that second value</description> |
| <label>First Value</label> |
| <placeholder>0</placeholder> |
| <required>true</required> |
| </parameter> |
| <parameter> |
| <name>second.value</name> |
| <description>This is the second value, must be greater that second value</description> |
| <label>Second Value</label> |
| <placeholder>10</placeholder> |
| <required>true</required> |
| </parameter> |
| |
| <resource> |
| <name>properties</name> |
| <service-class>org.apache.ambari.view.property.PropertyValidatorService</service-class> |
| </resource> |
| </view> |