X-Git-Url: https://git.hedgecode.org/?p=hespiff.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fhedgecode%2Fxml%2Fxspf%2Fvalidate%2FValidatorType.java;fp=src%2Fmain%2Fjava%2Forg%2Fhedgecode%2Fxml%2Fxspf%2Fvalidate%2FValidatorType.java;h=40d62b0d18cfca1155bd09e2b0d08e4ee8378909;hp=0000000000000000000000000000000000000000;hb=6310cd885e1db660feb7dc222c2e86cccb5c1fce;hpb=13dba5ab997fc65d1da26de66a49b9a930b81f12 diff --git a/src/main/java/org/hedgecode/xml/xspf/validate/ValidatorType.java b/src/main/java/org/hedgecode/xml/xspf/validate/ValidatorType.java new file mode 100644 index 0000000..40d62b0 --- /dev/null +++ b/src/main/java/org/hedgecode/xml/xspf/validate/ValidatorType.java @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2015. Developed by Hedgecode. + * + * Licensed 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. + */ + +package org.hedgecode.xml.xspf.validate; + +/** + * + * + * @author Dmitry Samoshin aka gotty + */ +public enum ValidatorType { + + EMPTY ( EmptyValidator.getInstance() ), + URI ( URIValidator.getInstance() ); + + private Validator validator; + + private ValidatorType(Validator validator) { + this.validator = validator; + } + + public Validator getValidator() { + return validator; + } + +}