|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.fortuna.ical4j.model.ParameterList
public class ParameterList
$Id$ [Apr 5, 2004] Defines a list of iCalendar parameters. A parameter list may be specified as unmodifiable at instantiation - useful for constant properties that you don't want modified.
Constructor Summary | |
---|---|
ParameterList()
Default constructor. |
|
ParameterList(boolean unmodifiable)
Constructor. |
|
ParameterList(ParameterList list,
boolean unmodifiable)
Creates a deep copy of the specified parameter list. |
Method Summary | |
---|---|
boolean |
add(Parameter parameter)
Add a parameter to the list. |
boolean |
equals(Object arg0)
|
Parameter |
getParameter(String aName)
Returns the first parameter with the specified name. |
ParameterList |
getParameters(String name)
Returns a list of parameters with the specified name. |
int |
hashCode()
|
boolean |
isEmpty()
|
Iterator |
iterator()
|
boolean |
remove(Parameter parameter)
Remove a parameter from the list. |
void |
removeAll(String paramName)
Remove all parameters with the specified name. |
boolean |
replace(Parameter parameter)
Replace any parameters of the same type with the one specified. |
int |
size()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ParameterList()
public ParameterList(boolean unmodifiable)
unmodifiable
- indicates whether the list should be mutablepublic ParameterList(ParameterList list, boolean unmodifiable) throws URISyntaxException
list
- a parameter list to copy parameters fromunmodifiable
- indicates whether the list should be mutable
URISyntaxException
- where a parameter in the list specifies an invalid URI valueMethod Detail |
---|
public final String toString()
toString
in class Object
public final Parameter getParameter(String aName)
aName
- name of the parameter
public final ParameterList getParameters(String name)
name
- name of parameters to return
public final boolean add(Parameter parameter)
parameter
- the parameter to add
List.add(java.lang.Object)
public final boolean replace(Parameter parameter)
parameter
- parameter to add to this list in place of all others with the same name
public final boolean isEmpty()
List.isEmpty()
public final Iterator iterator()
List.iterator()
public final boolean remove(Parameter parameter)
parameter
- the parameter to remove
List.remove(java.lang.Object)
public final void removeAll(String paramName)
paramName
- the name of parameters to removepublic final int size()
List.size()
public final boolean equals(Object arg0)
equals
in class Object
public final int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |