public class TypedDimensionsDomainController extends java.util.HashMap<Dimension<?>,java.util.LinkedHashSet<XMLFragmentMember>> implements InstanceExplorerListener
Constructor and Description |
---|
TypedDimensionsDomainController(DTSContainer dts)
Instantiates a new typed dimensions domain controller.
|
Modifier and Type | Method and Description |
---|---|
java.util.LinkedHashSet<XMLFragmentMember> |
get(java.lang.Object key)
Never returns null if key is an instance of Dimension<?
|
java.lang.String |
get(javax.xml.namespace.QName dimensionName,
XMLFragment dimensionValue)
Obtains the text representing a typed dimension value.
|
DTSContainer |
getDTSContainer()
Gets the DTS container.
|
java.lang.String |
getNameForFragment(XMLFragmentMember member)
Returns the text assigned to the member passed as a parameter.
|
static java.lang.String |
getNameFromFragmentNodes(XMLFragmentMember member)
generates a string that represents the member based on the nodes received in the member parameter.
|
void |
instanceEvent(InstanceExplorerEvent e)
Instance event.
|
void |
setDTSContainer(DTSContainer dts)
Sets the DTS container.
|
void |
setNameForValue(XMLFragmentMember member,
java.lang.String name)
Stores a name for the member used as parameter
|
void |
setValueForDimension(Dimension<?> key,
XMLFragment value,
java.lang.String name)
Stores a value for a typed dimension in the dimension domain container.
|
public TypedDimensionsDomainController(DTSContainer dts)
dts
- the dtspublic void setDTSContainer(DTSContainer dts)
dts
- the new DTS containerpublic DTSContainer getDTSContainer()
public java.util.LinkedHashSet<XMLFragmentMember> get(java.lang.Object key)
get
in interface java.util.Map<Dimension<?>,java.util.LinkedHashSet<XMLFragmentMember>>
get
in class java.util.HashMap<Dimension<?>,java.util.LinkedHashSet<XMLFragmentMember>>
key
- the keypublic void setValueForDimension(Dimension<?> key, XMLFragment value, java.lang.String name)
if name is null a name is created from the text in the nodes of the fragment value.
key
- Dimension<?> dimensionvalue
- the XMLFragmentname
- the assigned name or null if a name will be assigned automaticallypublic void setNameForValue(XMLFragmentMember member, java.lang.String name)
member
- the member for which the name will be storedname
- the name to be stored or null, in this case a name will be created.public java.lang.String getNameForFragment(XMLFragmentMember member)
member
- instance of XMLFragmentMemberpublic static java.lang.String getNameFromFragmentNodes(XMLFragmentMember member)
member
- XMLFragmentMemberpublic void instanceEvent(InstanceExplorerEvent e)
instanceEvent
in interface InstanceExplorerListener
e
- the epublic java.lang.String get(javax.xml.namespace.QName dimensionName, XMLFragment dimensionValue)
dimensionName
- as a QNamedimensionValue
- as an XMLFragmentCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa