| /** |
| * 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. |
| */ |
| |
| package org.apache.cxf.maven_plugin; |
| |
| import java.io.File; |
| import java.util.ArrayList; |
| import java.util.List; |
| |
| public class XsdOption { |
| String xsd; |
| String xsdDir; |
| String packagename; |
| File[] dependencies; |
| File[] redundantDirs; |
| boolean extension; |
| List<String> extensionArgs; |
| List<String> bindingFiles; |
| String catalog; |
| |
| public String getPackagename() { |
| return packagename; |
| } |
| public void setPackagename(String pn) { |
| this.packagename = pn; |
| } |
| public String getXsd() { |
| return xsd; |
| } |
| public void setXsd(String x) { |
| this.xsd = x; |
| } |
| public String getXsdDir() { |
| return xsdDir; |
| } |
| public void setXsdDir(String x) { |
| this.xsdDir = x; |
| } |
| public String getBindingFile() { |
| if (bindingFiles != null && !bindingFiles.isEmpty()) { |
| return bindingFiles.get(0); |
| } |
| return null; |
| } |
| public void setBindingFile(String bf) { |
| if (bindingFiles == null) { |
| bindingFiles = new ArrayList<>(); |
| bindingFiles.add(bf); |
| } else { |
| bindingFiles.clear(); |
| bindingFiles.add(bf); |
| } |
| } |
| public List<String> getBindingFiles() { |
| return bindingFiles; |
| } |
| public void setBindingFiles(List<String> bindingFiles) { |
| this.bindingFiles = bindingFiles; |
| } |
| public void setDependencies(File[] files) { |
| dependencies = files; |
| } |
| public File[] getDependencies() { |
| return dependencies; |
| } |
| |
| public void setDeleteDirs(File[] files) { |
| redundantDirs = files; |
| } |
| public File[] getDeleteDirs() { |
| return redundantDirs; |
| } |
| public List<String> getExtensionArgs() { |
| return extensionArgs; |
| } |
| public void setExtensionArgs(List<String> extensionArgs) { |
| this.extensionArgs = extensionArgs; |
| } |
| public boolean isExtension() { |
| return extension; |
| } |
| public void setExtension(boolean extension) { |
| this.extension = extension; |
| } |
| public String getCatalog() { |
| return catalog; |
| } |
| public void setCatalogFile(String c) { |
| catalog = c; |
| } |
| |
| |
| } |