|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openxri.xml.Service
public class Service
This class describes the Service XML element used for XRI Authority resolution.
Constructor Summary | |
---|---|
Service()
Contructs an empty Service element |
|
Service(org.w3c.dom.Element oElem)
This method constructs the object from DOM. |
Method Summary | |
---|---|
void |
addLocalID(LocalID localId)
|
void |
addMediaType(SEPMediaType mtype)
|
void |
addMediaType(java.lang.String sVal)
Adds a media type to this Service |
void |
addMediaType(java.lang.String sVal,
java.lang.String match,
java.lang.Boolean select)
Adds a media type to this Service with attributes |
void |
addPath(SEPPath path)
|
void |
addPath(java.lang.String sPath)
Adds a URI to the service |
void |
addPath(java.lang.String sPath,
java.lang.String match,
java.lang.Boolean select)
Adds a URI to the service with attributes |
void |
addRedirect(Redirect redirect)
|
void |
addRef(Ref ref)
|
void |
addType(SEPType type)
|
void |
addType(java.lang.String sVal)
Adds a type to this Service |
void |
addType(java.lang.String sVal,
java.lang.String match,
java.lang.Boolean select)
Adds a type to this Service with attributes |
void |
addURI(SEPUri uri)
Adds an SEPUri object to the list of URIs |
void |
addURI(java.lang.String sURI)
Adds a URI to the service |
void |
addURI(java.lang.String sURI,
java.lang.Integer priority,
java.lang.String append)
Adds a URI to the service with attributes |
java.lang.Object |
clone()
|
java.lang.String |
dump()
Returns object as a formatted XML string. |
boolean |
equals(java.lang.Object o)
|
void |
fromDOM(org.w3c.dom.Element oElem)
This method populates the object from DOM. |
java.lang.String |
getExtension()
|
org.apache.xml.security.keys.KeyInfo |
getKeyInfo()
Returns the key info element |
LocalID |
getLocalIDAt(int n)
|
java.lang.String |
getMediaType()
Deprecated. |
SEPMediaType |
getMediaTypeAt(int n)
Returns the media type at the given index. |
java.util.List |
getMediaTypes()
|
int |
getNumLocalIDs()
|
int |
getNumMediaTypes()
Returns the number of media types in this service |
int |
getNumPaths()
Returns the number of URIs |
int |
getNumRedirects()
|
int |
getNumRefs()
|
int |
getNumTypes()
Returns the number of types in this service |
int |
getNumURIs()
Returns the number of URIs |
java.util.HashMap |
getOtherChildrenVectorMap()
|
java.util.Vector |
getOtherTagValues(java.lang.String sTag)
Returns unspecified simple elements in the Service by Tag |
SEPPath |
getPathAt(int n)
Get a Servie Path |
java.util.List |
getPaths()
|
java.util.ArrayList |
getPrioritizedRedirects()
|
java.util.ArrayList |
getPrioritizedRefs()
|
java.util.ArrayList |
getPrioritizedURIs()
Returns the URIs in sorted in priority order |
java.lang.Integer |
getPriority()
|
java.lang.String |
getProviderId()
Returns the authority id element value |
Redirect |
getRedirectAt(int n)
|
java.util.Vector |
getRedirects()
|
Ref |
getRefAt(int n)
|
java.util.Vector |
getRefs()
|
java.lang.String |
getType()
Deprecated. |
SEPType |
getTypeAt(int n)
Returns the type at the given index. |
java.util.List |
getTypes()
|
SEPUri |
getURI()
Deprecated. |
SEPUri |
getURIAt(int n)
Returns the URI at the given index |
SEPUri |
getURIForScheme(java.lang.String sScheme)
Returns the first URI for the given scheme |
java.util.List |
getURIs()
Returns the a vector of URIs |
boolean |
matchType(java.lang.String sVal)
Deprecated. |
void |
reset()
Resets the internal state of this object |
void |
setExtension(java.lang.String extension)
|
void |
setKeyInfo(org.apache.xml.security.keys.KeyInfo oKeyInfo)
Sets the key info element |
void |
setMediaType(java.lang.String sVal)
Deprecated. |
void |
setMediaTypes(java.util.List mediaTypes)
|
boolean |
setOtherTagValues(java.lang.String sTag,
java.lang.String sTagValue)
Stores simple elements in the Service by Tag Here we are converting the String object that is being passed into XML Element before storing it into otherChildrenVectorMap Vector. |
void |
setPaths(java.util.List paths)
|
void |
setPrioritizedURIs(PrioritizedList prioritizedURIs)
|
void |
setPriority(java.lang.Integer priority)
|
void |
setPriority(java.lang.String priority)
|
void |
setProviderId(java.lang.String val)
Sets the authority id element value |
void |
setType(java.lang.String sVal)
Deprecated. |
void |
setTypes(java.util.List types)
|
void |
setURIs(java.util.List uris)
|
org.w3c.dom.Node |
toDOM(org.w3c.dom.Document oDoc)
This method will make DOM using the specified document. |
org.w3c.dom.Node |
toDOM(org.w3c.dom.Document doc,
boolean wantFiltered)
This method will make DOM using the specified document. |
java.lang.String |
toString()
Returns formatted object. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Service()
public Service(org.w3c.dom.Element oElem) throws java.net.URISyntaxException
java.net.URISyntaxException
Method Detail |
---|
public void reset()
public void fromDOM(org.w3c.dom.Element oElem) throws java.net.URISyntaxException
java.net.URISyntaxException
public java.lang.String getMediaType()
public int getNumMediaTypes()
public SEPMediaType getMediaTypeAt(int n)
public void setMediaType(java.lang.String sVal)
public void addMediaType(java.lang.String sVal)
public void addMediaType(java.lang.String sVal, java.lang.String match, java.lang.Boolean select)
public java.lang.String getType()
public int getNumTypes()
public SEPType getTypeAt(int n)
public void setType(java.lang.String sVal)
public void addType(java.lang.String sVal)
public void addType(java.lang.String sVal, java.lang.String match, java.lang.Boolean select)
public boolean matchType(java.lang.String sVal)
public int getNumURIs()
public SEPUri getURI()
public SEPUri getURIAt(int n)
public SEPUri getURIForScheme(java.lang.String sScheme)
public java.util.List getURIs()
public java.util.ArrayList getPrioritizedURIs()
public void addURI(java.lang.String sURI)
public void addURI(java.lang.String sURI, java.lang.Integer priority, java.lang.String append)
public void addURI(SEPUri uri)
uri
- public SEPPath getPathAt(int n)
public void addPath(java.lang.String sPath)
public void addPath(java.lang.String sPath, java.lang.String match, java.lang.Boolean select)
public int getNumPaths()
public java.lang.String getProviderId()
public void setProviderId(java.lang.String val)
public void setKeyInfo(org.apache.xml.security.keys.KeyInfo oKeyInfo)
public org.apache.xml.security.keys.KeyInfo getKeyInfo()
public boolean setOtherTagValues(java.lang.String sTag, java.lang.String sTagValue)
sTag
- - The tag name. Needs to be the Fully Qualified Name of the XML Element.
For Example "usrns1:info1" or "info1" (If not using NameSpaces)sTagValue
- - The tag values. Needs to be valid XML String like --
"public java.util.Vector getOtherTagValues(java.lang.String sTag)
sTag
- - The tag name to get values for
public void setExtension(java.lang.String extension) throws java.net.URISyntaxException, java.text.ParseException
java.net.URISyntaxException
java.text.ParseException
public java.lang.String getExtension()
public org.w3c.dom.Node toDOM(org.w3c.dom.Document oDoc)
oDoc
- - The document to use for generating DOMpublic org.w3c.dom.Node toDOM(org.w3c.dom.Document doc, boolean wantFiltered)
doc
- - The document to use for generating DOMwantFiltered
- - If true, the URIs will be sorted according to prioritypublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String dump()
sTab
- - The characters to prepend before each new linepublic java.lang.Integer getPriority()
public void setPriority(java.lang.Integer priority)
priority
- The priority to set.public void setPriority(java.lang.String priority)
priority
- The priority to set.public java.util.List getMediaTypes()
public java.util.HashMap getOtherChildrenVectorMap()
public java.util.List getPaths()
public java.util.List getTypes()
public void addType(SEPType type)
public void addMediaType(SEPMediaType mtype)
public void addPath(SEPPath path)
public void setPrioritizedURIs(PrioritizedList prioritizedURIs)
prioritizedURIs
- The prioritizedURIs to set.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public void setURIs(java.util.List uris)
uris
- The uris to set.public void setMediaTypes(java.util.List mediaTypes)
mediaTypes
- The mediaTypes to set.public void setPaths(java.util.List paths)
paths
- The paths to set.public void setTypes(java.util.List types)
types
- The types to set.public java.util.Vector getRefs()
public Ref getRefAt(int n)
public int getNumRefs()
public void addRef(Ref ref)
public java.util.ArrayList getPrioritizedRefs()
public java.util.Vector getRedirects()
public Redirect getRedirectAt(int n)
public int getNumRedirects()
public void addRedirect(Redirect redirect)
public java.util.ArrayList getPrioritizedRedirects()
public int getNumLocalIDs()
public LocalID getLocalIDAt(int n)
public void addLocalID(LocalID localId)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |