public class LabelsProviderBasic extends java.lang.Object implements LabelsProvider
This class contains the following property names:
"workingStatus" the property changes from false to true when the internal database is going to be constructed, and from true to false when the database has been finished.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
WORKINGSTATUS
Property to indicate when the database is being constructed.
|
Constructor and Description |
---|
LabelsProviderBasic(LangsProvider langsProvider)
The creation of a LabelsProviderBasic requires a LangsProvider
object.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list.
|
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Add a PropertyChangeListener for a specific property.
|
java.lang.Object |
getLabel(javax.xml.namespace.QName elQName)
Gets the label.
|
java.lang.String |
getLabel(XBRLResource res)
Gets the label.
|
java.lang.String |
getLabel(XMLElementDefinition el)
Gets the label.
|
java.lang.String |
getLabel(XMLElementDefinition el,
XBRLRoleType preferredRole)
Gets the label.
|
XBRLRoleType |
getLabelRole()
Returns the label role set.
|
java.util.Iterator<XBRLRoleType> |
getLabelRoles()
Access to all label roles in label extended links in the DTS.
|
static java.util.Collection<java.lang.String> |
getLabels(XMLFragment node)
Returns a collection of labels for the selected elements.
|
java.beans.PropertyChangeListener[] |
getPropertyChangeListeners()
Returns an array of all the listeners that were added to the
PropertyChangeSupport object with addPropertyChangeListener().
|
java.beans.PropertyChangeListener[] |
getPropertyChangeListeners(java.lang.String propertyName)
Returns an array of all the listeners which have been associated
with the named property.
|
boolean |
hasListeners(java.lang.String propertyName)
Check if there are any listeners for a specific property, including
those registered on all properties.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list.
|
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Remove a PropertyChangeListener for a specific property.
|
void |
setDTS(DTSContainer dts)
Sets the new dts.
|
public static final java.lang.String WORKINGSTATUS
public LabelsProviderBasic(LangsProvider langsProvider)
langsProvider
- the class providing LangsProvider interfacepublic void setDTS(DTSContainer dts)
setDTS
in interface LabelsProvider
dts
- the new dtspublic java.util.Iterator<XBRLRoleType> getLabelRoles()
public XBRLRoleType getLabelRole()
public java.lang.Object getLabel(javax.xml.namespace.QName elQName)
getLabel
in interface LabelsProvider
elQName
- the el Q namepublic java.lang.String getLabel(XMLElementDefinition el)
getLabel
in interface LabelsProvider
el
- the elpublic java.lang.String getLabel(XMLElementDefinition el, XBRLRoleType preferredRole)
getLabel
in interface LabelsProvider
el
- the elpreferredRole
- the preferred rolepublic java.lang.String getLabel(XBRLResource res)
getLabel
in interface LabelsProvider
res
- the respublic static java.util.Collection<java.lang.String> getLabels(XMLFragment node)
node
contains
no generic labels attachednode
- the nodepublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
is null, no exception is thrown and no action
is taken.listener
- The PropertyChangeListener to be addedpublic void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
propertyName
or listener
is null, no
exception is thrown and no action is taken.propertyName
- The name of the property to listen on.listener
- The PropertyChangeListener to be addedpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
was added more than once to the same event
source, it will be notified one less time after being removed.
If listener
is null, or was never added, no exception is
thrown and no action is taken.listener
- The PropertyChangeListener to be removedpublic void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
listener
was added more than once to the same event
source for the specified property, it will be notified one less time
after being removed.
If propertyName
is null, no exception is thrown and no
action is taken.
If listener
is null, or was never added for the specified
property, no exception is thrown and no action is taken.propertyName
- The name of the property that was listened on.listener
- The PropertyChangeListener to be removedpublic boolean hasListeners(java.lang.String propertyName)
propertyName
is null, only check for listeners registered on all properties.propertyName
- the property name.public java.beans.PropertyChangeListener[] getPropertyChangeListeners()
If some listeners have been added with a named property, then
the returned array will be a mixture of PropertyChangeListeners
and PropertyChangeListenerProxy
s. If the calling
method is interested in distinguishing the listeners then it must
test each element to see if it's a
PropertyChangeListenerProxy
, perform the cast, and examine
the parameter.
PropertyChangeListener[] listeners = bean.getPropertyChangeListeners(); for (int i = 0; i < listeners.length; i++) { if (listeners[i] instanceof PropertyChangeListenerProxy) { PropertyChangeListenerProxy proxy = (PropertyChangeListenerProxy)listeners[i]; if (proxy.getPropertyName().equals("foo")) { // proxy is a PropertyChangeListener which was associated // with the property named "foo" } } }
PropertyChangeListeners
added or an
empty array if no listeners have been addedPropertyChangeListenerProxy
public java.beans.PropertyChangeListener[] getPropertyChangeListeners(java.lang.String propertyName)
propertyName
- The name of the property being listened toPropertyChangeListeners
associated with
the named property. If no such listeners have been added,
or if propertyName
is null, an empty array is
returned.Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa