|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cocoon.ant.UriType
Encapsulate URI arithmetic. A simple class for encapsultating URI computations, avoiding to use extensive String operation spread over all classes.
Constructor Summary | |
UriType(String uri)
Constructor for the UriType object |
|
UriType(UriType parent,
String uri)
Constructor for the UriType object |
Method Summary | |
void |
addLink(UriType uriType)
Adds a feature to the Link attribute of the UriType object |
boolean |
equals(Object o)
Compute equality of Uri objects. |
String |
getContentType()
Gets the contentType attribute of the UriType object |
String |
getDeparameterizedUri()
Gets the deparameterizedURI attribute of the UriType object |
File |
getDestFile()
Gets the destFile attribute of the UriType object |
String |
getExtension()
Gets the extension attribute of the UriType object |
String |
getFilename()
Gets the filename attribute of the UriType object |
Collection |
getLinks()
Gets the links attribute of the UriType object |
String |
getMangledUri()
Gets the mangledURI attribute of the UriType object |
String |
getMergedParameterizedUri(Map additionalParameters)
Gets the mergedParameterizedURI attribute of the UriType object |
String |
getOriginalParameterizedUri()
Gets the originalParameterizedURI attribute of the UriType object |
String |
getParameterizedUri(boolean addOriginalParameters,
boolean addAdditionalParameters,
Map additionalParameters)
Gets the parameterizedURI attribute of the UriType object |
Map |
getParameters()
Gets the parameters attribute of the UriType object |
String |
getPath()
Gets the path attribute of the UriType object |
String |
getSUri()
Gets the sURI attribute of the UriType object |
String |
getUri()
Constructor for the getURI object |
int |
hashCode()
Compute hash code of this object |
protected void |
init()
Calculate all member values depending on the uri member value |
protected String |
mangledUri(String uri)
Mangle a URI. |
void |
setContentType(String contentType)
Sets the contentType attribute of the UriType object |
void |
setDestFile(File destFile)
Sets the destFile attribute of the UriType object |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UriType(String uri)
uri
- String representation of a Uripublic UriType(UriType parent, String uri)
parent
- Parent context of a Uriuri
- String representation of a UriMethod Detail |
public void setDestFile(File destFile)
destFile
- The new destFile valuepublic void setContentType(String contentType)
contentType
- The new contentType valuepublic File getDestFile()
public String getContentType()
public Collection getLinks()
public String getUri()
public Map getParameters()
public String getDeparameterizedUri()
public String getSUri()
public String getMangledUri()
public String getPath()
public String getFilename()
public String getExtension()
public String getParameterizedUri(boolean addOriginalParameters, boolean addAdditionalParameters, Map additionalParameters)
addOriginalParameters
- Description of ParameteraddAdditionalParameters
- Description of ParameteradditionalParameters
- Description of Parameter
public String getMergedParameterizedUri(Map additionalParameters)
additionalParameters
- Description of Parameter
public String getOriginalParameterizedUri()
public void addLink(UriType uriType)
uriType
- The feature to be added to the Link attributepublic boolean equals(Object o)
o
- Checked against this for equality
public int hashCode()
protected String mangledUri(String uri)
uri
- the Uri value
protected void init()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |