|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sdlip.helpers.NestedAttribute
NestedAttribute represents a flat list of XML elements. For example, nested attribute
<coordinate> <x/> </coordinate>is represented by an element vector
coordinate, xNestedAttributes can be collected from the list of document properties requested by the client, or from the metadata returned by the client using the method collectAttributes. This class can also be used to filter out the attributes requested by the client from a complete document/resource description using matchDoc.
Constructor Summary | |
NestedAttribute(java.util.Enumeration en)
|
|
NestedAttribute(java.util.Vector v)
|
Method Summary | |
static java.util.Vector |
collectAttributes(Element e)
Collects a vector of NestedAttributes from metadata inside SDLIP:propList tag. |
Element |
elementAt(int i)
|
Element |
getLast()
returns the last element in the list |
static java.lang.String |
getName(java.lang.String name)
|
Element |
getNestedElements()
returns a nested representation of the element list |
static java.lang.String |
getNS(java.lang.String name)
|
java.lang.String |
getPropDesc()
|
java.lang.String |
getPropName()
|
boolean |
isRetrievable()
Whether attribute is retrievable |
boolean |
isSearchable()
Whether attribute is searchable |
static Element |
match(java.util.Vector attrs,
Element e)
Copies from ePropList a subset of values that match attributes listed in attrs. |
static Element |
matchDoc(java.util.Vector attrs,
Element eDoc)
Returns a subset of attributes from eDoc that match NestedAttributes in attrs |
java.util.Enumeration |
matchValues(Element e)
Returns an enumeration of values for the NestedAttribute found inside the given XML element |
int |
size()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public NestedAttribute(java.util.Vector v)
public NestedAttribute(java.util.Enumeration en)
Method Detail |
public Element getLast()
public Element elementAt(int i)
public int size()
public Element getNestedElements()
public static java.lang.String getNS(java.lang.String name)
public static java.lang.String getName(java.lang.String name)
public java.lang.String getPropName()
public java.lang.String getPropDesc()
public static java.util.Vector collectAttributes(Element e)
public boolean isSearchable()
public boolean isRetrievable()
public static Element matchDoc(java.util.Vector attrs, Element eDoc)
public static Element match(java.util.Vector attrs, Element e)
public java.util.Enumeration matchValues(Element e)
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |