修飾子とタイプ | メソッドと説明 |
---|---|
void |
deregisterIDMapping(String id)
Deregister an ID-to-XMLObject mapping for one of this object's owner's children.
|
void |
deregisterIDMappings(IDIndex idIndex)
Deregister multiple ID-to-XMLObject mappings for this object's owner's children.
|
protected Map<String,XMLObject> |
getIDMappings()
Get the ID-to-XMLObject mappings for this object's object's owner's children.
|
Set<String> |
getIDs()
Get the set of ID strings which are the index keys.
|
boolean |
isEmpty()
Return whether the index is currently empty.
|
XMLObject |
lookup(String id)
Lookup and return the XMLObject identified by the specified ID attribute.
|
void |
registerIDMapping(String id,
XMLObject referent)
Register an ID-to-XMLObject mapping for one of this object's owner's children.
|
void |
registerIDMappings(IDIndex idIndex)
Register multiple ID-to-XMLObject mappings for this object's owner's children.
|
public IDIndex(XMLObject newOwner) throws NullPointerException
newOwner
- the XMLObject which owns this ID-to-XMLObject indexNullPointerException
- thrown if the given XMLObject is nullpublic void registerIDMapping(String id, XMLObject referent)
id
- the XMLObject child's ID attribute valuereferent
- the XMLObject childpublic void registerIDMappings(IDIndex idIndex)
idIndex
- the ID-to-XMLObject mapping to registerpublic void deregisterIDMapping(String id)
id
- the ID attribute value of the XMLObject child to deregisterpublic void deregisterIDMappings(IDIndex idIndex)
idIndex
- the ID-to-XMLObject mappings to deregisterpublic XMLObject lookup(String id)
id
- the ID attribute value to lookuppublic boolean isEmpty()
public Set<String> getIDs()
Copyright © 2012. All Rights Reserved.