|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.uql.ColumnSelection
public class ColumnSelection
A Column represents a selection of query column, data model
attributes or formula expressions.
To use Columnelection with query columns or formula expressions,
use DataRef objects where the attribute property is the column name
and the entity property is null.
DataRef,
Serialized Form| Constructor Summary | |
|---|---|
ColumnSelection()
Construct a new instance of ColumnSelection. |
|
| Method Summary | |
|---|---|
void |
addAttribute(DataRef attribute)
Add a data model attribute or expression to the selection. |
void |
addAttribute(DataRef attribute,
boolean exclusive)
Add a data model attribute or expression to the selection. |
void |
addAttribute(int index,
DataRef attribute)
Add an attribute or expression to the selection at specified index. |
void |
clear()
Clear all attributes from this selection. |
Object |
clone()
Make a deep copy of this column selection. |
Object |
clone(boolean shallow)
Clone the column selection. |
boolean |
containsAttribute(DataRef attribute)
Check if an attribute or expression is already defined in the selection. |
void |
copyPropertiesTo(ColumnSelection columns)
Copy properties to target columns. |
boolean |
equals(Object obj)
Compare two column selection list. |
boolean |
equals(Object obj,
boolean strict)
Compare two column selection list. |
DataRef |
findAttribute(DataRef attribute)
Find the contained attribute equals to an attribute. |
DataRef |
getAttribute(int idx)
Get an attribute or an expression. |
DataRef |
getAttribute(String name)
Get an attribute or an expression. |
DataRef |
getAttribute(String name,
boolean fuzz)
Get an attribute or an expression. |
int |
getAttributeCount()
Get the number of attributes anr expressions in this selection. |
Enumeration |
getAttributes()
Get a list of all attributes and expressions in this selection. |
Enumeration |
getProperties()
Get all the property keys. |
Object |
getProperty(String key)
Get the value of a property. |
int |
hashCode()
Get the hashcode. |
int |
indexOfAttribute(DataRef attribute)
Get index of an attribute. |
boolean |
isEmpty()
Check if the column selection is empty. |
void |
parseXML(Element tag)
Read in the XML representation of this object. |
void |
removeAllAttributes()
Remove all attributes and expressions from the selection. |
void |
removeAttribute(DataRef attribute)
Remove the specified attribute or expression from the selection. |
void |
removeAttribute(int idx)
Remove the specified attribute or expression from the selection. |
void |
removeAttributes(ColumnSelection columns)
Remove all the attributes come from another column selection. |
void |
setAttribute(int idx,
DataRef attribute)
Set the data ref at the specified index. |
void |
setProperty(String key,
Object value)
Set the value a property. |
void |
sortByName()
Sort a list of all attributes and expressions in this selection. |
String |
toString()
|
void |
writeXML(PrintWriter writer)
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ColumnSelection()
| Method Detail |
|---|
public void removeAttributes(ColumnSelection columns)
columns - the specified column selection.public void clear()
public void addAttribute(DataRef attribute)
attribute - an DataRef object describing a data model attribute
or expression.
public void addAttribute(DataRef attribute,
boolean exclusive)
attribute - an DataRef object describing a data model attribute
or expression.exclusive - true if exclusive.
public void addAttribute(int index,
DataRef attribute)
index - the specified index.attribute - the DataRef object to be added.public boolean containsAttribute(DataRef attribute)
public DataRef findAttribute(DataRef attribute)
attribute - the specified attribute.
public int indexOfAttribute(DataRef attribute)
attribute - the specified attribute
public void removeAttribute(DataRef attribute)
attribute - an DataRef object describing a data model attribute
or expression.public void removeAttribute(int idx)
idx - the index of the attribute to remove.public final Enumeration getAttributes()
public final void setAttribute(int idx,
DataRef attribute)
idx - the attribute index.attribute - an DataRef object will be set to the index.public final DataRef getAttribute(int idx)
idx - attribute index.public void sortByName()
public DataRef getAttribute(String name)
name - the name of the attribute whose DataRef object is desired.
null.
public DataRef getAttribute(String name,
boolean fuzz)
name - the name of the attribute whose DataRef object is desired.
null.public int getAttributeCount()
public void removeAllAttributes()
public boolean isEmpty()
public void writeXML(PrintWriter writer)
writeXML in interface inetsoft.util.XMLSerializable
public void parseXML(Element tag)
throws Exception,
DOMException
parseXML in interface inetsoft.util.XMLSerializabletag - the XML element representing this object.
Exception
DOMExceptionpublic String toString()
toString in class Objectpublic Object clone()
clone in class Objectpublic Object clone(boolean shallow)
shallow - true if the attributes should not be cloned,
false otherwise.
public boolean equals(Object obj)
equals in class Object
public boolean equals(Object obj,
boolean strict)
strict - false to check only the entity/attribute of attributes.
Otherwise other properties are compared, such as alias, width.public Object getProperty(String key)
key - the specified property name.
public void setProperty(String key,
Object value)
key - the property name.value - the property value, null to remove the property.public Enumeration getProperties()
public void copyPropertiesTo(ColumnSelection columns)
public int hashCode()
hashCode in class Object
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||