|
SAP NetWeaver 7.30 (SP02) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPropertiesResource
The IPropertiesResource is an abstract view of XML resources, java property
files or whatever.
It provides convenient methods to parse the nodes hierarchy without
knowing anything about the file format.
For example :
IPropertiesResource countries =
(IPropertiesResource)(request.getResource("weather", "xml", "city.xml"));
if ( countries.isAvailable()==true )
{
Enumeration _enum = countries.getChildren();
while (_enum.hasMoreElements())
{
IPropertiesResource country = (IPropertiesResource)=(_enum.nextElement());
System.out.println("CountryName="+country.getAttributeValue("name"));
}
}
IResource,
IResourceInformation,
IPortalComponentRequest.getResource(String, String, String),
IPortalComponentResponse.addResource(IResource)| Field Summary |
|---|
| Fields inherited from interface com.sapportals.portal.prt.resource.IResource |
|---|
APPLET, CSS, IMAGE, JSP, PAGELET, PRIVATE_SCOPE, PROFILE, PROPERTY, PUBLIC_SCOPE, SCOPE_SEPARATOR, SCRIPT, STATIC_PAGE, SYSTEM_RESOURCE, XML |
| Method Summary | |
|---|---|
Enumeration |
getAttributeNames()
returns an enumeration of attributes |
String |
getAttributeValue(String key)
returns the value related to the provided key. |
Enumeration |
getChildren()
returns an array of IPropertiesResource children or null if no there is no child. |
Enumeration |
getChildren(String tagName)
returns an array of IPropertiesResource children which correspond to the tag name or null if no there is no child. |
String |
getNodeName()
returns the name of this node |
String |
getNodeValue()
returns the value of this node |
void |
setAttributeValue(String key,
String value)
sets the value related to the provided key. |
void |
store()
Updates the content of the file. |
| Methods inherited from interface com.sapportals.portal.prt.resource.IResource |
|---|
getResourceInformation, init, isAvailable |
| Method Detail |
|---|
Enumeration getAttributeNames()
String getAttributeValue(String key)
key -
void setAttributeValue(String key,
String value)
key - value - String getNodeName()
String getNodeValue()
Enumeration getChildren()
Enumeration getChildren(String tagName)
tagName -
void store()
throws PortalRuntimeException
PortalRuntimeException| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/lib/api
|
api
|
EP-PIN
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/api
|
api
|
EP-PIN
|
[sap.com] EP-BASIS-API
|
[sap.com]
|
default
|
EP-PIN-PRT
|
|
SAP NetWeaver 7.30 (SP02) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||