|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface containing all the methods needed for implementing a subclass of
XAccessor. It is passed to the XAccessor.source
method.
Field Summary | |
static String |
OPERAND
argument constant for operand |
static String |
OPERATOR
argument constant for operator |
static String |
PARAMETER
argument constant for parameter |
Method Summary | |
URI |
getCurrentWorkingURI()
Return the current working URI of this request- may be null if none defined |
IURMeta |
getDependencyMeta(String aMimeType,
int aCost)
Return a dependency meta that has as dependents all requested arguments plus the accessor itself |
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 |
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 |
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 aRepresentation)
Sink an abitrary resource |
Field Detail |
public static final String OPERAND
public static final String OPERATOR
public static final String PARAMETER
Method Detail |
public IXAspect getOperand() throws NetKernelException
NetKernelException
- thrown if we fail to obtain aspect for any reasonpublic IURRepresentation getOperand(Class aClass) throws NetKernelException
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
NetKernelException
- thrown if we fail to obtain aspect for any reasonpublic IURRepresentation getOperator(Class aClass) throws NetKernelException
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
NetKernelException
- thrown if we fail to obtain aspect for any reasonpublic IURRepresentation getParameter(Class aClass) throws NetKernelException
aClass
- the class of the aspect that must be available
NetKernelException
- thrown if we fail to obtain aspect for any reasonpublic IXAspect getXResource(URI aURI) throws NetKernelException
NetKernelException
- thrown if we fail to obtain aspect for any reasonpublic IURRepresentation getResource(URI aURI, Class aClass) throws NetKernelException
aClass
- the class of the aspect that must be available
NetKernelException
- thrown if we fail to obtain aspect for any reasonpublic boolean hasOperand()
public boolean hasOperator()
public boolean hasParameter()
public URI getURI(String aArgument) throws URISyntaxException
URISyntaxException
public String getType()
public URI getCurrentWorkingURI()
public IURMeta getDependencyMeta(String aMimeType, int aCost)
aMimeType
- the mimetype of the metaaCost
- the creation cost for the metapublic void setResource(URI aURI, IURRepresentation aRepresentation) throws NetKernelException
aURI
- the URI of the resource to sink toaRepresentation
- 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
resolveEntity
in interface EntityResolver
SAXException
IOException
public Source resolve(String href, String base) throws TransformerException
resolve
in interface URIResolver
TransformerException
|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |