de.java2html.options
Class JavaSourceStyleTable

java.lang.Object
  extended by de.java2html.options.JavaSourceStyleTable

public class JavaSourceStyleTable
extends java.lang.Object

Table containing style options ( JavaSourceStyleEntry) for different types of source code (SourceType).

Author:
Markus Gebhard

Method Summary
 boolean equals(java.lang.Object obj)
           
 JavaSourceStyleEntry get(SourceType key)
          Returns the style for the given source type defined by this styletable.
 JavaSourceStyleEntry get(java.lang.String key)
          Deprecated. As of Sep 12, 2004 (Markus Gebhard), replaced by get(SourceType)
 JavaSourceStyleTable getClone()
           
static JavaSourceStyleTable getDefault()
          Gets a default style table.
static JavaSourceStyleTable getDefaultEclipseStyleTable()
          Gets a style table similar to the one from the IBM Eclipse IDE.
static JavaSourceStyleTable getDefaultKawaStyleTable()
          Gets a style table similar to the one from the Kawa IDE.
static JavaSourceStyleTable getDefaultMonochromeStyleTable()
          Gets a style table for monochromatic output.
 java.lang.String getName()
           
static JavaSourceStyleTable getPredefinedTable(java.lang.String name)
          Returns the style table with the given name or null if there is none having the give name.
static JavaSourceStyleTable[] getPredefinedTables()
           
 void put(SourceType key, JavaSourceStyleEntry javaSourceStyleEntry)
          Sets the style for the given source type to the given style.
 void put(java.lang.String key, JavaSourceStyleEntry javaSourceStyleEntry)
           
 void setName(java.lang.String name)
          Deprecated. As of Jan 2, 2004 (Markus Gebhard): Changing the name of a style table is not intended
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getClone

public JavaSourceStyleTable getClone()

getPredefinedTables

public static JavaSourceStyleTable[] getPredefinedTables()

getPredefinedTable

public static JavaSourceStyleTable getPredefinedTable(java.lang.String name)
Returns the style table with the given name or null if there is none having the give name.

Throws:
java.lang.IllegalArgumentException - if the name is null.

put

public void put(SourceType key,
                JavaSourceStyleEntry javaSourceStyleEntry)
Sets the style for the given source type to the given style.

See Also:
get(SourceType)

put

public void put(java.lang.String key,
                JavaSourceStyleEntry javaSourceStyleEntry)

getDefault

public static JavaSourceStyleTable getDefault()
Gets a default style table.

See Also:
getDefaultEclipseStyleTable(), getDefaultKawaStyleTable()

getDefaultKawaStyleTable

public static JavaSourceStyleTable getDefaultKawaStyleTable()
Gets a style table similar to the one from the Kawa IDE.

See Also:
getDefault(), getDefaultEclipseStyleTable(), getDefaultMonochromeStyleTable()

getDefaultEclipseStyleTable

public static JavaSourceStyleTable getDefaultEclipseStyleTable()
Gets a style table similar to the one from the IBM Eclipse IDE.

See Also:
getDefault(), getDefaultKawaStyleTable(), getDefaultMonochromeStyleTable()

getDefaultMonochromeStyleTable

public static JavaSourceStyleTable getDefaultMonochromeStyleTable()
Gets a style table for monochromatic output.

See Also:
getDefault(), getDefaultEclipseStyleTable(), getDefaultKawaStyleTable()

get

public JavaSourceStyleEntry get(SourceType key)
Returns the style for the given source type defined by this styletable.

See Also:
put(SourceType, JavaSourceStyleEntry), put(SourceType, JavaSourceStyleEntry)

get

@Deprecated
public JavaSourceStyleEntry get(java.lang.String key)
Deprecated. As of Sep 12, 2004 (Markus Gebhard), replaced by get(SourceType)


getName

public java.lang.String getName()

setName

@Deprecated
public void setName(java.lang.String name)
Deprecated. As of Jan 2, 2004 (Markus Gebhard): Changing the name of a style table is not intended



Copyright 2003 - 2006