idx int64 0 41.2k | question stringlengths 74 4.21k | target stringlengths 5 888 |
|---|---|---|
9,100 | public void setOnBlur ( String onblur ) { _anchorState . registerAttribute ( AbstractHtmlState . ATTR_JAVASCRIPT , HtmlConstants . ONBLUR , onblur ) ; } | Sets the onBlur JavaScript event for the HTML anchor . |
9,101 | public void setOnFocus ( String onfocus ) { _anchorState . registerAttribute ( AbstractHtmlState . ATTR_JAVASCRIPT , HtmlConstants . ONFOCUS , onfocus ) ; } | Sets the onFocus JavaScript event for the HTML anchor . |
9,102 | public int doStartTag ( ) throws JspException { ServletRequest req = pageContext . getRequest ( ) ; HashMap atts = ( HashMap ) req . getAttribute ( TEMPLATE_ATTRIBUTES ) ; try { if ( atts != null ) { String val = ( String ) atts . get ( _name ) ; if ( val != null ) { Writer out = pageContext . getOut ( ) ; out . write ... | Renders the content of the attribute . |
9,103 | private ArrayList < AptContextField > initContexts ( ) { ArrayList < AptContextField > contexts = new ArrayList < AptContextField > ( ) ; if ( _implDecl == null || _implDecl . getFields ( ) == null ) return contexts ; Collection < FieldDeclaration > declaredFields = _implDecl . getFields ( ) ; for ( FieldDeclaration fi... | Initializes the list of ContextField declared directly by this ControlImpl |
9,104 | private ArrayList < AptControlField > initControls ( ) { ArrayList < AptControlField > fields = new ArrayList < AptControlField > ( ) ; if ( _implDecl == null || _implDecl . getFields ( ) == null ) return fields ; Collection < FieldDeclaration > declaredFields = _implDecl . getFields ( ) ; for ( FieldDeclaration fieldD... | Initializes the list of ControlFields for this ControlImpl |
9,105 | protected ArrayList < AptClientField > initClients ( ) { ArrayList < AptClientField > clients = new ArrayList < AptClientField > ( ) ; if ( _implDecl == null || _implDecl . getFields ( ) == null ) return clients ; Collection < FieldDeclaration > declaredFields = _implDecl . getFields ( ) ; for ( FieldDeclaration fieldD... | Initializes the list of ClientFields declared directly by this ControlImpl |
9,106 | public List < GeneratorOutput > getCheckOutput ( Filer filer ) throws IOException { HashMap < String , Object > map = new HashMap < String , Object > ( ) ; map . put ( "impl" , this ) ; map . put ( "init" , _init ) ; Writer writer = new IndentingWriter ( filer . createSourceFile ( _init . getClassName ( ) ) ) ; Generat... | Returns the information necessary to generate a ImplInitializer from this ControlImplementation . |
9,107 | public AptControlInterface getControlInterface ( ) { if ( _implDecl == null || _implDecl . getSuperinterfaces ( ) == null ) return null ; Collection < InterfaceType > superInterfaces = _implDecl . getSuperinterfaces ( ) ; for ( InterfaceType intfType : superInterfaces ) { InterfaceDeclaration intfDecl = intfType . getD... | Returns the ControlInterface implemented by this ControlImpl . |
9,108 | protected boolean isSerializable ( ) { for ( InterfaceType superIntf : _implDecl . getSuperinterfaces ( ) ) { if ( superIntf . toString ( ) . equals ( "java.io.Serializable" ) ) { return true ; } } return _superClass != null && _superClass . isSerializable ( ) ; } | Does this control impl on one of it superclasses implement java . io . Serializable? |
9,109 | private void waitForThread ( ) { if ( ( this . thread != null ) && this . thread . isAlive ( ) ) { try { this . thread . join ( ) ; } catch ( final InterruptedException e ) { e . printStackTrace ( ) ; } } } | As the result of Updater output depends on the thread s completion it is necessary to wait for the thread to finish before allowing anyone to check the result . |
9,110 | private boolean versionCheck ( String title ) { if ( this . type != UpdateType . NO_VERSION_CHECK ) { final String version = caller . getPluginVersion ( ) ; final String remoteVersion = title ; if ( this . hasTag ( version ) || version . contains ( remoteVersion ) ) { this . result = Updater . UpdateResult . NO_UPDATE ... | Check to see if the program should continue by evaluation whether the plugin is already updated or shouldn t be updated |
9,111 | private boolean hasTag ( String version ) { for ( final String string : Updater . NO_UPDATE_TAG ) { if ( version . contains ( string ) ) { return true ; } } return false ; } | Evaluate whether the version number is marked showing that it should not be updated by this program |
9,112 | private void removeRoutingConstraintsOnAttribute ( String attribute , boolean notifyListeners ) { for ( String activity : activities ) { removeRoutingConstraintsOnAttribute ( activity , attribute , notifyListeners ) ; } } | Removes all routing constraints that relate to the given attribute |
9,113 | public SqlStatement parse ( String sql ) { if ( _cachedSqlStatements . containsKey ( sql ) ) { return _cachedSqlStatements . get ( sql ) ; } SqlGrammar _parser = new SqlGrammar ( new StringReader ( sql ) ) ; SqlStatement parsed = null ; try { parsed = _parser . parse ( ) ; } catch ( ParseException e ) { throw new Contr... | Parse the sql and return an SqlStatement . |
9,114 | public RowSet mapToResultType ( ControlBeanContext context , Method m , ResultSet resultSet , Calendar cal ) { final SQL methodSQL = ( SQL ) context . getMethodPropertySet ( m , SQL . class ) ; final int maxrows = methodSQL . maxRows ( ) ; try { CachedRowSetImpl rows = new CachedRowSetImpl ( ) ; if ( maxrows > 0 ) { ro... | Map a ResultSet to a RowSet . Type of RowSet is defined by the SQL annotation for the method . |
9,115 | public static FacesBackingBeanFactory get ( ServletContext servletContext ) { FacesBackingBeanFactory factory = ( FacesBackingBeanFactory ) servletContext . getAttribute ( CONTEXT_ATTR ) ; assert factory != null : FacesBackingBeanFactory . class . getName ( ) + " was not found in ServletContext attribute " + CONTEXT_AT... | Get a FacesBackingBeanFactory . |
9,116 | public FacesBackingBean getFacesBackingBeanForRequest ( RequestContext requestContext ) { HttpServletRequest request = requestContext . getHttpRequest ( ) ; String uri = InternalUtils . getDecodedServletPath ( request ) ; assert uri . charAt ( 0 ) == '/' : uri ; String backingClassName = FileUtils . stripFileExtension ... | Get the backing bean associated with the JavaServer Faces page for a request . |
9,117 | protected FacesBackingBean loadFacesBackingBean ( RequestContext requestContext , String backingClassName ) { try { Class backingClass = null ; try { backingClass = getFacesBackingBeanClass ( backingClassName ) ; } catch ( ClassNotFoundException e ) { } if ( backingClass == null ) { if ( _log . isTraceEnabled ( ) ) { _... | Load a backing bean associated with the JavaServer Faces page for a request . |
9,118 | public FacesBackingBean getFacesBackingBeanInstance ( Class beanClass ) throws InstantiationException , IllegalAccessException { assert FacesBackingBean . class . isAssignableFrom ( beanClass ) : "Class " + beanClass . getName ( ) + " does not extend " + FacesBackingBean . class . getName ( ) ; return ( FacesBackingBea... | Get a FacesBackingBean instance given a FacesBackingBean class . |
9,119 | public static ClassLoader getClassLoader ( ) { try { ClassLoader cl = Thread . currentThread ( ) . getContextClassLoader ( ) ; if ( cl != null ) return cl ; } catch ( SecurityException e ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( "Could not get thread context classloader." , e ) ; } } if ( _log . isTraceEnab... | Get the ClassLoader from which implementor classes will be discovered and loaded . |
9,120 | public static void init ( ServletContext servletContext ) { PageFlowFactoriesConfig factoriesBean = ConfigUtil . getConfig ( ) . getPageFlowFactories ( ) ; FlowControllerFactory factory = null ; if ( factoriesBean != null ) { PageFlowFactoryConfig fcFactoryBean = factoriesBean . getPageFlowFactory ( ) ; factory = ( Flo... | Initialize an instance of this class in the ServletContext . This is a framework - invoked method and should not normally be called directly . |
9,121 | public FlowController getFlowControllerInstance ( Class flowControllerClass ) throws InstantiationException , IllegalAccessException { assert FlowController . class . isAssignableFrom ( flowControllerClass ) : "Class " + flowControllerClass . getName ( ) + " does not extend " + FlowController . class . getName ( ) ; re... | Get a FlowController instance given a FlowController class . |
9,122 | protected void addOption ( AbstractRenderAppender buffer , String type , String optionValue , String optionDisplay , int idx , String altText , char accessKey , boolean disabled ) throws JspException { ServletRequest req = pageContext . getRequest ( ) ; if ( _cr == null ) _cr = TagRenderingBase . Factory . getConstantR... | This will create a new option in the HTML . |
9,123 | public int getTargetDocumentType ( ) { if ( _rendering != TagRenderingBase . UNKNOWN_RENDERING ) return _rendering ; if ( _docType != null ) { if ( _docType . equals ( HTML_401 ) ) _rendering = TagRenderingBase . HTML_RENDERING ; else if ( _docType . equals ( HTML_401_QUIRKS ) ) _rendering = TagRenderingBase . HTML_REN... | This method will return the TagRenderBase enum value for the document type . The default value is HTML 4 . 01 . |
9,124 | public ArrayList returnErrors ( ) { if ( _containerErrors != null ) return _containerErrors . returnErrors ( ) ; ArrayList e = _errors ; _errors = null ; return e ; } | Return an ArrayList of the errors |
9,125 | public void check ( Declaration decl , AnnotationProcessorEnvironment env ) { _locale = Locale . getDefault ( ) ; if ( decl instanceof TypeDeclaration ) { Collection < ? extends MethodDeclaration > methods = ( ( TypeDeclaration ) decl ) . getMethods ( ) ; for ( MethodDeclaration method : methods ) { checkSQL ( method ,... | Invoked by the control build - time infrastructure to process a declaration of a control extension ( ie an interface annotated with |
9,126 | public static TemplatedURLFormatter getTemplatedURLFormatter ( ServletContext servletContext ) { assert servletContext != null : "The ServletContext cannot be null." ; if ( servletContext == null ) { throw new IllegalArgumentException ( "The ServletContext cannot be null." ) ; } return ( TemplatedURLFormatter ) servlet... | Gets the TemplatedURLFormatter instance from a ServletContext attribute . |
9,127 | public static void initServletContext ( ServletContext servletContext , TemplatedURLFormatter formatter ) { assert servletContext != null : "The ServletContext cannot be null." ; if ( servletContext == null ) { throw new IllegalArgumentException ( "The ServletContext cannot be null." ) ; } servletContext . setAttribute... | Adds a given TemplatedURLFormatter instance as an attribute on the ServletContext . |
9,128 | public static TemplatedURLFormatter getTemplatedURLFormatter ( ServletRequest servletRequest ) { assert servletRequest != null : "The ServletRequest cannot be null." ; if ( servletRequest == null ) { throw new IllegalArgumentException ( "The ServletRequest cannot be null." ) ; } return ( TemplatedURLFormatter ) servlet... | Gets the TemplatedURLFormatter instance from a ServletRequest attribute . |
9,129 | public static void initServletRequest ( ServletRequest servletRequest , TemplatedURLFormatter formatter ) { assert servletRequest != null : "The ServletRequest cannot be null." ; if ( servletRequest == null ) { throw new IllegalArgumentException ( "The ServletRequest cannot be null." ) ; } servletRequest . setAttribute... | Adds a given TemplatedURLFormatter instance as an attribute on the ServletRequest . |
9,130 | public int doEndTag ( ) throws JspException { Tag parent = getParent ( ) ; if ( parent instanceof CheckBoxGroup ) registerTagError ( Bundle . getString ( "Tags_CheckBoxGroupChildError" ) , null ) ; Object val = evaluateDataSource ( ) ; if ( hasErrors ( ) ) return reportAndExit ( EVAL_PAGE ) ; ByRef ref = new ByRef ( ) ... | Render the checkbox . |
9,131 | public final synchronized void create ( HttpServletRequest request , HttpServletResponse response , ServletContext servletContext ) { reinitialize ( request , response , servletContext ) ; initializeSharedFlowFields ( request ) ; if ( isNestable ( ) ) { String vrClassName = request . getParameter ( InternalConstants . ... | This is a framework method for initializing a newly - created page flow and should not normally be called directly . |
9,132 | public int getPage ( ) { int row = getRow ( ) ; assert row % getPageSize ( ) == 0 : "Invalid current row \"" + row + "\" for page size \"" + getPageSize ( ) + "\"" ; assert getPageSize ( ) > 0 ; return row / getPageSize ( ) ; } | Get the page number given the current page size and current row . The page number is zero based and should be adjusted by one when being displayed to users . |
9,133 | public void setPage ( int page ) { if ( page < 0 ) throw new IllegalArgumentException ( Bundle . getErrorString ( "PagerModel_IllegalPage" ) ) ; _currentRow = new Integer ( page * getPageSize ( ) ) ; } | Set a specific page . This will change the current row to match the given page value . |
9,134 | public int getRow ( ) { if ( _currentRow != null ) { int row = _currentRow . intValue ( ) ; if ( _dataSetSize != null && ( row > _dataSetSize . intValue ( ) ) ) row = _dataSetSize . intValue ( ) ; if ( row % getPageSize ( ) != 0 ) { int adjustedPage = row - ( row % getPageSize ( ) ) ; return adjustedPage ; } else retur... | Get the current row . If no row has been specified the default row is returned . |
9,135 | public int getRowForLastPage ( ) { Integer lastRow = internalGetLastRow ( ) ; if ( lastRow != null ) return lastRow . intValue ( ) ; else throw new IllegalStateException ( Bundle . getErrorString ( "PagerModel_CantCalculateLastPage" ) ) ; } | Get the row used to display the last page . This requires tha the data set size has been set via |
9,136 | private Integer internalGetLastRow ( ) { if ( _dataSetSize != null ) { int lastRow = getPageSize ( ) * ( int ) Math . floor ( ( double ) ( _dataSetSize . intValue ( ) - 1 ) / ( double ) getPageSize ( ) ) ; return new Integer ( lastRow ) ; } else return null ; } | Internal method used to calculate the last row given a data set size . |
9,137 | Class getMethodMapClass ( Method method ) { Class origMapClass = method . getDeclaringClass ( ) ; Class mapClass = origMapClass ; while ( mapClass != null && ! isValidMapClass ( mapClass ) ) { mapClass = mapClass . getDeclaringClass ( ) ; } if ( mapClass == null ) { mapClass = origMapClass ; } return mapClass ; } | further in the hierarchy . |
9,138 | private String getMethodArgs ( Method m ) { StringBuffer sb = new StringBuffer ( ) ; Class [ ] argTypes = m . getParameterTypes ( ) ; for ( int i = 0 ; i < argTypes . length ; i ++ ) { if ( i != 0 ) sb . append ( "," ) ; sb . append ( argTypes [ i ] . toString ( ) ) ; } return sb . toString ( ) ; } | Returns a String version of method argument lists based upon the method argument types |
9,139 | private void writeObject ( java . io . ObjectOutputStream out ) throws IOException { if ( _annotElem instanceof Class ) { _elemClass = ( Class ) _annotElem ; _elemDesc = null ; } else if ( _annotElem instanceof Field ) { Field f = ( Field ) _annotElem ; _elemClass = f . getDeclaringClass ( ) ; _elemDesc = f . getName (... | Overrides the standard Serialization writeObject method to compute and store the element information in a serializable form . |
9,140 | private void readObject ( java . io . ObjectInputStream in ) throws IOException , ClassNotFoundException { in . defaultReadObject ( ) ; if ( _elemDesc == null ) _annotElem = _elemClass ; else { int argsIndex = _elemDesc . indexOf ( '(' ) ; if ( argsIndex < 0 ) { try { _annotElem = _elemClass . getDeclaredField ( _elemD... | Overrides the standard Serialization readObject implementation to reassociated with the target AnnotatedElement after deserialization . |
9,141 | public int doStartTag ( ) throws JspException { String realName = rewriteName ( _name ) ; if ( _resultId != null ) pageContext . setAttribute ( _resultId , realName ) ; IScriptReporter scriptReporter = getScriptReporter ( ) ; ScriptRequestState srs = ScriptRequestState . getScriptRequestState ( ( HttpServletRequest ) p... | Pass the name attribute to the URLRewriter and output the returned value . Updates the HTML tag to output the mapping . |
9,142 | public boolean isAbsolute ( ) { int colonIndex = namespace . indexOf ( ':' ) ; if ( colonIndex == - 1 ) { return false ; } for ( int i = 0 ; i < colonIndex ; i ++ ) { char ch = namespace . charAt ( i ) ; if ( ! Character . isLetter ( ch ) && ! Character . isDigit ( ch ) && ch != '.' && ch != '+' && ch != '-' ) { return... | Determines if this IRI is absolute |
9,143 | public Map < String , Type > extractValues ( XAttributable element ) { Map < String , Type > values = new HashMap < String , Type > ( ) ; Map < List < String > , Type > nestedValues = extractNestedValues ( element ) ; for ( List < String > keys : nestedValues . keySet ( ) ) { if ( keys . size ( ) == 1 ) { values . put ... | Retrieves a map containing all values for all child attributes of an element . |
9,144 | public Map < List < String > , Type > extractNestedValues ( XAttributable element ) { Map < List < String > , Type > nestedValues = new HashMap < List < String > , Type > ( ) ; for ( XAttribute attr : element . getAttributes ( ) . values ( ) ) { List < String > keys = new ArrayList < String > ( ) ; keys . add ( attr . ... | Retrieves a map containing all values for all descending attributes of an element . |
9,145 | public String formatMessage ( String key , Object [ ] args ) { String msg = internalFormatMessage ( getMessage ( key ) , args ) ; return msg ; } | Format a message associated with the given key and with the given message arguments . |
9,146 | private String getDefaultMessage ( String key ) { if ( _defaultResourceBundle == null ) _defaultResourceBundle = createResourceBundle ( DEFAULT_RESOURCE_BUNDLE ) ; return _defaultResourceBundle . getString ( key ) ; } | Get a message with the given key from the default message bundle . |
9,147 | protected Object arrayFromResultSet ( ResultSet rs , int maxRows , Class arrayClass , Calendar cal ) throws SQLException { ArrayList < Object > list = new ArrayList < Object > ( ) ; Class componentType = arrayClass . getComponentType ( ) ; RowMapper rowMapper = RowMapperFactory . getRowMapper ( rs , componentType , cal... | Invoked when the return type of the method is an array type . |
9,148 | public void addParameter ( String name , Object value , String facet ) throws JspException { assert ( name != null ) : "Parameter 'name' must not be null" ; if ( _params == null ) { _params = new HashMap ( ) ; } ParamHelper . addParam ( _params , name , value ) ; } | Adds a URL parameter to the generated hyperlink . |
9,149 | public void setAlt ( String alt ) { _imageState . registerAttribute ( AbstractHtmlState . ATTR_GENERAL , HtmlConstants . ALT , alt ) ; } | Sets the alt text attribute for the HTML image tag . |
9,150 | public void setLongdesc ( String longdesc ) { _imageState . registerAttribute ( AbstractHtmlState . ATTR_GENERAL , HtmlConstants . LONGDESC , longdesc ) ; } | Sets the longdesc attribute for the HTML image tag . |
9,151 | public void setHeight ( String height ) { _imageState . registerAttribute ( AbstractHtmlState . ATTR_GENERAL , HtmlConstants . HEIGHT , height ) ; } | Sets the image height attribute for the HTML image tag . |
9,152 | public void setHspace ( String hspace ) { _imageState . registerAttribute ( AbstractHtmlState . ATTR_GENERAL , HtmlConstants . HSPACE , hspace ) ; } | Sets the the horizontal spacing attribute for the HTML image tag . |
9,153 | public void setIsmap ( String ismap ) { _imageState . registerAttribute ( AbstractHtmlState . ATTR_GENERAL , HtmlConstants . ISMAP , ismap ) ; } | Sets the server - side image map declaration for the HTML image tag . |
9,154 | public void setUsemap ( String usemap ) { _imageState . registerAttribute ( AbstractHtmlState . ATTR_GENERAL , HtmlConstants . USEMAP , usemap ) ; } | Sets the client - side image map declaration for the HTML iage tag . |
9,155 | public void setVspace ( String vspace ) { _imageState . registerAttribute ( AbstractHtmlState . ATTR_GENERAL , HtmlConstants . VSPACE , vspace ) ; } | Sets the vertical spacing around the HTML image tag . |
9,156 | private boolean setCallableStatement ( Object [ ] args ) { if ( args != null && args . length == 1 && args [ 0 ] != null ) { Class argClass = args [ 0 ] . getClass ( ) ; if ( argClass . isArray ( ) && JdbcControl . SQLParameter . class . isAssignableFrom ( argClass . getComponentType ( ) ) ) { return true ; } } return ... | Determine if this SQL will generate a callable or prepared statement . |
9,157 | private void doBatchUpdate ( PreparedStatement ps , Object [ ] args , Calendar cal ) throws SQLException { final int [ ] sqlTypes = new int [ args . length ] ; final Object [ ] objArrays = new Object [ args . length ] ; for ( int i = 0 ; i < args . length ; i ++ ) { sqlTypes [ i ] = _tmf . getSqlType ( args [ i ] . get... | Build a prepared statement for a batch update . |
9,158 | private void loadSQLAnnotationStatmentOptions ( ControlBeanContext context , Method method ) { final JdbcControl . SQL methodSQL = ( JdbcControl . SQL ) context . getMethodPropertySet ( method , JdbcControl . SQL . class ) ; _batchUpdate = methodSQL . batchUpdate ( ) ; _getGeneratedKeys = methodSQL . getGeneratedKeys (... | Load element values from the SQL annotation which apply to Statements . |
9,159 | private void checkJdbcSupport ( DatabaseMetaData metaData ) throws SQLException { if ( _getGeneratedKeys && ! metaData . supportsGetGeneratedKeys ( ) ) { throw new ControlException ( "The database does not support getGeneratedKeys." ) ; } if ( _batchUpdate && ! metaData . supportsBatchUpdates ( ) ) { throw new ControlE... | Checks that all statement options specified in annotation are supported by the database . |
9,160 | private void initTypeParameterBindings ( ) { DeclaredType fieldType = ( DeclaredType ) _fieldDecl . getType ( ) ; Iterator < TypeMirror > paramBoundIter = fieldType . getActualTypeArguments ( ) . iterator ( ) ; TypeDeclaration intfDecl = ( TypeDeclaration ) _controlIntf . getTypeDeclaration ( ) ; Iterator < TypeParamet... | Computes the binding from any formal type parameters declared on the control interface to bound types on the field declaration . |
9,161 | public AptControlInterface getControlInterface ( ) { if ( _controlIntf == null ) { _controlIntf = initControlInterface ( ) ; if ( _controlIntf != null ) initTypeParameterBindings ( ) ; } return _controlIntf ; } | Returns the ControlInterface associated with this event field |
9,162 | public void addEventAdaptor ( AptEventSet eventSet , EventAdaptor eventAdaptor ) { assert ! _eventAdaptors . containsKey ( eventSet ) ; _eventAdaptors . put ( eventSet , eventAdaptor ) ; } | Adds a EventAdaptor for a particular EventSet |
9,163 | public void setSummary ( String summary ) { _tableState . registerAttribute ( AbstractHtmlState . ATTR_GENERAL , HtmlConstants . SUMMARY , summary ) ; } | Sets the summary attribute for the HTML table tag . |
9,164 | public void setWidth ( String width ) { _tableState . registerAttribute ( AbstractHtmlState . ATTR_GENERAL , HtmlConstants . WIDTH , width ) ; } | Sets the width attribute for the HTML table tag . |
9,165 | public void setBorder ( String border ) { _tableState . registerAttribute ( AbstractHtmlState . ATTR_GENERAL , HtmlConstants . BORDER , border ) ; } | Sets the border attribute for the HTML table tag . |
9,166 | public void setFrame ( String frame ) { _tableState . registerAttribute ( AbstractHtmlState . ATTR_GENERAL , HtmlConstants . FRAME , frame ) ; } | Sets the frame attribute for the HTML table tag . |
9,167 | public void setRules ( String rules ) { _tableState . registerAttribute ( AbstractHtmlState . ATTR_GENERAL , HtmlConstants . RULES , rules ) ; } | Sets the rules attribute for the HTML table tag . |
9,168 | public void setCellspacing ( String cellspacing ) { _tableState . registerAttribute ( AbstractHtmlState . ATTR_GENERAL , HtmlConstants . CELLSPACING , cellspacing ) ; } | Sets the cellspacing attribute for the HTML table tag . |
9,169 | public void setCellpadding ( String cellpadding ) { _tableState . registerAttribute ( AbstractHtmlState . ATTR_GENERAL , HtmlConstants . CELLPADDING , cellpadding ) ; } | Sets the cellpadding attribute for the HTML table tag . |
9,170 | public Iterator mapToResultType ( ControlBeanContext context , Method m , ResultSet resultSet , Calendar cal ) { return new ResultSetIterator ( context , m , resultSet , cal ) ; } | Map a ResultSet to an object type Type of object to interate over is defined in the SQL annotation for the method . |
9,171 | public boolean containsContextsWithACModel ( AbstractACModel acModel ) { for ( ProcessContext context : getComponents ( ) ) { if ( context . getACModel ( ) . equals ( acModel ) ) { return true ; } } return false ; } | Checks if there are contexts whose access control model equals the given model . |
9,172 | public List < E > getEntriesForActivities ( Set < String > activities ) { Validate . noNullElements ( activities ) ; List < E > result = new ArrayList < > ( ) ; for ( E entry : logEntries ) { if ( activities . contains ( entry . getActivity ( ) ) ) { result . add ( entry ) ; } } return result ; } | Returns all log entries of this trace whose activities are in the given activity set . |
9,173 | public List < XLog > parse ( InputStream is ) throws Exception { BufferedInputStream bis = new BufferedInputStream ( is ) ; XesXmlHandler handler = new XesXmlHandler ( ) ; SAXParserFactory parserFactory = SAXParserFactory . newInstance ( ) ; parserFactory . setNamespaceAware ( false ) ; SAXParser parser = parserFactory... | Parses a log from the given input stream which is supposed to deliver an XES log in XML representation . |
9,174 | protected PageContext getPageContext ( ) { JspContext ctxt = getJspContext ( ) ; if ( ctxt instanceof PageContext ) return ( PageContext ) ctxt ; assert ( false ) : "The JspContext was not a PageContext" ; logger . error ( "The JspContext was not a PageContext" ) ; return null ; } | This method will attempt to cast the JspContext into a PageContext . If this fails it will log an exception . |
9,175 | protected IScriptReporter getHtmlTag ( ServletRequest req ) { Html html = ( Html ) req . getAttribute ( Html . HTML_TAG_ID ) ; if ( html != null && html instanceof IScriptReporter ) return ( IScriptReporter ) html ; return null ; } | This method will return the scriptReporter that is represented by the HTML tag . |
9,176 | public TypeInstance addReturnAction ( String returnActionName , AnnotationInstance annotation , TypeDeclaration outerType ) { TypeInstance formBeanType = CompilerUtils . getTypeInstance ( annotation , OUTPUT_FORM_BEAN_TYPE_ATTR , true ) ; if ( formBeanType == null ) { String memberFieldName = CompilerUtils . getString ... | Add a return - action from an annotation . |
9,177 | protected void registerTagError ( String message , Throwable e ) throws JspException { System . err . println ( "Error in rendering tree:" + message ) ; logger . error ( message , e ) ; } | Errors during rendering will call through this method . During the XmlHttpRequest these will just be logged and we will go on . |
9,178 | protected void addGlobalAttributes ( SXTag parent , String scope , List < XAttribute > attributes ) throws IOException { if ( attributes . size ( ) > 0 ) { SXTag guaranteedNode = parent . addChildNode ( "global" ) ; guaranteedNode . addAttribute ( "scope" , scope ) ; addAttributes ( guaranteedNode , attributes ) ; } } | Helper method for defining global attributes on a given scope . |
9,179 | protected void addAttributes ( SXTag tag , Collection < XAttribute > attributes ) throws IOException { for ( XAttribute attribute : attributes ) { SXTag attributeTag ; if ( attribute instanceof XAttributeList ) { attributeTag = tag . addChildNode ( "list" ) ; attributeTag . addAttribute ( "key" , attribute . getKey ( )... | Helper method adds the given collection of attributes to the given Tag . |
9,180 | public synchronized boolean consolidate ( ) throws IOException { if ( isTainted ( ) ) { XSequentialEventBuffer nBuffer = new XSequentialEventBuffer ( buffer . getProvider ( ) , this . attributeMapSerializer ) ; int overflowIndex = 0 ; int fileBufferIndex = 0 ; for ( int i = 0 ; i < size ; i ++ ) { if ( overflowIndex < ... | Consolidates this fast event list . Consolidation implies that all overflow and skipping data structures are freed and the buffered representation is brought completely in - line with the virtual current contents of the list . |
9,181 | public synchronized XEvent get ( int index ) throws IndexOutOfBoundsException , IOException { if ( index < 0 || index >= size ) { throw new IndexOutOfBoundsException ( ) ; } int bufferIndex = index ; for ( int i = 0 ; i < overflowSize ; i ++ ) { if ( overflowIndices [ i ] == index ) { return overflowEntries [ i ] ; } e... | Retrieves an event at a specific index in the list . |
9,182 | public synchronized void insert ( XEvent event , int index ) throws IndexOutOfBoundsException , IOException { if ( index < 0 || index > size ) { throw new IndexOutOfBoundsException ( ) ; } if ( index == size ) { append ( event ) ; return ; } size ++ ; overflowSize ++ ; for ( int i = overflowSize - 2 ; i >= 0 ; i -- ) {... | Inserts an event at a given index into the list . |
9,183 | public synchronized XEvent remove ( int index ) throws IndexOutOfBoundsException , IOException { XEvent removed = null ; int smallerOverflow = 0 ; for ( int i = 0 ; i < overflowSize ; i ++ ) { if ( overflowIndices [ i ] == index ) { removed = overflowEntries [ i ] ; } else if ( overflowIndices [ i ] > index ) { overflo... | Removes the event at the given index from this list . |
9,184 | public synchronized XEvent replace ( XEvent event , int index ) throws IndexOutOfBoundsException , IOException { XEvent replaced = null ; int smallerOverflow = 0 ; for ( int i = 0 ; i < overflowSize ; i ++ ) { if ( overflowIndices [ i ] == index ) { replaced = overflowEntries [ i ] ; overflowEntries [ i ] = event ; ret... | Replaces the event at the given index with another event . |
9,185 | protected Object resolveBeanInstance ( ) { Object fromHandle = resolveBeanInstanceFromHandle ( ) ; if ( fromHandle != null ) return fromHandle ; try { Method createMethod = _homeInterface . getMethod ( "create" , new Class [ ] { } ) ; Object beanInstance = createMethod . invoke ( _homeInstance , ( Object [ ] ) null ) ;... | Implements auto - create semantics for Session beans . |
9,186 | protected void filter ( String value , AbstractRenderAppender writer , boolean markupHTMLSpaceReturn ) { if ( value . equals ( " " ) ) { writer . append ( " " ) ; return ; } HtmlUtils . filter ( value , writer , markupHTMLSpaceReturn ) ; } | Filter the specified string for characters that are senstive to HTML interpreters returning the string with these characters replaced by the corresponding character entities . |
9,187 | public void addParameter ( String name , String value ) { if ( _additionalParameters == null ) { _additionalParameters = new HashMap ( ) ; } _additionalParameters . put ( name , value ) ; } | Add a parameter to the request . |
9,188 | public String getListenScopeParameter ( String paramName ) { String retVal = null ; if ( _listenScopes != null ) { for ( int i = 0 , len = _listenScopes . size ( ) ; retVal == null && i < len ; ++ i ) { String key = ScopedServletUtils . getScopedName ( paramName , _listenScopes . get ( i ) ) ; retVal = getRequest ( ) .... | Get the parameter from the listen scoped requests |
9,189 | public void addListenScope ( Object scopeKey ) { assert scopeKey != null ; if ( _listenScopes == null ) { _listenScopes = new ArrayList ( ) ; } _listenScopes . add ( scopeKey ) ; } | Adds a scope to listen to . This scope will see all request parameters from a ScopedRequest of the given scope . |
9,190 | public void persistAttributes ( ) { String attrName = getScopedName ( STORED_ATTRS_ATTR ) ; getSession ( ) . setAttribute ( attrName , _scopedContainer . getSerializableAttrs ( ) ) ; } | Stores the current map of request attributes in the Session . |
9,191 | public void restoreAttributes ( ) { String attrName = getScopedName ( STORED_ATTRS_ATTR ) ; Map savedAttrs = ( Map ) getSession ( ) . getAttribute ( attrName ) ; if ( savedAttrs != null ) { setAttributeMap ( savedAttrs ) ; } } | Restores the map of request attributes from a map saved in the Session . |
9,192 | PageFlowController popUntil ( HttpServletRequest request , Class stopAt , boolean onlyIfPresent ) { if ( onlyIfPresent && lastIndexOf ( stopAt ) == - 1 ) { return null ; } while ( ! isEmpty ( ) ) { PageFlowController popped = pop ( request ) . getPageFlow ( ) ; if ( popped . getClass ( ) . equals ( stopAt ) ) { if ( is... | Pop page flows from the nesting stack until one of the given type is found . |
9,193 | public void push ( PageFlowController pageFlow , HttpServletRequest request ) { ActionInterceptorContext interceptorContext = ActionInterceptorContext . getActiveContext ( request , true ) ; if ( interceptorContext != null ) { ActionInterceptor interceptor = interceptorContext . getOverridingActionInterceptor ( ) ; Int... | Push a page flow onto the stack of nested page flows in the session . |
9,194 | public PushedPageFlow pop ( HttpServletRequest request ) { PushedPageFlow ppf = ( PushedPageFlow ) _stack . pop ( ) ; PageFlowController pfc = ppf . getPageFlow ( ) ; pfc . setIsOnNestingStack ( false ) ; if ( request != null ) { ServletContext servletContext = getServletContext ( ) ; pfc . reinitialize ( request , nul... | Pop the most recently - pushed page flow from the stack of nested page flows in the session . |
9,195 | Stack getLegacyStack ( ) { Stack ret = new Stack ( ) ; for ( int i = 0 ; i < _stack . size ( ) ; ++ i ) { ret . push ( ( ( PushedPageFlow ) _stack . get ( i ) ) . getPageFlow ( ) ) ; } return ret ; } | Get a stack of PageFlowControllers not of PushedPageFlows . |
9,196 | protected synchronized XAttributeMap deserialize ( ) throws IOException { if ( this . size == 0 ) { return new XAttributeMapLazyImpl < XAttributeMapImpl > ( XAttributeMapImpl . class ) ; } else { if ( cacheMap != null && cacheMap . get ( ) != null ) { return cacheMap . get ( ) ; } else { storage . seek ( 0 ) ; XAttribu... | Retrieves a quick - access representation of this attribute map for actual usage . De - buffers the attribute map and creates an in - memory representation which should be discarded after use to free memory . |
9,197 | protected synchronized void serialize ( XAttributeMap map ) throws IOException { storage . seek ( 0 ) ; serializer . serialize ( map , storage ) ; cacheMap = new WeakReference < XAttributeMap > ( map ) ; this . size = map . size ( ) ; map = null ; } | Serializes the given attribute map to a disk - buffered representation . |
9,198 | protected Set < OWLAnnotation > mergeAnnos ( Set < OWLAnnotation > annos ) { Set < OWLAnnotation > merged = new HashSet < > ( annos ) ; merged . addAll ( annotations ) ; return merged ; } | A convenience method for implementation that returns a set containing the annotations on this axiom plus the annotations in the specified set . |
9,199 | public Vector add ( Vector vec ) { x += vec . x ; y += vec . y ; z += vec . z ; return this ; } | Adds a vector to this one |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.