|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openxri.xml.XRDS
public class XRDS
This class describes the XRDS XML element used for XRI Authority resolution.
Constructor Summary | |
---|---|
XRDS()
Contructs an emtpy XRDS element |
|
XRDS(org.w3c.dom.Element oElem,
boolean bKeepXRIDDOMs)
This creates the object from DOM and optionally preserves the DOM of the XRD child elements. |
Method Summary | |
---|---|
void |
add(XRD oDescriptor)
Adds an XRD element |
void |
add(XRDS oDescriptor)
Adds a nested XRDS element |
void |
addAll(XRDS other)
|
void |
clearDOM()
Clears any DOM that has been stored with this object |
java.lang.String |
dump()
Returns object as a formatted XML string. |
void |
fromDOM(org.w3c.dom.Element oElem,
boolean bKeepXRIDDOMs)
This populates the object from DOM and optionally preserves the DOM of the XRD child elements. |
XRD |
getDescriptorAt(int n)
Returns the XRD at the given index |
XRD |
getFinalXRD()
|
XRDS |
getFinalXRDS()
|
int |
getNumChildren()
Returns the number of XRDs + XRDSs |
int |
getNumXRD()
Gets the number or XRD elements among its children |
int |
getNumXRDS()
Gets the number of XRDS elements among its children. |
java.lang.String |
getRedirect()
|
java.lang.String |
getRef()
|
XRDS |
getXRDSAt(int n)
Returns the XRD at the given index |
boolean |
isXRDAt(int n)
|
boolean |
isXRDSAt(int n)
|
protected void |
removeChildAt(int i)
|
void |
replaceFinalXRD(XRDS children)
|
void |
reset()
This method resets the state of the object. |
java.lang.String |
serializeDescriptorDOM()
Serializes the object based on calling serializeDOM(false, true) on each of the child XRDS |
void |
setRedirect(java.lang.String redirect)
|
void |
setRef(java.lang.String ref)
|
org.w3c.dom.Element |
toDOM(org.w3c.dom.Document oDoc)
This method will make DOM using the specified document. |
java.lang.String |
toString()
Returns formatted object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XRDS()
public XRDS(org.w3c.dom.Element oElem, boolean bKeepXRIDDOMs) throws java.net.URISyntaxException, java.text.ParseException
bKeepXRIDDOMs
- - Whether or not the XRDS should keep
a copy of their DOM after construction.
java.net.URISyntaxException
java.text.ParseException
Method Detail |
---|
public void add(XRD oDescriptor)
public void add(XRDS oDescriptor)
public void addAll(XRDS other)
public int getNumChildren()
public int getNumXRD()
XRD
elements among its children
public int getNumXRDS()
XRDS
elements among its children.
This indicates the number of Refs followed.
public XRD getDescriptorAt(int n)
public XRDS getXRDSAt(int n)
public boolean isXRDSAt(int n)
public boolean isXRDAt(int n)
public void reset()
public void fromDOM(org.w3c.dom.Element oElem, boolean bKeepXRIDDOMs) throws java.text.ParseException, java.net.URISyntaxException
bKeepXRIDDOMs
- - Whether or not the XRDS should keep
a copy of their DOM after construction.
java.text.ParseException
java.net.URISyntaxException
public org.w3c.dom.Element toDOM(org.w3c.dom.Document oDoc)
oDoc
- - The document to use for generating DOMpublic void clearDOM()
public java.lang.String serializeDescriptorDOM()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String dump()
sTab
- - The characters to prepend before each new linepublic XRD getFinalXRD()
public XRDS getFinalXRDS()
public void replaceFinalXRD(XRDS children)
protected void removeChildAt(int i)
public java.lang.String getRef()
public void setRef(java.lang.String ref)
ref
- The ref to set.public java.lang.String getRedirect()
public void setRedirect(java.lang.String redirect)
ref
- The redirect attribute value to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |