|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectumontreal.iro.lecuyer.xmlbind.NamedInfo
public class NamedInfo
Represents the information about an entity
with a name and possibly properties.
This object is constructed from a Named
instance which is obtained by unmarshalling some
XML elements using JAXB.
It allows the user to access the properties using
a Java map rather than a list with an object
for each property.
This class is often extended to represent
specific entities, for example the call types of
a call center.
Constructor Summary | |
---|---|
NamedInfo(Named named)
Constructs a new named entity from the parameter object named. |
|
NamedInfo(String name)
Constructs a named entity with name name, and no property. |
|
NamedInfo(String name,
Map<String,? extends Object> properties)
Constructs a new named entity with name name, and properties stored in the map properties. |
Method Summary | |
---|---|
String |
getName()
Returns the name associated with this named entity. |
Map<String,Object> |
getProperties()
Returns the properties associated with the entity represented by this object. |
Map<String,String> |
getStringProperties()
Returns a map constructed by converting each value of properties in map returned by getProperties()
to a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NamedInfo(Named named)
named
- the parameter object representing the named entity.public NamedInfo(String name)
name
- the name of the new entity.public NamedInfo(String name, Map<String,? extends Object> properties)
name
- the name of the entity.properties
- the properties of the entity.Method Detail |
---|
public String getName()
public Map<String,Object> getProperties()
public Map<String,String> getStringProperties()
getProperties()
to a string.
If a property has the null value, it is converted to
the ``null'' string.
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |