public class ComponentSpec
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMPSPEC_ANY
Any ComponentSpec string.
|
| Constructor and Description |
|---|
ComponentSpec(java.lang.String componentSpec)
Creates an instance of ComponentInfo from stringified ComponentSpec.
|
ComponentSpec(java.lang.String name,
java.lang.String type,
java.lang.String code,
java.lang.String container)
Creates an instance of ComponentInfo with all necesarry data.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCode()
Returns the code.
|
java.lang.String |
getContainer()
Returns the container.
|
java.lang.String |
getName()
Returns the name.
|
java.lang.String |
getType()
Returns the type.
|
void |
setCode(java.lang.String code)
Sets the code.
|
void |
setContainer(java.lang.String container)
Sets the container.
|
void |
setName(java.lang.String name)
Sets the name.
|
void |
setType(java.lang.String type)
Sets the type.
|
java.lang.String |
toString()
Returns a single-line rendition of this instance into text.
|
public static final java.lang.String COMPSPEC_ANY
public ComponentSpec(java.lang.String name,
java.lang.String type,
java.lang.String code,
java.lang.String container)
name - name of the component.type - type of the component.code - code of the component.container - container hosting the component.public ComponentSpec(java.lang.String componentSpec)
throws java.lang.IllegalArgumentException
componentSpec - stringified ComponentSpec, non-nullBadParametersExceptionjava.lang.IllegalArgumentExceptionparseComponentSpec(java.lang.String)public java.lang.String getContainer()
public java.lang.String getCode()
public java.lang.String getType()
public java.lang.String getName()
public void setContainer(java.lang.String container)
container - The container to setpublic void setCode(java.lang.String code)
code - The component's code.public void setType(java.lang.String type)
type - The type to setpublic void setName(java.lang.String name)
name - The name to setpublic java.lang.String toString()
toString in class java.lang.Object