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, setTypegenerateURI, getNamespace, getQName, getURI, setNamespace, setURIpublic IlvMList(List<IlvMStatement> list)
list - public IlvMList(IlvMStatement st)
st - the statementpublic List<IlvMStatement> getList()
IlvMContainergetList in class IlvMContainerpublic Map<IlvMResource,IlvMList> getMap()
IlvMContainergetMap in class IlvMContainerpublic void setList(List<IlvMStatement> list)
IlvMContainersetList in class IlvMContainerlist - The new list.public void setMap(Map<IlvMResource,IlvMList> map)
IlvMContainersetMap in class IlvMContainermap - The new list.public boolean isEmpty()
IlvMContainerisEmpty in class IlvMContainerpublic void merge(IlvMModel model)
IlvMModelpublic IlvMList query(IlvMStatement pattern)
IlvMModelpublic IlvMList query(IlvMStatement pattern, ArrayList<IlvMStatement> result)
pattern - the pattern to matchresult - the list of matching statementspublic boolean equals(Object target)
IlvMContainerequals in class IlvMContainerpublic int hashCode()
IlvMResourcehashCode in class IlvMContainerpublic void print(int offset,
PrintStream out)
IlvMContainerprint in class IlvMContaineroffset - The offset.out - The out put print stream.© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.