org.apache.cocoon.components.language.markup
Class AbstractMarkupLanguage.LanguageDescriptor

java.lang.Object
  extended by org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.LanguageDescriptor
Enclosing class:
AbstractMarkupLanguage

protected static class AbstractMarkupLanguage.LanguageDescriptor
extends Object

This class holds transient information about a target programming language.


Field Summary
protected  String logicsheet
          The progamming language core logicsheet
protected  String name
          The progamming language name
protected  HashMap namedLogicsheets
          The list of built-in logicsheets defined for this target language
 
Constructor Summary
protected AbstractMarkupLanguage.LanguageDescriptor()
          The default constructor
 
Method Summary
protected  void addNamedLogicsheet(String uri, String prefix, String namedLogicsheet)
          Add a namespace-mapped logicsheet to this language
protected  String getLogicsheet()
          Return the programming language's core logichseet location
protected  String getName()
          Return the programming language's name
protected  String getNamedLogicsheetByURI(String uri)
          Return a namespace-mapped logicsheet given its uri
protected  void setLogicsheet(String logicsheet)
          Set the programming language's core logichseet location
protected  void setName(String name)
          Set the programming language's name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected String name
The progamming language name


logicsheet

protected String logicsheet
The progamming language core logicsheet


namedLogicsheets

protected HashMap namedLogicsheets
The list of built-in logicsheets defined for this target language

Constructor Detail

AbstractMarkupLanguage.LanguageDescriptor

protected AbstractMarkupLanguage.LanguageDescriptor()
The default constructor

Method Detail

setName

protected void setName(String name)
Set the programming language's name

Parameters:
name - The programming language's name

getName

protected String getName()
Return the programming language's name

Returns:
The programming language's name

setLogicsheet

protected void setLogicsheet(String logicsheet)
Set the programming language's core logichseet location

Parameters:
logicsheet - The programming language's core logichseet location

getLogicsheet

protected String getLogicsheet()
Return the programming language's core logichseet location

Returns:
The programming language's core logichseet location

addNamedLogicsheet

protected void addNamedLogicsheet(String uri,
                                  String prefix,
                                  String namedLogicsheet)
Add a namespace-mapped logicsheet to this language

Parameters:
prefix - The logichseet's namespace prefix
uri - The logichseet's namespace uri
namedLogicsheet - The logichseet's location

getNamedLogicsheetByURI

protected String getNamedLogicsheetByURI(String uri)
Return a namespace-mapped logicsheet given its uri

Returns:
The namespace-mapped logicsheet


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.