public class CqAttributesFactory
extends java.lang.Object
CqAttributes, which will set up the new factory with
the settings provided in that attributes instance.
Once a CqAttributes is created, it can only be modified
after it has been used to create a CqQuery.
CqAttributes| Constructor and Description |
|---|
CqAttributesFactory()
Creates a new instance of AttributesFactory ready to create a
CqAttributes with default settings. |
CqAttributesFactory(CqAttributes cqAttributes)
Creates a new instance of CqAttributesFactory ready to create a
CqAttributes with the same settings as those in the
specified CqAttributes. |
| Modifier and Type | Method and Description |
|---|---|
void |
addCqListener(CqListener cqListener)
Adds a CQ listener to the end of the list of cq listeners on this factory.
|
CqAttributes |
create()
Creates a
CqAttributes with the current settings. |
void |
initCqListeners(CqListener[] cqListeners)
Removes all Cq listeners and then adds each listener in the specified array.
|
public CqAttributesFactory()
CqAttributes with default settings.public CqAttributesFactory(CqAttributes cqAttributes)
CqAttributes with the same settings as those in the
specified CqAttributes.cqAttributes - the CqAttributes used to initialize this
AttributesFactorypublic void addCqListener(CqListener cqListener)
cqListener - the CqListener to add to the factory.java.lang.IllegalArgumentException - if cqListener is nullpublic void initCqListeners(CqListener[] cqListeners)
cqListeners - a possibly null or empty array of listeners to add to this
factory.java.lang.IllegalArgumentException - if the cqListeners array has a
null elementpublic CqAttributes create()
CqAttributes with the current settings.CqAttributes