public class IlvMList extends IlvMModel
ALT, BAG, SEQ
Constructor and Description |
---|
IlvMList(IlvMStatement st)
Creates a model with a statement.
|
IlvMList(List<IlvMStatement> list)
Creates a model with a list
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object target)
|
List<IlvMStatement> |
getList()
Returns children, in a list.
|
Map<IlvMResource,IlvMList> |
getMap()
Returns the children of the container.
|
int |
hashCode()
Returns the hash code.
|
boolean |
isEmpty()
True is empty.
|
void |
merge(IlvMModel model)
Merges with another model.
|
void |
print(int offset,
PrintStream out)
|
IlvMList |
query(IlvMStatement pattern)
Queries the statements in this model that match the given pattern.
|
IlvMList |
query(IlvMStatement pattern,
ArrayList<IlvMStatement> result)
Invokes a query
|
void |
setList(List<IlvMStatement> list)
Sets the children of the container.
|
void |
setMap(Map<IlvMResource,IlvMList> map)
Sets the children of the container, as a map Subject to list of statements.
|
getType, setType
generateURI, getNamespace, getQName, getURI, setNamespace, setURI
public IlvMList(List<IlvMStatement> list)
list
- public IlvMList(IlvMStatement st)
st
- the statementpublic List<IlvMStatement> getList()
IlvMContainer
getList
in class IlvMContainer
public Map<IlvMResource,IlvMList> getMap()
IlvMContainer
getMap
in class IlvMContainer
public void setList(List<IlvMStatement> list)
IlvMContainer
setList
in class IlvMContainer
list
- The new list.public void setMap(Map<IlvMResource,IlvMList> map)
IlvMContainer
setMap
in class IlvMContainer
map
- The new list.public boolean isEmpty()
IlvMContainer
isEmpty
in class IlvMContainer
public void merge(IlvMModel model)
IlvMModel
public IlvMList query(IlvMStatement pattern)
IlvMModel
public IlvMList query(IlvMStatement pattern, ArrayList<IlvMStatement> result)
pattern
- the pattern to matchresult
- the list of matching statementspublic boolean equals(Object target)
IlvMContainer
equals
in class IlvMContainer
public int hashCode()
IlvMResource
hashCode
in class IlvMContainer
public void print(int offset, PrintStream out)
IlvMContainer
print
in class IlvMContainer
offset
- The offset.out
- The out put print stream.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.