|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jopendocument.dom.StyleDesc<S>
S - type of stylepublic abstract class StyleDesc<S extends StyleStyle>
Describe a family of style.
| Constructor Summary | |
|---|---|
protected |
StyleDesc(Class<S> clazz,
XMLVersion version,
String family,
String baseName)
|
protected |
StyleDesc(Class<S> clazz,
XMLVersion version,
String family,
String baseName,
String ns)
|
protected |
StyleDesc(Class<S> clazz,
XMLVersion version,
String family,
String baseName,
String ns,
List<String> refQNames)
|
| Method Summary | ||
|---|---|---|
static
|
copy(StyleDesc<C> toClone,
XMLVersion version)
|
|
abstract S |
create(ODPackage pkg,
org.jdom.Element e)
|
|
S |
createAutoStyle(ODPackage pkg)
|
|
S |
createAutoStyle(ODPackage pkg,
String baseName)
Create a new automatic style in the content of pkg. |
|
S |
findStyle(ODPackage pkg,
org.jdom.Document doc,
String name)
Resolve the passed style name. |
|
String |
getBaseName()
|
|
String |
getFamily()
|
|
protected CollectionMap<String,String> |
getMultiRefElementsMap()
|
|
protected Collection<String> |
getRefElements()
The list of elements that can point to this family of style. |
|
protected CollectionMap<String,String> |
getRefElementsMap()
|
|
XMLVersion |
getVersion()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected StyleDesc(Class<S> clazz,
XMLVersion version,
String family,
String baseName,
String ns)
protected StyleDesc(Class<S> clazz,
XMLVersion version,
String family,
String baseName,
String ns,
List<String> refQNames)
protected StyleDesc(Class<S> clazz,
XMLVersion version,
String family,
String baseName)
| Method Detail |
|---|
public static <C extends StyleStyle> StyleDesc<C> copy(StyleDesc<C> toClone,
XMLVersion version)
public abstract S create(ODPackage pkg,
org.jdom.Element e)
public final XMLVersion getVersion()
public final String getFamily()
public final String getBaseName()
protected final Collection<String> getRefElements()
protected final CollectionMap<String,String> getRefElementsMap()
protected final CollectionMap<String,String> getMultiRefElementsMap()
public final S findStyle(ODPackage pkg,
org.jdom.Document doc,
String name)
pkg - the package of the searched for style.doc - the document of the searched for style.name - the name of the style.
public final S createAutoStyle(ODPackage pkg)
public final S createAutoStyle(ODPackage pkg,
String baseName)
pkg.
pkg - where to add the new style.baseName - the base name for the new style, eg "ce".
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||