net.sourceforge.nite.meta.impl
Class NiteStyle

java.lang.Object
  extended by net.sourceforge.nite.meta.impl.NiteStyle
All Implemented Interfaces:
NStyle

public class NiteStyle
extends java.lang.Object
implements NStyle

A stylesheet as referred to in the metadata

Author:
jonathan

Field Summary
 
Fields inherited from interface net.sourceforge.nite.meta.NStyle
DISPLAY, EDITOR, NIE, OTAB
 
Constructor Summary
NiteStyle(int type, int application, java.lang.String name, java.lang.String extension, java.lang.String description, java.util.ArrayList codings, java.util.ArrayList objectsets, java.util.ArrayList ontologies)
           
 
Method Summary
 int getApplication()
          returns one of NIE or OTAB depending on which program this is a spec for.
 java.util.List getCodingNames()
          Find the codings that can are used / edited - returns an ArrayList of Strings
 java.lang.String getDescription()
          returns a textual description of the style that can be used, for example, in a GUI list to be chosen from
 java.lang.String getExtension()
          returns the filename extension of the style as used in filenames
 java.lang.String getName()
          returns the name of the style as used in filenames
 java.util.List getObjectSetNames()
          Find the object sets that can be used / edited - returns a List of Strings
 java.util.List getOntologyNames()
          Find the ontologies that can be used - returns a List of Strings
 int getType()
          returns one of EDITOR or DISPLAY depending on whether the NOM can be changed by this stylesheet.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NiteStyle

public NiteStyle(int type,
                 int application,
                 java.lang.String name,
                 java.lang.String extension,
                 java.lang.String description,
                 java.util.ArrayList codings,
                 java.util.ArrayList objectsets,
                 java.util.ArrayList ontologies)
Method Detail

getName

public java.lang.String getName()
returns the name of the style as used in filenames

Specified by:
getName in interface NStyle

getExtension

public java.lang.String getExtension()
returns the filename extension of the style as used in filenames

Specified by:
getExtension in interface NStyle

getDescription

public java.lang.String getDescription()
returns a textual description of the style that can be used, for example, in a GUI list to be chosen from

Specified by:
getDescription in interface NStyle

getType

public int getType()
returns one of EDITOR or DISPLAY depending on whether the NOM can be changed by this stylesheet.

Specified by:
getType in interface NStyle

getApplication

public int getApplication()
returns one of NIE or OTAB depending on which program this is a spec for.

Specified by:
getApplication in interface NStyle

getCodingNames

public java.util.List getCodingNames()
Find the codings that can are used / edited - returns an ArrayList of Strings

Specified by:
getCodingNames in interface NStyle

getObjectSetNames

public java.util.List getObjectSetNames()
Find the object sets that can be used / edited - returns a List of Strings

Specified by:
getObjectSetNames in interface NStyle

getOntologyNames

public java.util.List getOntologyNames()
Find the ontologies that can be used - returns a List of Strings

Specified by:
getOntologyNames in interface NStyle