public abstract class BasicElementConfig<S> extends AllowedEntityConfig<S>
Config.FieldPresence| Modifier and Type | Field and Description |
|---|---|
protected static String |
LATITUDE |
protected static String |
LONGITUDE |
protected static String |
NAME |
protected static String |
OWNER |
protected static String |
RACK_ADDRESS |
protected static String |
UI_TYPE |
protected static double |
ZERO_THRESHOLD |
ALLOWED| Constructor and Description |
|---|
BasicElementConfig() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
geoCoordsSet()
Returns true if the geographical coordinates (latitude and longitude)
are set on this element; false otherwise.
|
double |
latitude()
Returns element latitude.
|
BasicElementConfig |
latitude(Double latitude)
Sets the element latitude.
|
double |
longitude()
Returns element longitude.
|
BasicElementConfig |
longitude(Double longitude)
Sets the element longitude.
|
String |
name()
Returns friendly label for the element.
|
BasicElementConfig |
name(String name)
Sets friendly label for the element.
|
String |
owner()
Returns owner of the element.
|
BasicElementConfig |
owner(String owner)
Sets the owner of the element.
|
String |
rackAddress()
Returns the element rack address.
|
BasicElementConfig |
rackAddress(String address)
Sets element rack address.
|
String |
uiType()
Returns the UI type (glyph image to be used) for the element in
the Topology View.
|
BasicElementConfig |
uiType(String uiType)
Sets the UI type (glyph image to be used) for the element in
the Topology View.
|
isAllowed, isAllowedapply, clear, get, get, get, get, get, get, getList, getList, hasField, hasField, hasFields, hasFields, hasOnlyFields, hasOnlyFields, init, isBoolean, isBoolean, isConnectPoint, isConnectPoint, isDecimal, isDecimal, isIntegralNumber, isIntegralNumber, isIpAddress, isIpAddress, isIpPrefix, isIpPrefix, isMacAddress, isMacAddress, isNumber, isNumber, isString, isString, isTpPort, isTpPort, isValid, key, node, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, subjectprotected static final String NAME
protected static final String UI_TYPE
protected static final String LATITUDE
protected static final String LONGITUDE
protected static final String RACK_ADDRESS
protected static final String OWNER
protected static final double ZERO_THRESHOLD
public String name()
public BasicElementConfig name(String name)
name - new friendly label; null to clearpublic String uiType()
public BasicElementConfig uiType(String uiType)
uiType - the UI type; null for defaultpublic boolean geoCoordsSet()
public double latitude()
geoCoordsSet()public BasicElementConfig latitude(Double latitude)
latitude - new latitude; null to clearpublic double longitude()
geoCoordsSet()public BasicElementConfig longitude(Double longitude)
longitude - new longitude; null to clearpublic String rackAddress()
public BasicElementConfig rackAddress(String address)
address - new rack address; null to clearpublic String owner()
public BasicElementConfig owner(String owner)
owner - new owner; null to clear