
public class ModelManager extends Object
http://jdtaus.org/core/model/container model.
|
| Constructor and Description |
|---|
ModelManager()
Creates a new
ModelManager instance. |
| Modifier and Type | Method and Description |
|---|---|
Map |
getBundleProperties(Module module,
Implementation implementation)
Builds a mapping of language codes to
Properties instances
holding the messages for the language. |
int |
getHashCode(Module module,
Implementation implementation)
Computes the hashcode of an implementation bundle.
|
String |
getJavaAccessorMethodName(Message message)
Gets the method name of a Java accessor method for a given message.
|
String |
getJavaClasspathLocation(Implementation implementation)
Gets the java classpath location of an implementation bundle.
|
String |
getJavadocComment(Text text)
Formats a text to a javadoc comment.
|
String |
getJavaPackageName(Implementation implementation)
Gets the java package name of an implementation.
|
String |
getJavaTypeName(Implementation implementation)
Gets the java type name of an implementation.
|
Message |
getMessage(Module module,
String messageName)
Gets a message.
|
Module |
getModule(File moduleDescriptor)
Unmarshals a given module descriptor.
|
public ModelManager()
ModelManager instance.public Map getBundleProperties(Module module, Implementation implementation)
Properties instances
holding the messages for the language.module - the module containing implementation.implementation - the implementation to get the properties for.Properties instances
holding the messages for the language.NullPointerException - if module or implementation
is null.public int getHashCode(Module module, Implementation implementation)
module - the module containing implementation.implementation - the implementation to compute the bundle hashcode
of.implementation.NullPointerException - if module or implementation
is null.public String getJavaAccessorMethodName(Message message)
message - the message to return the accessor method name for.message.NullPointerException - if text is null.public String getJavaClasspathLocation(Implementation implementation)
implementation - the implementation to return the bundle's java
classpath location of.implementation.NullPointerException - if implementation is null.public String getJavadocComment(Text text)
text - the text to nformat to a javadoc comment.text formatted as a javadoc comment.NullPointerException - if text is null.public String getJavaPackageName(Implementation implementation)
implementation - the implementation to get the java package name of.implementation.NullPointerException - if implementation is null.public String getJavaTypeName(Implementation implementation)
implementation - the implementation to get the java type name of.implementation.NullPointerException - if implementation is null.public Message getMessage(Module module, String messageName)
module - the module to search.messageName - the name of the message to search.name from module or
null if no message exists.NullPointerException - if module or messageName is
null.public Module getModule(File moduleDescriptor) throws JAXBException, SAXException, IOException
moduleDescriptor - module descriptor to unmarshall.moduleDescriptor.NullPointerException - if moduleDescriptor is null.JAXBException - if unmarshalling fails.SAXException - if parsing fails.IOException - if reading fails.Copyright © 2005–2014 jDTAUS. All rights reserved.