|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ten60.netkernel.xml.xahelper.XAHelperImpl
An implementation of XAHelper, XAHelperExtra
Field Summary |
Fields inherited from interface org.ten60.netkernel.xml.xahelper.XAHelper |
OPERAND, OPERATOR, PARAMETER |
Constructor Summary | |
XAHelperImpl(URRequest aRequest,
XAccessor aAccessor,
Map aArgumentDeclarations,
boolean aKeepDependencies)
Creates a new instance of XAHelperImpl |
Method Summary | |
Container |
getContainer()
Return the container we are running in |
URI |
getCurrentWorkingURI()
Return the current working URI of this request- may be null if none defined |
IURMeta |
getDependencyMeta(String aMimeType,
int aCreationCost)
Return a dependency meta that has as dependents all requested arguments plus the accessor itself |
DependencyMeta |
getDependencyMeta(String aMimeType,
int aCreationCost,
int aUsageCost,
List aOnUsageDependencies)
|
IXAspect |
getOperand()
return an IXAspect of the operand |
IURRepresentation |
getOperand(Class aClass)
return an IURRepresentation of the operand that has a particular aspect |
IXAspect |
getOperator()
return an IXAspect of the operator |
IURRepresentation |
getOperator(Class aClass)
return an IURRepresentation of the operator that has a particular aspect |
IXAspect |
getParameter()
return an IXAspect of the parameter |
IURRepresentation |
getParameter(Class aClass)
return an IURRepresentation of the parameter that has a particular aspect |
URRequest |
getRequest()
Return the raw request that invoked the accessor |
IURRepresentation |
getResource(URI aURI,
Class aClass)
return an IURRepresentation of an abitrary URI |
String |
getType()
Return the type value of the compound URI that initiated this accessor request |
URI |
getURI(String aArgument)
Return the URI of a particular argument- null if it doesn't exist |
IXAspect |
getXResource(URI aURI)
Return an IXAspect of an abitrary URI |
boolean |
hasOperand()
Return true if the operand available |
boolean |
hasOperator()
Return true if the operator available |
boolean |
hasParameter()
Return true if the parameter available |
IURRepresentation |
requestResourceWithValues(URI aURI,
Class aAspectClass,
Map aURIToValue)
Request a resource with optional pass-by-value arguments |
Source |
resolve(String href,
String base)
the URIResolver interface for JAXP |
InputSource |
resolveEntity(String aPublicId,
String aSystemId)
the EntityResolver interface for SAX |
void |
setResource(URI aURI,
IURRepresentation aProxy)
Sink an abitrary resource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XAHelperImpl(URRequest aRequest, XAccessor aAccessor, Map aArgumentDeclarations, boolean aKeepDependencies) throws NetKernelException
Method Detail |
public IXAspect getOperand() throws NetKernelException
XAHelper
getOperand
in interface XAHelper
NetKernelException
- thrown if we fail to obtain aspect for any reasonpublic IURRepresentation getOperand(Class aClass) throws NetKernelException
XAHelper
getOperand
in interface XAHelper
aClass
- the class of the aspect that must be available
NetKernelException
- thrown if we fail to obtain aspect for any reasonpublic IXAspect getOperator() throws NetKernelException
XAHelper
getOperator
in interface XAHelper
NetKernelException
- thrown if we fail to obtain aspect for any reasonpublic IURRepresentation getOperator(Class aClass) throws NetKernelException
XAHelper
getOperator
in interface XAHelper
aClass
- the class of the aspect that must be available
NetKernelException
- thrown if we fail to obtain aspect for any reasonpublic IXAspect getParameter() throws NetKernelException
XAHelper
getParameter
in interface XAHelper
NetKernelException
- thrown if we fail to obtain aspect for any reasonpublic IURRepresentation getParameter(Class aClass) throws NetKernelException
XAHelper
getParameter
in interface XAHelper
aClass
- the class of the aspect that must be available
NetKernelException
- thrown if we fail to obtain aspect for any reasonpublic boolean hasOperand()
XAHelper
hasOperand
in interface XAHelper
public boolean hasOperator()
XAHelper
hasOperator
in interface XAHelper
public boolean hasParameter()
XAHelper
hasParameter
in interface XAHelper
public URI getURI(String aArgument) throws URISyntaxException
XAHelper
getURI
in interface XAHelper
URISyntaxException
public String getType()
XAHelper
getType
in interface XAHelper
public URI getCurrentWorkingURI()
XAHelper
getCurrentWorkingURI
in interface XAHelper
public IURMeta getDependencyMeta(String aMimeType, int aCreationCost)
XAHelper
getDependencyMeta
in interface XAHelper
aMimeType
- the mimetype of the metaaCreationCost
- the creation cost for the metapublic DependencyMeta getDependencyMeta(String aMimeType, int aCreationCost, int aUsageCost, List aOnUsageDependencies)
public IXAspect getXResource(URI aURI) throws NetKernelException
XAHelper
getXResource
in interface XAHelper
NetKernelException
- thrown if we fail to obtain aspect for any reasonpublic IURRepresentation getResource(URI aURI, Class aClass) throws NetKernelException
XAHelper
getResource
in interface XAHelper
aClass
- the class of the aspect that must be available
NetKernelException
- thrown if we fail to obtain aspect for any reasonpublic void setResource(URI aURI, IURRepresentation aProxy) throws NetKernelException
XAHelper
setResource
in interface XAHelper
aURI
- the URI of the resource to sink toaProxy
- the IURRepresentation containing the state to sink
NetKernelException
- thrown if we fail to obtain aspect for any reasonpublic InputSource resolveEntity(String aPublicId, String aSystemId) throws SAXException, IOException
XAHelper
resolveEntity
in interface XAHelper
SAXException
IOException
public Source resolve(String href, String base) throws TransformerException
XAHelper
resolve
in interface XAHelper
TransformerException
public URRequest getRequest()
XAHelperExtra
getRequest
in interface XAHelperExtra
public Container getContainer()
XAHelperExtra
getContainer
in interface XAHelperExtra
public IURRepresentation requestResourceWithValues(URI aURI, Class aAspectClass, Map aURIToValue) throws NetKernelException
requestResourceWithValues
in interface XAHelperExtra
aURI
- the type component of the active uriaAspectClass
- the result must have this aspectaURIToValue
- a map of URI
to IURRepresentation
NetKernelException
- thrown if we fail to request the resource sucessfully
|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |