|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
java.util.AbstractSequentialList
java.util.LinkedList
gov.nist.core.GenericObjectList
public abstract class GenericObjectList
Implements a homogenous consistent linked list. All the objects in the linked list must derive from the same root class. This is a useful constraint to place on our code as this property is invariant.The list is created with the superclass which can be specified as either a class name or a Class.
メソッドの概要 | |
---|---|
boolean |
add(java.lang.Object obj)
|
void |
addFirst(java.lang.Object objToAdd)
|
java.lang.Object |
clone()
Implement the clone method. |
java.lang.String |
debugDump()
Convert this list of headers to a formatted string. |
java.lang.String |
debugDump(int indent)
Convert this list of headers to a string (for printing) with an indentation given. |
java.lang.String |
encode()
Encode the list in semicolon separated form. |
boolean |
equals(java.lang.Object other)
Equality checking predicate. |
java.util.Iterator |
getIterator()
Get the list iterator for this list. |
java.lang.Class |
getMyClass()
Sets the class that all our elements derive from. |
static boolean |
isMySubclass(java.lang.Class other)
|
boolean |
match(java.lang.Object other)
Match with a template (return true if we have a superset of the given template. |
void |
mergeObjects(GenericObjectList mergeList)
Do a merge of the GenericObjects contained in this list with the GenericObjects in the mergeList. |
void |
replace(Match regexp,
GenericObject replacementObject)
Do a find and replace of objects in this list. |
void |
replace(Match regexp,
GenericObjectList replacementObject)
Do a find and replace of objects in this list. |
void |
replace(java.lang.String objectText,
GenericObject replacementObject,
boolean matchSubstring)
Do a find and replace of objects in this list. |
void |
replace(java.lang.String objectText,
GenericObjectList replacementObject,
boolean matchSubstring)
Do a find and replace of objects in this list. |
void |
setMyClass(java.lang.Class cl)
|
void |
setSeparator(java.lang.String sep)
Set the separator (for encoding the list) |
java.lang.String |
toString()
Alias for the encode function above. |
クラス java.util.LinkedList から継承されたメソッド |
---|
add, addAll, addAll, addLast, clear, contains, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, peek, poll, remove, remove, remove, removeFirst, removeLast, set, size, toArray, toArray |
クラス java.util.AbstractSequentialList から継承されたメソッド |
---|
iterator |
クラス java.util.AbstractList から継承されたメソッド |
---|
hashCode, listIterator, subList |
クラス java.util.AbstractCollection から継承されたメソッド |
---|
containsAll, isEmpty, removeAll, retainAll |
クラス java.lang.Object から継承されたメソッド |
---|
getClass, notify, notifyAll, wait, wait, wait |
インタフェース java.util.List から継承されたメソッド |
---|
containsAll, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList |
メソッドの詳細 |
---|
public static boolean isMySubclass(java.lang.Class other)
public java.lang.Object clone()
java.util.LinkedList
内の clone
public java.lang.Class getMyClass()
public void setMyClass(java.lang.Class cl)
public java.util.Iterator getIterator()
public java.lang.String debugDump()
public java.lang.String debugDump(int indent)
public boolean add(java.lang.Object obj)
java.util.Collection
内の add
java.util.List
内の add
java.util.LinkedList
内の add
public void addFirst(java.lang.Object objToAdd)
java.util.LinkedList
内の addFirst
public void replace(java.lang.String objectText, GenericObject replacementObject, boolean matchSubstring) throws java.lang.IllegalArgumentException
objectText
- text of the object to find.replacementObject
- object to replace the target with (
in case a target is found).matchSubstring
- boolean that indicates whether to flag a
match when objectText is a substring of a candidate object's
encoded text.
java.lang.IllegalArgumentException
public void replace(java.lang.String objectText, GenericObjectList replacementObject, boolean matchSubstring) throws java.lang.IllegalArgumentException
objectText
- text of the object to find.replacementObject
- object to replace the target with (in
case a target is found).matchSubstring
- boolean that indicates whether to flag a
match when objectText is a substring of a candidate object's
encoded text.
java.lang.IllegalArgumentException
public void replace(Match regexp, GenericObjectList replacementObject) throws java.lang.IllegalArgumentException
regexp
- regular expression to match with the canonical
text we want to replace.replacementObject
- object to replace the target with (in
case a target is found).
java.lang.IllegalArgumentException
public void replace(Match regexp, GenericObject replacementObject) throws java.lang.IllegalArgumentException
regexp
- match regular expression of the object to find.
this is generated using the org.apache.regexp package.replacementObject
- object to replace the target with (
in case a target is found).
java.lang.IllegalArgumentException
public void mergeObjects(GenericObjectList mergeList)
mergeList
- is the list of Generic objects that we want to do
an object by object merge with. Note that no new objects are
added to this list.public java.lang.String encode()
public java.lang.String toString()
java.util.AbstractCollection
内の toString
public void setSeparator(java.lang.String sep)
sep
- is the new seperator (default is semicolon)public boolean equals(java.lang.Object other)
java.util.Collection
内の equals
java.util.List
内の equals
java.util.AbstractList
内の equals
other
- is the object to compare ourselves to.
public boolean match(java.lang.Object other)
other
- template object to compare against.
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |