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 ModuleConfig
public String getModuleName()
getModuleName
in interface ModuleConfig
public String getSlot()
getSlot
in interface ModuleConfig
public void setSlot(String slot)
public String getMainClass()
getMainClass
in interface ModuleConfig
public void setMainClass(String mainClass)
public Collection<ModuleConfig.Resource> getResources()
getResources
in interface ModuleConfig
public void addResource(ModuleConfig.Resource res)
public Collection<ModuleConfig.Dependency> getDependencies()
getDependencies
in interface ModuleConfig
public void addDependency(ModuleConfig.Dependency dep)
public Map<String,String> getProperties()
getProperties
in interface ModuleConfig
public void writeContent(org.jboss.staxmapper.XMLExtendedStreamWriter writer, ModuleConfig value) throws XMLStreamException
writeContent
in interface org.jboss.staxmapper.XMLElementWriter<ModuleConfig>
XMLStreamException
protected static void writeNewLine(org.jboss.staxmapper.XMLExtendedStreamWriter writer) throws XMLStreamException
XMLStreamException
public static org.jboss.staxmapper.XMLExtendedStreamWriter create(XMLStreamWriter writer) throws Exception
Exception
Copyright © 2023 JBoss by Red Hat. All rights reserved.