|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.saxon.instruct.UserFunction
This object represents the compiled form of a user-written function (the source can be either an XSLT stylesheet function or an XQuery function).
It is assumed that type-checking, of both the arguments and the results, has been handled at compile time. That is, the expression supplied as the body of the function must be wrapped in code to check or convert the result to the required type, and calls on the function must be wrapped at compile time to check or convert the supplied arguments.
| Constructor Summary | |
UserFunction(Expression body)
|
| Method Summary | |
Value |
call(Value[] actualArgs,
Controller controller)
Call this function. |
Value |
call(Value[] actualArgs,
Controller controller,
boolean evaluateTailCalls)
Call this function. |
int |
getColumnNumber()
|
java.lang.String |
getFunctionName()
Get the name of the function, for diagnostics |
java.lang.String |
getInstructionName()
Get the name of the instruction. |
int |
getLineNumber()
Get the line number of the instruction in the source stylesheet module. |
java.util.HashMap |
getProperties()
Get all the properties of the instruction. |
java.lang.Object |
getProperty(java.lang.String propertyName)
Get the value of a particular property of the instruction. |
java.lang.String |
getPublicId()
|
java.lang.String |
getSystemId()
Get the system identifier (URI) of the source stylesheet module containing the instruction. |
void |
setFunctionName(java.lang.String name)
|
void |
setLineNumber(int lineNumber)
|
void |
setMemoFunction(boolean isMemo)
|
void |
setSystemId(java.lang.String systemId)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public UserFunction(Expression body)
| Method Detail |
public void setLineNumber(int lineNumber)
public void setSystemId(java.lang.String systemId)
public int getLineNumber()
InstructionInfo
getLineNumber
in interface InstructionInfo
public java.lang.String getSystemId()
InstructionInfo
getSystemId
in interface InstructionInfo
public int getColumnNumber()
getColumnNumber
in interface javax.xml.transform.SourceLocator
public java.lang.String getPublicId()
getPublicId
in interface javax.xml.transform.SourceLocator
public java.lang.String getInstructionName()
InstructionInfo
getInstructionName
in interface InstructionInfo
public java.lang.Object getProperty(java.lang.String propertyName)
InstructionInfo
getProperty
in interface InstructionInfo
propertyName
- The name of the required property
public java.util.HashMap getProperties()
InstructionInfo
getProperties
in interface InstructionInfo
public void setMemoFunction(boolean isMemo)
public void setFunctionName(java.lang.String name)
public java.lang.String getFunctionName()
CallableFunction
getFunctionName
in interface CallableFunction
public Value call(Value[] actualArgs, Controller controller, boolean evaluateTailCalls) throws javax.xml.transform.TransformerException
call
in interface CallableFunction
actualArgs
- the arguments supplied to the function. These must have the correct
types required by the function signature (it is the caller's responsibility to check this).
It is acceptable to supply a Closure
to represent a value whose
evaluation will be delayed until it is needed. The array must be the correct size to match
the number of arguments: again, it is the caller's responsibility to check this.controller
- This provides the run-time context for evaluating the function.evaluateTailCalls
- if true, then any function calls contained in the body of the function
are evaluated in the normal way, whether or not they are marked as tail calls. If the argument
is false, then tail calls are not evaluated, and instead a FunctionCallPackage is returned containing
the information needed to evaluate the function. The caller must then be prepared to deal with this
returned value by evaluating the packaged function call (which may return further packaged function
calls, and so on).
javax.xml.transform.TransformerException
public Value call(Value[] actualArgs, Controller controller) throws javax.xml.transform.TransformerException
actualArgs
- the arguments supplied to the function. These must have the correct
types required by the function signature (it is the caller's responsibility to check this).
It is acceptable to supply a Closure
to represent a value whose
evaluation will be delayed until it is needed. The array must be the correct size to match
the number of arguments: again, it is the caller's responsibility to check this.controller
- This provides the run-time context for evaluating the function. A Controller
may be obtained by calling XQueryExpression.getController()
. This may
be used for a series of calls on functions defined in the same module as the XQueryExpression.
javax.xml.transform.TransformerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |


{% extends "base.html" %} {% block title %}Django Web Styleguide{% endblock %} {% block body_class %}styleguide{% endblock %} {% block header %}
This styleguide is a reference to maintain a design standard on djangoproject.com and related Django websites. It is meant to provide a source of available elements, and give insight into which elements to use where.
It is best practice to use elements from this guide to serve any design needs before introducing new elements. If new elements must be introduced to accommodate new content, please be mindful of the guidelines here and take the liberty to update the guide.
A sidebar on the left side of the page is the default layout, and used for most pages. This layout is used when the sidebar is used mainly for navigating.
A sidebar on the right side of the page should be used to show additional, secondary content.
Single column layout should be used for single-purpose pages, such as marketing pages, landing pages, or other pages where the attention of the user should be intentionally narrowed. The column is purposefully limited to 740px to keep text line-lengths at a nice, readable width.
Djangoproject.com uses responsive styles to scale the above layouts to fit desktop and tablet browsers comfortably. When visited on a mobile device, all layouts are condensed to single-column. Mobile styles are purposefully not loaded on desktop, for example, when the browser window is scaled very small.
Colors used for main text, links and backgrounds. Hover each swatch to see the corresponding SASS variable name.
Colors used for hover states, alternate texts, borders, etc. These are mostly slight variations of the primary colors to be paired.
The djangoproject.com website is set in both serif and sans-serif fonts. The serif font is Palatino, which is widely available as a system font. The sans-serif font is Roboto, a web font that is loaded via Google Fonts. 5 styles of this typeface are loaded, Light (300), Normal (400), Normal Italic, Bold (700) and Bold Italic. Refrain from using weights and italics that are not loaded.
For documentation styles, the monospace font is Inconsolata. Normal (400) and Bold (700) weights are available.
Serif paragraph type. Palatino font style should be used for all text copy, except for the documentation and in sidebars.
Monospace type. Used exclusively in documentation and code examples.
Sans-serif paragraph type. Roboto font is used in documentation paragraph text, sidebars, headers, and footers.
Djangoproject.com makes use of Font Awesome for any icons throughout the interface. This all-inclusive webfont icon set eliminates the need to design icons for specific purposes, and keeps the icon language consistent throughout.
Call to action buttons are used throughout the site, to focus users' attention on important flows of the site. An outline version is used when the call to action is less important.


Alongside filter, we can use the select, join, group, order, and limit functions to compose rich queries with safety and ease. Let’s say we want to order our results by email, then age, and return no more than three rows.
filter
select
join
group
order
limit


"The Explorer" is the monthly newsletter of the Kansas State Council that is sent to all state personnel, District Deputies and Grand Knights. It is offered here on this website so that all Kansas Knights may be kept informed of Knights programs and happenings. You need Acrobat Reader to view these issues. Click
here to download Acrobat Reader if you do not already have it installed on your computer.