com.atlassian.plugin.schema.spi
Class DocumentBasedSchema

java.lang.Object
  extended by com.atlassian.plugin.schema.spi.DocumentBasedSchema
All Implemented Interfaces:
Schema, SchemaDocumented

public final class DocumentBasedSchema
extends Object
implements Schema

Schema based on a XML document resource.


Nested Class Summary
static class DocumentBasedSchema.DynamicSchemaBuilder
           
 
Method Summary
static DocumentBasedSchema.DynamicSchemaBuilder builder()
           
static DocumentBasedSchema.DynamicSchemaBuilder builder(String id)
           
static org.dom4j.io.SAXReader createSecureSaxReader()
           
 String getComplexType()
           
 String getDescription()
           
 org.dom4j.Document getDocument()
           
 String getElementName()
           
 String getFileName()
           
 String getMaxOccurs()
           
 String getName()
           
 Iterable<String> getOptionalPermissions()
           
 Iterable<String> getRequiredPermissions()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

public String getName()
Specified by:
getName in interface Schema
Specified by:
getName in interface SchemaDocumented

getDescription

public String getDescription()
Specified by:
getDescription in interface Schema
Specified by:
getDescription in interface SchemaDocumented

getFileName

public String getFileName()
Specified by:
getFileName in interface Schema

getElementName

public String getElementName()
Specified by:
getElementName in interface Schema

getComplexType

public String getComplexType()
Specified by:
getComplexType in interface Schema

getMaxOccurs

public String getMaxOccurs()
Specified by:
getMaxOccurs in interface Schema

getRequiredPermissions

public Iterable<String> getRequiredPermissions()
Specified by:
getRequiredPermissions in interface Schema

getOptionalPermissions

public Iterable<String> getOptionalPermissions()
Specified by:
getOptionalPermissions in interface Schema

getDocument

public org.dom4j.Document getDocument()
Specified by:
getDocument in interface Schema

builder

public static DocumentBasedSchema.DynamicSchemaBuilder builder()

builder

public static DocumentBasedSchema.DynamicSchemaBuilder builder(String id)

createSecureSaxReader

public static org.dom4j.io.SAXReader createSecureSaxReader()


Copyright © 2015 Atlassian. All rights reserved.