
com.adobe.aemds.guide.utils.SchemaImportOptions Maven / Gradle / Ivy
/*************************************************************************
*
* ADOBE CONFIDENTIAL
* __________________
*
* Copyright 2016 Adobe Systems Incorporated
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Adobe Systems Incorporated and its suppliers,
* if any. The intellectual and technical concepts contained
* herein are proprietary to Adobe Systems Incorporated and its
* suppliers and may be covered by U.S. and Foreign Patents,
* patents in process, and are protected by trade secret or copyright law.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Adobe Systems Incorporated.
**************************************************************************/
package com.adobe.aemds.guide.utils;
import com.adobe.aemds.guide.service.GuideSchemaType;
import org.apache.sling.api.resource.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.InputStream;
/**
* @pad.exclude Exclude from Published API.
*/
public class SchemaImportOptions {
private static final Logger logger = LoggerFactory.getLogger(SchemaImportOptions.class);
private Resource guideContainer;
private GuideSchemaType schemaType;
private InputStream schemaStream;
private String schemaRootName;
private String rootNamespace;
private String schemaPath;
private String fragmentModelRoot;
private Integer maxCollectionLevel;
public void setGuideContainer(Resource guideContainerResource) {
this.guideContainer = guideContainerResource;
}
public Resource getGuideContainer() {
return guideContainer;
}
public String getRootNamespace() {
return rootNamespace;
}
public void setRootNamespace(String rootNamespace) {
this.rootNamespace = rootNamespace;
if(!schemaType.equals(GuideSchemaType.XSD)){
logger.warn("rootNamespace is supported only for XSD based Form");
}
}
public String getSchemaRootName() {
return schemaRootName;
}
public void setSchemaRootName(String schemaRootName) {
this.schemaRootName = schemaRootName;
}
public InputStream getSchemaStream() {
return schemaStream;
}
public void setSchemaStream(InputStream schemaStream) {
this.schemaStream = schemaStream;
}
public GuideSchemaType getSchemaType() {
return schemaType;
}
public void setSchemaType(GuideSchemaType schemaType) {
this.schemaType = schemaType;
}
public String getSchemaPath() {
return schemaPath;
}
public void setSchemaPath(String schemaPath) {
this.schemaPath = schemaPath;
}
public String getFragmentModelRoot() {
return fragmentModelRoot;
}
public void setFragmentModelRoot(String fragmentModelRoot) {
this.fragmentModelRoot = fragmentModelRoot;
}
public Integer getMaxCollectionLevel() {
return maxCollectionLevel;
}
public void setMaxCollectionLevel(Integer maxCollectionLevel) {
this.maxCollectionLevel = maxCollectionLevel;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy