public class ModuleConfigImpl extends Object implements ModuleConfig
ModuleConfig.Dependency, ModuleConfig.Resource| Constructor and Description |
|---|
ModuleConfigImpl(String moduleName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependency(ModuleConfig.Dependency dep) |
void |
addResource(ModuleConfig.Resource res) |
static org.jboss.staxmapper.XMLExtendedStreamWriter |
create(XMLStreamWriter writer) |
Collection<ModuleConfig.Dependency> |
getDependencies() |
String |
getMainClass() |
String |
getModuleName() |
Map<String,String> |
getProperties() |
Collection<ModuleConfig.Resource> |
getResources() |
String |
getSchemaVersion() |
String |
getSlot() |
static void |
main(String[] args) |
void |
setMainClass(String mainClass) |
void |
setProperty(String name,
String value) |
void |
setSlot(String slot) |
void |
writeContent(org.jboss.staxmapper.XMLExtendedStreamWriter writer,
ModuleConfig value) |
protected static void |
writeNewLine(org.jboss.staxmapper.XMLExtendedStreamWriter writer) |
public ModuleConfigImpl(String moduleName)
public String getSchemaVersion()
getSchemaVersion in interface ModuleConfigpublic String getModuleName()
getModuleName in interface ModuleConfigpublic String getSlot()
getSlot in interface ModuleConfigpublic void setSlot(String slot)
public String getMainClass()
getMainClass in interface ModuleConfigpublic void setMainClass(String mainClass)
public Collection<ModuleConfig.Resource> getResources()
getResources in interface ModuleConfigpublic void addResource(ModuleConfig.Resource res)
public Collection<ModuleConfig.Dependency> getDependencies()
getDependencies in interface ModuleConfigpublic void addDependency(ModuleConfig.Dependency dep)
public Map<String,String> getProperties()
getProperties in interface ModuleConfigpublic void writeContent(org.jboss.staxmapper.XMLExtendedStreamWriter writer,
ModuleConfig value)
throws XMLStreamException
writeContent in interface org.jboss.staxmapper.XMLElementWriter<ModuleConfig>XMLStreamExceptionprotected static void writeNewLine(org.jboss.staxmapper.XMLExtendedStreamWriter writer)
throws XMLStreamException
XMLStreamExceptionpublic static org.jboss.staxmapper.XMLExtendedStreamWriter create(XMLStreamWriter writer) throws Exception
ExceptionCopyright © 2014 JBoss by Red Hat. All rights reserved.