public class UArray extends UObject implements Iterable<UObject>
Modifier and Type | Field and Description |
---|---|
static String |
EN
Element name
|
static String |
FQEN
Fully qualified element name
|
Constructor and Description |
---|
UArray() |
UArray(List<? extends UObject> oo) |
Modifier and Type | Method and Description |
---|---|
boolean |
addObject(int idx,
UObject o)
Add object to array
|
boolean |
addObject(UObject o)
Add object to array
|
boolean |
addObject(UObject o,
boolean unique)
Add object to array
|
UArray |
asArray() |
UArray |
beUnique()
Make new Array which contains unique objects.
|
Element |
createElement(Document doc) |
UArray |
duplicate() |
UDict |
enDict(UPath path)
Make new UDict.
|
UDict |
enDict(UPath path,
boolean unique)
Make new UDict.
|
boolean |
equivalentTo(Object o) |
boolean |
equivalentTo(UArray o) |
boolean |
equivalentTo(UObject o) |
String |
getEN() |
String |
getFQEN() |
<T extends UObject> |
getNodeObjectList(Class<T> clas) |
<T extends UObject> |
getNodeObjectList(Class<T> clas,
UTLFResolver res)
Get Node Object List.
|
UObject |
getObject(int idx) |
<T extends UObject> |
getObjectList(Class<T> clas) |
<T extends UObject> |
getObjectList(Class<T> clas,
UTLFResolver res) |
boolean |
hasObject(UObject o)
Check object posession.
|
void |
initialize(Element e) |
boolean |
isArray() |
boolean |
isEmpty() |
Iterator<UObject> |
iterator() |
boolean |
merge(UArray ua,
boolean unique)
Merge arrays
|
int |
numberOfElements()
get Number of Elements under this objects.
|
UObject |
removeObject(int idx) |
boolean |
removeObject(UObject o) |
void |
shrinkNullKeyedDict() |
int |
size() |
void |
sort(Comparator<UObject> cmpr) |
String |
toString() |
asObject, compareTo, compareTo, create, getBoolean, getReal, isObject
asBoolean, asData, asDate, asDict, asFalse, asInteger, asKey, asNull, asReal, asReference, asString, asTrue, castBoolean, castInteger, castReal, castString, copyAttribute, createTop, duplicateInstance, equivalentAttributeTo, equivalentTextTo, getAttribute, getBasis, getScope, getSeeAlso, getText, hasValidText, isBoolean, isData, isDate, isDict, isFalse, isInteger, isKey, isNull, isReal, isReference, isString, isTrue, retrieveAttribute, setAttribute, setAttributes, setBasis, setScope, setSeeAlso, setText
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static final String EN
public static final String FQEN
public void initialize(Element e) throws UTLFException
initialize
in class UObject
UTLFException
public Element createElement(Document doc)
createElement
in class UObject
public <T extends UObject> List<T> getObjectList(Class<T> clas, UTLFResolver res)
public <T extends UObject> List<T> getNodeObjectList(Class<T> clas, UTLFResolver res)
T
- classclas
- class specifierres
- resolverpublic boolean hasObject(UObject o)
o
- Objectpublic boolean addObject(UObject o, boolean unique)
o
- Objectunique
- keep uniquenesspublic boolean addObject(UObject o)
o
- Objectpublic boolean addObject(int idx, UObject o)
idx
- Indexo
- Objectpublic boolean merge(UArray ua, boolean unique)
ua
- UArrayunique
- keep uniquenesspublic UObject getObject(int idx)
public UObject removeObject(int idx)
public boolean removeObject(UObject o)
public int size()
public boolean isEmpty()
public void sort(Comparator<UObject> cmpr)
public void shrinkNullKeyedDict()
public boolean equivalentTo(UArray o)
public boolean equivalentTo(UObject o)
equivalentTo
in class UObject
public boolean equivalentTo(Object o)
equivalentTo
in class UObject
public UArray beUnique()
public UDict enDict(UPath path, boolean unique) throws UTLFException
path
- path of key (must point UString or UArray of UString).unique
- requreness to be unique.UTLFException
- UDictでないオブジェクトが存在する場合.public UDict enDict(UPath path) throws UTLFException
path
- PathUTLFException
- UDictでないオブジェクトが存在する場合.public int numberOfElements()
numberOfElements
in class UInstance
EDB Working Group at Tue Jun 10 17:08:59 JST 2025