public class SchemaConfigExtension
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.net.URL |
FALLBACK_URL
Placeholder to configure plugin for implicit schemas (the ones that are configured within the xml files themselves)
|
| Constructor and Description |
|---|
SchemaConfigExtension(java.lang.String name,
org.gradle.api.Project project) |
| Modifier and Type | Method and Description |
|---|---|
org.gradle.api.file.FileCollection |
getFiles()
Files to validate
|
java.lang.String |
getName() |
java.io.File |
getOfflineSchema()
Local backup location for schemas
|
org.gradle.api.Project |
getProject() |
java.io.File |
getSchemaDir()
Directory containing all the schemas
|
java.net.URL |
getSchemaUri()
Get the configured schema
Defaults to implicit schemas
|
boolean |
isUseInherentSchemas()
force use of XML schemas configured inside source files
|
void |
setFiles(java.io.File file)
Files to validate
|
void |
setFiles(org.gradle.api.file.FileCollection files)
Files to validate
|
void |
setOfflineSchema(java.io.File offlineSchema)
Local backup location for schemas
|
void |
setSchemaDir(java.io.File dir)
Directory containing all the schemas
|
void |
setSchemaUri(java.io.File file)
Set the schema to use for validation
Defaults to implicit schemas
|
void |
setSchemaUri(java.lang.String uri)
Set the schema to use for validation
Defaults to implicit schemas
|
void |
setSchemaUri(java.net.URL uri)
Set the schema to use for validation
Defaults to implicit schemas
|
void |
setUseInherentSchemas(boolean useInherentSchemas)
force use of XML schemas configured inside source files
|
public static final java.net.URL FALLBACK_URL
public SchemaConfigExtension(java.lang.String name,
org.gradle.api.Project project)
public org.gradle.api.Project getProject()
public java.lang.String getName()
public java.io.File getSchemaDir()
public void setSchemaDir(java.io.File dir)
dir - schema directorypublic java.io.File getOfflineSchema()
public void setOfflineSchema(java.io.File offlineSchema)
offlineSchema - parent dir of offline schemaspublic boolean isUseInherentSchemas()
public void setUseInherentSchemas(boolean useInherentSchemas)
useInherentSchemas - booleanpublic void setFiles(java.io.File file)
file - single file to validatepublic org.gradle.api.file.FileCollection getFiles()
public void setFiles(org.gradle.api.file.FileCollection files)
files - files to validatepublic java.net.URL getSchemaUri()
public void setSchemaUri(java.io.File file)
throws java.net.MalformedURLException
file - local schema filejava.net.MalformedURLException - in case of invalid URLpublic void setSchemaUri(java.net.URL uri)
uri - schema URLpublic void setSchemaUri(java.lang.String uri)
throws java.net.MalformedURLException
uri - schema URLjava.net.MalformedURLException - in case of invalid URL