public class Schematic extends DocumentFactory
Modifier and Type | Class and Description |
---|---|
static interface |
Schematic.ContentTypes |
protected static class |
Schematic.DocumentChanges |
protected static class |
Schematic.EditorImpl |
DEFAULT_FACTORY
Constructor and Description |
---|
Schematic() |
Modifier and Type | Method and Description |
---|---|
static SchemaLibrary |
createSchemaLibrary()
Create an in-memory schema library.
|
static SchemaLibrary |
createSchemaLibrary(String name)
Create an in-memory schema library.
|
static Editor |
editDocument(Document document,
boolean clone)
Obtain an editor for the supplied document.
|
static AdvancedExternalizer<Object>[] |
externalizers()
Get the set of
Externalizer implementations that are used by Schematic. |
static Set<? extends AdvancedExternalizer<?>> |
externalizerSet()
Get the complete set of
AdvancedExternalizer implementations. |
static SchematicDb |
get(Cache<String,SchematicEntry> cache)
Get the
SchematicDb instance given the appropriately-configured cache. |
static SchematicDb |
get(CacheContainer cacheContainer,
String cacheName)
Get the
SchematicDb instance given the container that can obtain the appropriately-configured cache with the given
name. |
newArray, newArray, newArray, newArray, newDocument, newDocument, newDocument, newDocument, newDocument, newDocument
public static SchematicDb get(CacheContainer cacheContainer, String cacheName)
SchematicDb
instance given the container that can obtain the appropriately-configured cache with the given
name.cacheContainer
- the container for the named cache; may not be nullcacheName
- the name of the cache; may not be nullpublic static SchematicDb get(Cache<String,SchematicEntry> cache)
SchematicDb
instance given the appropriately-configured cache.cache
- the cache to be used for storage; may not be nullpublic static Editor editDocument(Document document, boolean clone)
serializable memento
that can be applied to another document.document
- the document to be editedclone
- true if the editor should operate against a clone of the document, or false if it should operate against the
supplied documentpublic static SchemaLibrary createSchemaLibrary()
public static SchemaLibrary createSchemaLibrary(String name)
name
- the name of the library; may be null if a default name is to be usedpublic static AdvancedExternalizer<Object>[] externalizers()
Externalizer
implementations that are used by Schematic. These need
to be registered with the GlobalConfiguration
:public static Set<? extends AdvancedExternalizer<?>> externalizerSet()
AdvancedExternalizer
implementations. Note that this does not include
Externalizer
implementations that are not AdvancedExternalizer
s.AdvancedExternalizer
implementations.Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.