|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.udo.cs.yale.tools.att.AttributeSet
public class AttributeSet
Set of regular and special attributes that need not necessarily be associated
with an ExampleSet.
| Field Summary | |
|---|---|
private java.io.File |
defaultSource
The default source file. |
private java.util.List<Attribute> |
regularAttributes
List of regular attributes. |
private java.util.Map<java.lang.String,Attribute> |
specialAttributes
Names, i.e. |
| Constructor Summary | |
|---|---|
AttributeSet()
Creates an empty attribute set. |
|
AttributeSet(AttributeDataSources attributeDataSources)
Creates an attribute set from the given collection of AttributeDataSources. |
|
AttributeSet(java.io.File attributeDescriptionFile,
boolean sourceColRequired)
Reads an xml attribute description file and creates an attribute set. |
|
AttributeSet(int initialCapacity)
Creates an empty attribute set. |
|
AttributeSet(java.util.List<Attribute> regularAttributes,
java.util.Map<java.lang.String,Attribute> specialAttributes)
|
|
| Method Summary | |
|---|---|
void |
addAttribute(Attribute attribute)
Adds an attribute at the end of the list. |
java.util.List<Attribute> |
getAllAttributes()
Returns a list of all, i.e. regular and special attributes. |
Attribute |
getAttribute(int index)
Returns an attribute by index. |
java.io.File |
getDefaultSource()
Returns the default file. |
int |
getNumberOfRegularAttributes()
Returns the number of regular attributes. |
java.util.List<Attribute> |
getRegularAttributes()
Returns a list of all regular attributes. |
Attribute |
getSpecialAttribute(java.lang.String name)
Returns a special attribute by name. |
java.util.Map<java.lang.String,Attribute> |
getSpecialAttributes()
Returns a Map mapping names to special attributes. |
java.util.Set<java.lang.String> |
getSpecialNames()
Returns a list of all names (Strings) of all special attributes. |
void |
setSpecialAttribute(java.lang.String name,
Attribute attribute)
Adds a named special attribute. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.List<Attribute> regularAttributes
private java.util.Map<java.lang.String,Attribute> specialAttributes
private java.io.File defaultSource
| Constructor Detail |
|---|
public AttributeSet()
public AttributeSet(int initialCapacity)
public AttributeSet(AttributeDataSources attributeDataSources)
throws UserError
AttributeDataSources.
UserError
public AttributeSet(java.io.File attributeDescriptionFile,
boolean sourceColRequired)
throws XMLException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException,
UserError
XMLException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
UserError
public AttributeSet(java.util.List<Attribute> regularAttributes,
java.util.Map<java.lang.String,Attribute> specialAttributes)
| Method Detail |
|---|
public java.io.File getDefaultSource()
public Attribute getAttribute(int index)
public void addAttribute(Attribute attribute)
public Attribute getSpecialAttribute(java.lang.String name)
public void setSpecialAttribute(java.lang.String name,
Attribute attribute)
public java.util.Set<java.lang.String> getSpecialNames()
public java.util.List<Attribute> getRegularAttributes()
public int getNumberOfRegularAttributes()
public java.util.Map<java.lang.String,Attribute> getSpecialAttributes()
public java.util.List<Attribute> getAllAttributes()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||