org.jopendocument.dom
Class StyleStyleDesc<S extends StyleStyle>

java.lang.Object
  extended by org.jopendocument.dom.StyleDesc<S>
      extended by org.jopendocument.dom.StyleStyleDesc<S>
Type Parameters:
S - type of style

public abstract class StyleStyleDesc<S extends StyleStyle>
extends StyleDesc<S>

Describe a family of style.

Author:
Sylvain CUAZ

Field Summary
static String ELEMENT_DEFAULT_NAME
           
 
Constructor Summary
protected StyleStyleDesc(Class<S> clazz, XMLVersion version, String family, String baseName)
           
protected StyleStyleDesc(Class<S> clazz, XMLVersion version, String family, String baseName, String ns)
           
protected StyleStyleDesc(Class<S> clazz, XMLVersion version, String family, String baseName, String ns, List<String> refQNames)
           
 
Method Summary
static
<C extends StyleStyle>
StyleStyleDesc<C>
copy(StyleStyleDesc<C> toClone, XMLVersion version)
           
 org.jdom.Element createDefaultElement()
           
 S findDefaultStyle(ODPackage pkg)
           
 S getDefaultStyle(ODPackage pkg, boolean create)
           
 String getFamily()
           
protected  void initStyle(org.jdom.Element elem)
           
 String toString()
           
 
Methods inherited from class org.jopendocument.dom.StyleDesc
copy, create, createAutoStyle, createAutoStyle, createCommonStyle, createElement, evaluateConditions, findStyleForNode, findStyleForNode, findStyleWithName, getBaseName, getElementName, getElementNS, getMultiRefElementsMap, getRefElements, getRefElementsMap, getVersion, setElementNS, supportConditions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ELEMENT_DEFAULT_NAME

public static final String ELEMENT_DEFAULT_NAME
See Also:
Constant Field Values
Constructor Detail

StyleStyleDesc

protected StyleStyleDesc(Class<S> clazz,
                         XMLVersion version,
                         String family,
                         String baseName,
                         String ns)

StyleStyleDesc

protected StyleStyleDesc(Class<S> clazz,
                         XMLVersion version,
                         String family,
                         String baseName,
                         String ns,
                         List<String> refQNames)

StyleStyleDesc

protected StyleStyleDesc(Class<S> clazz,
                         XMLVersion version,
                         String family,
                         String baseName)
Method Detail

copy

public static <C extends StyleStyle> StyleStyleDesc<C> copy(StyleStyleDesc<C> toClone,
                                                            XMLVersion version)

getFamily

public final String getFamily()

initStyle

protected void initStyle(org.jdom.Element elem)
Overrides:
initStyle in class StyleDesc<S extends StyleStyle>

findDefaultStyle

public final S findDefaultStyle(ODPackage pkg)

getDefaultStyle

public final S getDefaultStyle(ODPackage pkg,
                               boolean create)

createDefaultElement

public final org.jdom.Element createDefaultElement()

toString

public String toString()
Overrides:
toString in class StyleDesc<S extends StyleStyle>


Copyright © 2010 jOpenDocument All Rights Reserved.