public class PassiveRackElement extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
name |
RackOrientation |
orientation |
int |
position |
RackElementType |
type |
| Constructor and Description |
|---|
PassiveRackElement()
Create empty rack attribute entry
|
| Modifier and Type | Method and Description |
|---|---|
static PassiveRackElement |
createFromXml(String xml)
Create rack attribute from config entry
|
String |
createXml()
Create XML from configuration entry
|
String |
getName()
Get element name
|
RackOrientation |
getOrientation()
Get orientation
|
int |
getPosition()
Get attribute position in rack
|
RackElementType |
getType()
Get element type
|
void |
setName(String name)
Set element name
|
void |
setOrientation(RackOrientation orientation)
Set attribute orientation
|
void |
setPosition(int position)
Set attribute position
|
void |
setType(RackElementType type)
Set element type
|
public String name
public RackElementType type
public int position
public RackOrientation orientation
public static PassiveRackElement createFromXml(String xml) throws Exception
xml - configExceptionpublic String createXml() throws Exception
Exception - if the schema for the object is not validpublic void setType(RackElementType type)
type - to setpublic RackElementType getType()
public void setPosition(int position)
position - to setpublic int getPosition()
public void setOrientation(RackOrientation orientation)
orientation - to setpublic RackOrientation getOrientation()
public String getName()
public void setName(String name)
name - new element nameCopyright © 2018. All rights reserved.