X
- public class XMLOverlay<X extends XMLOverlay.XMLFile> extends TextFileOverlay<X> implements XMLTargetFactory
Modifier and Type | Class and Description |
---|---|
class |
XMLOverlay.TemplateTarget |
class |
XMLOverlay.XMLEditAction |
static class |
XMLOverlay.XMLFile |
class |
XMLOverlay.XMLFileUpdator |
TextFileOverlay.ExistsValidator, TextFileOverlay.TextFile, TextFileOverlay.TextFileCreator, TextFileOverlay.TextFileDiffAction, TextFileOverlay.TextFileRevertAction, TextFileOverlay.TextFileUpdateAction, TextFileOverlay.TextFileUpdator
DataObjectFactory.AbstractDataObjectInput, DataObjectFactory.AbstractFinder<X>, DataObjectFactory.DataObjectAcceptFilter, DataObjectFactory.DataObjectInput, DataObjectFactory.DataObjectIntegerInput, DataObjectFactory.DestAcceptFilter<T extends DataObject>, DataObjectFactory.FilterAdapter, DataObjectFactory.FilterCounter, DataObjectFactory.FilterExists, DataObjectFactory.FilterIterator, DataObjectFactory.FilterSelector, DataObjectFactory.FilterSet, DataObjectFactory.Finder, DataObjectFactory.MakeRemoteFilterVisitor<R extends DataObject>, DataObjectFactory.MatchFilter, DataObjectFactory.ReferencedAdapter<I extends Indexed>, DataObjectFactory.ReferenceIterator<I extends Indexed>, DataObjectFactory.SortingDataObjectInput, DataObjectFactory.TimeAcceptFilter<T extends DataObject>, DataObjectFactory.TimeFilter
Modifier and Type | Field and Description |
---|---|
static Feature |
ACE_EDITOR |
static Feature |
JQUERY_EDITOR |
GROUP, NAME, TEXT
AUTO_CREATE_TABLES_FEATURE, COMPOSITES_SUFFIX, REJECT_MULTIPLE_RESULT_FEATURE, res
Constructor and Description |
---|
XMLOverlay(AppContext c) |
XMLOverlay(AppContext c,
java.lang.String table) |
Modifier and Type | Method and Description |
---|---|
boolean |
canView(SessionService<?> sess) |
XMLTarget |
find(java.util.LinkedList<java.lang.String> location)
Get the XMLTarget represented by the path.
|
FormUpdate<X> |
getFormUpdate(AppContext c)
produce a FormUpdate for the target type appropriate for
the requesting user
|
javax.xml.validation.Schema |
getSchema()
Get schema to validate against
|
protected java.util.Map<java.lang.String,Selector> |
getSelectors()
Get a Map of selectors to use for forms of this type.
|
java.lang.Class<X> |
getTarget()
Get a bound on the type of object produced by this factory for run-time checking.
|
DomVisitor |
getValidatingVisitor()
Get a DOMVisitor that performs additional
(non-schema) validation throwing exceptions that
should be added to the schema errors.
|
protected X |
makeBDO(Repository.Record res)
Construct a new Blank DataObject of the correct Class
This method takes a Record as an argument.
|
protected java.lang.String[] |
splitNormalised(java.lang.String input)
Normalise and split input.
|
allbyGroup, find, getBaseURL, getDefaultTableSpecification, getFormCreator, getInitialCreateText, getOrder, getResourceStream, getStringFromStream, setBaseURL
all, allowPreSelect, canCreate, canUpdate, checkComposite, convertToDestinationFilter, customiseForm, equals, exists, find, find, find, find, find, getAllIterator, getComposite, getComposites, getComposites, getConfigTag, getContext, getCount, getDefaultRelationshipFilter, getDefaults, getDestFilter, getExcludeFilter, getFieldConstraints, getFieldHelp, getFilter, getFilter, getFilter, getFinalSelectFilter, getFinalTableSpecification, getFindFilter, getID, getIndex, getInput, getInput, getInput, getLogger, getMaxIdentifierLength, getNullable, getOptional, getProperty, getReferenced, getReferenceFieldType, getReferenceFieldType, getRemoteFilter, getRemoteSQLFilter, getResult, getResult, getSelectFilter, getSelector, getSelector, getSupress, getTableSpecification, getTableStructureContributers, getTag, getTranslations, getUniqueIdName, hasComposite, hashCode, isMine, isMine, isMyReference, isValid, makeBDO, makeObject, makeRecord, makeReference, makeReference, matches, narrowSelector, narrowSelector, observeComposite, OrderBy, postCreateTableSetup, postSetContext, release, restrictDefaultInput, setComposites, setContext, setContext, setContextWithMake, setProperty, toString, updateTable
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getContext
public static final Feature JQUERY_EDITOR
public static final Feature ACE_EDITOR
public XMLOverlay(AppContext c, java.lang.String table)
public XMLOverlay(AppContext c)
public javax.xml.validation.Schema getSchema()
getSchema
in interface XMLTargetFactory
protected X makeBDO(Repository.Record res) throws DataFault
DataObjectFactory
makeBDO
in class TextFileOverlay<X extends XMLOverlay.XMLFile>
res
- Record to create object fromDataFault
public java.lang.Class<X> getTarget()
DataObjectFactory
IndexedProducer.getTarget()
. Normally this method should be overridden
each time we make a sub-class that narrows the produced type. However
checks should still pass if the super-type method is retained.getTarget
in interface IndexedProducer<X extends XMLOverlay.XMLFile>
getTarget
in interface Targetted<X extends XMLOverlay.XMLFile>
getTarget
in class TextFileOverlay<X extends XMLOverlay.XMLFile>
public boolean canView(SessionService<?> sess)
public XMLTarget find(java.util.LinkedList<java.lang.String> location)
XMLTargetFactory
find
in interface XMLTargetFactory
public FormUpdate<X> getFormUpdate(AppContext c)
FormUpdateProducer
getFormUpdate
in interface FormUpdateProducer<X extends XMLOverlay.XMLFile>
getFormUpdate
in class TextFileOverlay<X extends XMLOverlay.XMLFile>
c
- AppContextprotected java.util.Map<java.lang.String,Selector> getSelectors()
DataObjectFactory
getSelectors
in class TextFileOverlay<X extends XMLOverlay.XMLFile>
DataObjectFormFactory
public DomVisitor getValidatingVisitor()
XMLTargetFactory
getValidatingVisitor
in interface XMLTargetFactory
protected java.lang.String[] splitNormalised(java.lang.String input)
TextFileOverlay
splitNormalised
in class TextFileOverlay<X extends XMLOverlay.XMLFile>