id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
146,900
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/TextArea.java
TextArea.setAttribute
public void setAttribute(String name, String value, String facet) throws JspException { if (name != null) { if (name.equals(DISABLED)) { setDisabled(Boolean.parseBoolean(value)); return; } else if (name.equals(READONLY)) { ...
java
public void setAttribute(String name, String value, String facet) throws JspException { if (name != null) { if (name.equals(DISABLED)) { setDisabled(Boolean.parseBoolean(value)); return; } else if (name.equals(READONLY)) { ...
[ "public", "void", "setAttribute", "(", "String", "name", ",", "String", "value", ",", "String", "facet", ")", "throws", "JspException", "{", "if", "(", "name", "!=", "null", ")", "{", "if", "(", "name", ".", "equals", "(", "DISABLED", ")", ")", "{", ...
Base support for the attribute tag. @param name The name of the attribute. This value may not be null or the empty string. @param value The value of the attribute. This may contain an expression. @param facet The name of a facet to which the attribute will be applied. This is optional. @throws JspException A JspExc...
[ "Base", "support", "for", "the", "attribute", "tag", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/TextArea.java#L79-L102
146,901
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/TextArea.java
TextArea.doEndTag
public int doEndTag() throws JspException { ServletRequest req = pageContext.getRequest(); Object textObject = null; // Get the value of the data source. The object will not be null. Object val = evaluateDataSource(); textObject = (val != null) ? val : ""; assert(te...
java
public int doEndTag() throws JspException { ServletRequest req = pageContext.getRequest(); Object textObject = null; // Get the value of the data source. The object will not be null. Object val = evaluateDataSource(); textObject = (val != null) ? val : ""; assert(te...
[ "public", "int", "doEndTag", "(", ")", "throws", "JspException", "{", "ServletRequest", "req", "=", "pageContext", ".", "getRequest", "(", ")", ";", "Object", "textObject", "=", "null", ";", "// Get the value of the data source. The object will not be null.", "Object",...
Render the TextArea. @throws JspException if a JSP exception has occurred
[ "Render", "the", "TextArea", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/TextArea.java#L159-L221
146,902
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/core/urltemplates/URLTemplatesFactory.java
URLTemplatesFactory.getURLTemplatesFactory
public static URLTemplatesFactory getURLTemplatesFactory( ServletContext servletContext ) { assert servletContext != null : "The ServletContext cannot be null."; if ( servletContext == null ) { throw new IllegalArgumentException( "The ServletContext cannot be null." ); }...
java
public static URLTemplatesFactory getURLTemplatesFactory( ServletContext servletContext ) { assert servletContext != null : "The ServletContext cannot be null."; if ( servletContext == null ) { throw new IllegalArgumentException( "The ServletContext cannot be null." ); }...
[ "public", "static", "URLTemplatesFactory", "getURLTemplatesFactory", "(", "ServletContext", "servletContext", ")", "{", "assert", "servletContext", "!=", "null", ":", "\"The ServletContext cannot be null.\"", ";", "if", "(", "servletContext", "==", "null", ")", "{", "th...
Gets the URLTemplatesFactory instance from a ServletContext attribute. @param servletContext the current ServletContext. @return the URLTemplatesFactory instance from the ServletContext.
[ "Gets", "the", "URLTemplatesFactory", "instance", "from", "a", "ServletContext", "attribute", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/core/urltemplates/URLTemplatesFactory.java#L64-L74
146,903
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/core/urltemplates/URLTemplatesFactory.java
URLTemplatesFactory.initServletContext
public static void initServletContext( ServletContext servletContext, URLTemplatesFactory templatesFactory ) { assert servletContext != null : "The ServletContext cannot be null."; if ( servletContext == null ) { throw new IllegalArgumentException( "The ServletContext cannot be ...
java
public static void initServletContext( ServletContext servletContext, URLTemplatesFactory templatesFactory ) { assert servletContext != null : "The ServletContext cannot be null."; if ( servletContext == null ) { throw new IllegalArgumentException( "The ServletContext cannot be ...
[ "public", "static", "void", "initServletContext", "(", "ServletContext", "servletContext", ",", "URLTemplatesFactory", "templatesFactory", ")", "{", "assert", "servletContext", "!=", "null", ":", "\"The ServletContext cannot be null.\"", ";", "if", "(", "servletContext", ...
Adds a given URLTemplatesFactory instance as an attribute on the ServletContext. @param servletContext the current ServletContext. @param templatesFactory the URLTemplatesFactory instance to add as an attribute of the context
[ "Adds", "a", "given", "URLTemplatesFactory", "instance", "as", "an", "attribute", "on", "the", "ServletContext", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/core/urltemplates/URLTemplatesFactory.java#L82-L92
146,904
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/core/urltemplates/URLTemplatesFactory.java
URLTemplatesFactory.getURLTemplatesFactory
public static URLTemplatesFactory getURLTemplatesFactory(ServletRequest servletRequest) { assert servletRequest != null : "The ServletRequest cannot be null."; if (servletRequest == null) { throw new IllegalArgumentException("The ServletRequest cannot be null."); } retu...
java
public static URLTemplatesFactory getURLTemplatesFactory(ServletRequest servletRequest) { assert servletRequest != null : "The ServletRequest cannot be null."; if (servletRequest == null) { throw new IllegalArgumentException("The ServletRequest cannot be null."); } retu...
[ "public", "static", "URLTemplatesFactory", "getURLTemplatesFactory", "(", "ServletRequest", "servletRequest", ")", "{", "assert", "servletRequest", "!=", "null", ":", "\"The ServletRequest cannot be null.\"", ";", "if", "(", "servletRequest", "==", "null", ")", "{", "th...
Gets the URLTemplatesFactory instance from a ServletRequest attribute. @param servletRequest the current ServletRequest. @return the URLTemplatesFactory instance from the ServletRequest.
[ "Gets", "the", "URLTemplatesFactory", "instance", "from", "a", "ServletRequest", "attribute", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/core/urltemplates/URLTemplatesFactory.java#L100-L109
146,905
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/core/urltemplates/URLTemplatesFactory.java
URLTemplatesFactory.initServletRequest
public static void initServletRequest(ServletRequest servletRequest, URLTemplatesFactory templatesFactory) { assert servletRequest != null : "The ServletRequest cannot be null."; if (servletRequest == null) { throw new IllegalArgumentException("The ServletRequest cannot be null."); ...
java
public static void initServletRequest(ServletRequest servletRequest, URLTemplatesFactory templatesFactory) { assert servletRequest != null : "The ServletRequest cannot be null."; if (servletRequest == null) { throw new IllegalArgumentException("The ServletRequest cannot be null."); ...
[ "public", "static", "void", "initServletRequest", "(", "ServletRequest", "servletRequest", ",", "URLTemplatesFactory", "templatesFactory", ")", "{", "assert", "servletRequest", "!=", "null", ":", "\"The ServletRequest cannot be null.\"", ";", "if", "(", "servletRequest", ...
Adds a given URLTemplatesFactory instance as an attribute on the ServletRequest. @param servletRequest the current ServletRequest. @param templatesFactory the URLTemplatesFactory instance to add as an attribute of the request
[ "Adds", "a", "given", "URLTemplatesFactory", "instance", "as", "an", "attribute", "on", "the", "ServletRequest", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/core/urltemplates/URLTemplatesFactory.java#L117-L126
146,906
matthewhorridge/owlapi-gwt
owlapi-gwt-client-side-emul/src/main/java/uk/ac/manchester/cs/owl/owlapi/OWLEntityCollectionContainerCollector.java
OWLEntityCollectionContainerCollector.reset
public void reset(Set<OWLEntity> toReturn) { objects = toReturn; if (anonymousIndividuals != null) { verifyNotNull(anonymousIndividuals).clear(); } }
java
public void reset(Set<OWLEntity> toReturn) { objects = toReturn; if (anonymousIndividuals != null) { verifyNotNull(anonymousIndividuals).clear(); } }
[ "public", "void", "reset", "(", "Set", "<", "OWLEntity", ">", "toReturn", ")", "{", "objects", "=", "toReturn", ";", "if", "(", "anonymousIndividuals", "!=", "null", ")", "{", "verifyNotNull", "(", "anonymousIndividuals", ")", ".", "clear", "(", ")", ";", ...
XXX not in the interface
[ "XXX", "not", "in", "the", "interface" ]
7ab975fb6cef3c8947099983551672a3b5d4e2fd
https://github.com/matthewhorridge/owlapi-gwt/blob/7ab975fb6cef3c8947099983551672a3b5d4e2fd/owlapi-gwt-client-side-emul/src/main/java/uk/ac/manchester/cs/owl/owlapi/OWLEntityCollectionContainerCollector.java#L83-L88
146,907
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/PageFlowControlContainerFactory.java
PageFlowControlContainerFactory.getSessionVar
private static Object getSessionVar(HttpServletRequest request, ServletContext servletContext, String name) { StorageHandler sh = Handlers.get( servletContext ).getStorageHandler(); HttpServletRequest unwrappedRequest = PageFlowUtils.unwrapMultipart( request ); RequestContext rc = new Reque...
java
private static Object getSessionVar(HttpServletRequest request, ServletContext servletContext, String name) { StorageHandler sh = Handlers.get( servletContext ).getStorageHandler(); HttpServletRequest unwrappedRequest = PageFlowUtils.unwrapMultipart( request ); RequestContext rc = new Reque...
[ "private", "static", "Object", "getSessionVar", "(", "HttpServletRequest", "request", ",", "ServletContext", "servletContext", ",", "String", "name", ")", "{", "StorageHandler", "sh", "=", "Handlers", ".", "get", "(", "servletContext", ")", ".", "getStorageHandler",...
This is a generic routine that will retrieve a value from the Session through the StorageHandler. @param request @param servletContext @param name The name of the value to be retrieved @return The requested value from the session
[ "This", "is", "a", "generic", "routine", "that", "will", "retrieve", "a", "value", "from", "the", "Session", "through", "the", "StorageHandler", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/PageFlowControlContainerFactory.java#L59-L67
146,908
matthewhorridge/owlapi-gwt
owlapi-gwt-client-side-emul/src/main/java/org/semanticweb/owlapi/io/XMLUtils.java
XMLUtils.isXMLNameStartCharacter
public static boolean isXMLNameStartCharacter(int codePoint) { return codePoint == ':' || codePoint >= 'A' && codePoint <= 'Z' || codePoint == '_' || codePoint >= 'a' && codePoint <= 'z' || codePoint >= 0xC0 && codePoint <= 0xD6 || codePoint >= 0xD8 && codePoint <= 0xF6 || codePoint >= 0...
java
public static boolean isXMLNameStartCharacter(int codePoint) { return codePoint == ':' || codePoint >= 'A' && codePoint <= 'Z' || codePoint == '_' || codePoint >= 'a' && codePoint <= 'z' || codePoint >= 0xC0 && codePoint <= 0xD6 || codePoint >= 0xD8 && codePoint <= 0xF6 || codePoint >= 0...
[ "public", "static", "boolean", "isXMLNameStartCharacter", "(", "int", "codePoint", ")", "{", "return", "codePoint", "==", "'", "'", "||", "codePoint", ">=", "'", "'", "&&", "codePoint", "<=", "'", "'", "||", "codePoint", "==", "'", "'", "||", "codePoint", ...
Determines if a character is an XML name start character. @param codePoint The code point of the character to be tested. For UTF-16 characters the code point corresponds to the value of the char that represents the character. @return {@code true} if {@code codePoint} is an XML name start character, otherwise {@code fa...
[ "Determines", "if", "a", "character", "is", "an", "XML", "name", "start", "character", "." ]
7ab975fb6cef3c8947099983551672a3b5d4e2fd
https://github.com/matthewhorridge/owlapi-gwt/blob/7ab975fb6cef3c8947099983551672a3b5d4e2fd/owlapi-gwt-client-side-emul/src/main/java/org/semanticweb/owlapi/io/XMLUtils.java#L55-L63
146,909
matthewhorridge/owlapi-gwt
owlapi-gwt-client-side-emul/src/main/java/org/semanticweb/owlapi/io/XMLUtils.java
XMLUtils.isXMLNameChar
public static boolean isXMLNameChar(int codePoint) { return isXMLNameStartCharacter(codePoint) || codePoint == '-' || codePoint == '.' || codePoint >= '0' && codePoint <= '9' || codePoint == 0xB7 || codePoint >= 0x0300 && codePoint <= 0x036F || codePoint >= 0x203F && codePoint <= 0x2040;...
java
public static boolean isXMLNameChar(int codePoint) { return isXMLNameStartCharacter(codePoint) || codePoint == '-' || codePoint == '.' || codePoint >= '0' && codePoint <= '9' || codePoint == 0xB7 || codePoint >= 0x0300 && codePoint <= 0x036F || codePoint >= 0x203F && codePoint <= 0x2040;...
[ "public", "static", "boolean", "isXMLNameChar", "(", "int", "codePoint", ")", "{", "return", "isXMLNameStartCharacter", "(", "codePoint", ")", "||", "codePoint", "==", "'", "'", "||", "codePoint", "==", "'", "'", "||", "codePoint", ">=", "'", "'", "&&", "c...
Determines if a character is an XML name character. @param codePoint The code point of the character to be tested. For UTF-8 and UTF-16 characters the code point corresponds to the value of the char that represents the character. @return {@code true} if {@code codePoint} is an XML name start character, otherwise {@cod...
[ "Determines", "if", "a", "character", "is", "an", "XML", "name", "character", "." ]
7ab975fb6cef3c8947099983551672a3b5d4e2fd
https://github.com/matthewhorridge/owlapi-gwt/blob/7ab975fb6cef3c8947099983551672a3b5d4e2fd/owlapi-gwt-client-side-emul/src/main/java/org/semanticweb/owlapi/io/XMLUtils.java#L75-L79
146,910
matthewhorridge/owlapi-gwt
owlapi-gwt-client-side-emul/src/main/java/org/semanticweb/owlapi/io/XMLUtils.java
XMLUtils.getNCNameSuffixIndex
public static int getNCNameSuffixIndex(CharSequence s) { // identify bnode labels and do not try to split them if (s.length() > 1 && s.charAt(0) == '_' && s.charAt(1) == ':') { return -1; } int index = -1; for (int i = s.length() - 1; i > -1; i--) { if (!C...
java
public static int getNCNameSuffixIndex(CharSequence s) { // identify bnode labels and do not try to split them if (s.length() > 1 && s.charAt(0) == '_' && s.charAt(1) == ':') { return -1; } int index = -1; for (int i = s.length() - 1; i > -1; i--) { if (!C...
[ "public", "static", "int", "getNCNameSuffixIndex", "(", "CharSequence", "s", ")", "{", "// identify bnode labels and do not try to split them", "if", "(", "s", ".", "length", "(", ")", ">", "1", "&&", "s", ".", "charAt", "(", "0", ")", "==", "'", "'", "&&", ...
Gets the index of the longest NCName that is the suffix of a character sequence. @param s The character sequence. @return The index of the longest suffix of the specified character sequence {@code s} that is an NCName, or -1 if the character sequence {@code s} does not have a suffix that is an NCName.
[ "Gets", "the", "index", "of", "the", "longest", "NCName", "that", "is", "the", "suffix", "of", "a", "character", "sequence", "." ]
7ab975fb6cef3c8947099983551672a3b5d4e2fd
https://github.com/matthewhorridge/owlapi-gwt/blob/7ab975fb6cef3c8947099983551672a3b5d4e2fd/owlapi-gwt-client-side-emul/src/main/java/org/semanticweb/owlapi/io/XMLUtils.java#L204-L222
146,911
matthewhorridge/owlapi-gwt
owlapi-gwt-client-side-emul/src/main/java/org/semanticweb/owlapi/io/XMLUtils.java
XMLUtils.getNCNameSuffix
@Nullable public static String getNCNameSuffix(CharSequence s) { if (s.length() > 1 && s.charAt(0) == '_' && s.charAt(1) == ':') { return null; } int localPartStartIndex = getNCNameSuffixIndex(s); if (localPartStartIndex > -1) { return s.toString().substring(l...
java
@Nullable public static String getNCNameSuffix(CharSequence s) { if (s.length() > 1 && s.charAt(0) == '_' && s.charAt(1) == ':') { return null; } int localPartStartIndex = getNCNameSuffixIndex(s); if (localPartStartIndex > -1) { return s.toString().substring(l...
[ "@", "Nullable", "public", "static", "String", "getNCNameSuffix", "(", "CharSequence", "s", ")", "{", "if", "(", "s", ".", "length", "(", ")", ">", "1", "&&", "s", ".", "charAt", "(", "0", ")", "==", "'", "'", "&&", "s", ".", "charAt", "(", "1", ...
Get the longest NCName that is a suffix of a character sequence. @param s The character sequence. @return The String which is the longest suffix of the character sequence {@code s} that is an NCName, or {@code null} if the character sequence {@code s} does not have a suffix that is an NCName.
[ "Get", "the", "longest", "NCName", "that", "is", "a", "suffix", "of", "a", "character", "sequence", "." ]
7ab975fb6cef3c8947099983551672a3b5d4e2fd
https://github.com/matthewhorridge/owlapi-gwt/blob/7ab975fb6cef3c8947099983551672a3b5d4e2fd/owlapi-gwt-client-side-emul/src/main/java/org/semanticweb/owlapi/io/XMLUtils.java#L233-L244
146,912
matthewhorridge/owlapi-gwt
owlapi-gwt-client-side-emul/src/main/java/org/semanticweb/owlapi/io/XMLUtils.java
XMLUtils.getNCNamePrefix
@Nonnull public static String getNCNamePrefix(CharSequence s) { if (s.length() > 1 && s.charAt(0) == '_' && s.charAt(1) == ':') { return s.toString(); } int localPartStartIndex = getNCNameSuffixIndex(s); if (localPartStartIndex > -1) { return s.toString().subs...
java
@Nonnull public static String getNCNamePrefix(CharSequence s) { if (s.length() > 1 && s.charAt(0) == '_' && s.charAt(1) == ':') { return s.toString(); } int localPartStartIndex = getNCNameSuffixIndex(s); if (localPartStartIndex > -1) { return s.toString().subs...
[ "@", "Nonnull", "public", "static", "String", "getNCNamePrefix", "(", "CharSequence", "s", ")", "{", "if", "(", "s", ".", "length", "(", ")", ">", "1", "&&", "s", ".", "charAt", "(", "0", ")", "==", "'", "'", "&&", "s", ".", "charAt", "(", "1", ...
utility to get the part of a charsequence that is not the NCName fragment. @param s the charsequence to split @return the prefix split at the last non-ncname character, or the whole input if no ncname is found
[ "utility", "to", "get", "the", "part", "of", "a", "charsequence", "that", "is", "not", "the", "NCName", "fragment", "." ]
7ab975fb6cef3c8947099983551672a3b5d4e2fd
https://github.com/matthewhorridge/owlapi-gwt/blob/7ab975fb6cef3c8947099983551672a3b5d4e2fd/owlapi-gwt-client-side-emul/src/main/java/org/semanticweb/owlapi/io/XMLUtils.java#L255-L266
146,913
matthewhorridge/owlapi-gwt
owlapi-gwt-client-side-emul/src/main/java/org/semanticweb/owlapi/io/XMLUtils.java
XMLUtils.escapeXML
@Nonnull public static String escapeXML(CharSequence s) { // double quote -- quot // ampersand -- amp // less than -- lt // greater than -- gt // apostrophe -- apos StringBuilder sb = new StringBuilder(s.length() * 2); for (int i = 0; i < s.length();) { ...
java
@Nonnull public static String escapeXML(CharSequence s) { // double quote -- quot // ampersand -- amp // less than -- lt // greater than -- gt // apostrophe -- apos StringBuilder sb = new StringBuilder(s.length() * 2); for (int i = 0; i < s.length();) { ...
[ "@", "Nonnull", "public", "static", "String", "escapeXML", "(", "CharSequence", "s", ")", "{", "// double quote -- quot", "// ampersand -- amp", "// less than -- lt", "// greater than -- gt", "// apostrophe -- apos", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ...
Escapes a character sequence so that it is valid XML. @param s The character sequence. @return The escaped version of the character sequence.
[ "Escapes", "a", "character", "sequence", "so", "that", "it", "is", "valid", "XML", "." ]
7ab975fb6cef3c8947099983551672a3b5d4e2fd
https://github.com/matthewhorridge/owlapi-gwt/blob/7ab975fb6cef3c8947099983551672a3b5d4e2fd/owlapi-gwt-client-side-emul/src/main/java/org/semanticweb/owlapi/io/XMLUtils.java#L275-L301
146,914
matthewhorridge/owlapi-gwt
owlapi-gwt-client-side-emul/src/main/java/org/semanticweb/owlapi/io/XMLUtils.java
XMLUtils.escapeXML
public static StringBuilder escapeXML(char[] chars, int start, int count, StringBuilder destination) { // double quote -- quot // ampersand -- amp // less than -- lt // greater than -- gt // apostrophe -- apos for (int i = 0; i < count; i++) { char codePoint =...
java
public static StringBuilder escapeXML(char[] chars, int start, int count, StringBuilder destination) { // double quote -- quot // ampersand -- amp // less than -- lt // greater than -- gt // apostrophe -- apos for (int i = 0; i < count; i++) { char codePoint =...
[ "public", "static", "StringBuilder", "escapeXML", "(", "char", "[", "]", "chars", ",", "int", "start", ",", "int", "count", ",", "StringBuilder", "destination", ")", "{", "// double quote -- quot", "// ampersand -- amp", "// less than -- lt", "// greater than -- gt", ...
Escapes a subset of a char sequence so that it is valid XML. Escaped or unchanged characters are added to destination. @param chars chars to check @param start start index (inclusive) @param count number of characters @param destination destination for escaped chars @return The modified destination.
[ "Escapes", "a", "subset", "of", "a", "char", "sequence", "so", "that", "it", "is", "valid", "XML", ".", "Escaped", "or", "unchanged", "characters", "are", "added", "to", "destination", "." ]
7ab975fb6cef3c8947099983551672a3b5d4e2fd
https://github.com/matthewhorridge/owlapi-gwt/blob/7ab975fb6cef3c8947099983551672a3b5d4e2fd/owlapi-gwt-client-side-emul/src/main/java/org/semanticweb/owlapi/io/XMLUtils.java#L317-L340
146,915
matthewhorridge/owlapi-gwt
owlapi-gwt-client-side-emul/src/main/java/org/semanticweb/owlapi/io/XMLUtils.java
XMLUtils.escapeXML
public static void escapeXML(StringBuilder sb) { // double quote -- quot // ampersand -- amp // less than -- lt // greater than -- gt // apostrophe -- apos for (int i = 0; i < sb.length();) { int codePoint = Character.codePointAt(sb, i); int length...
java
public static void escapeXML(StringBuilder sb) { // double quote -- quot // ampersand -- amp // less than -- lt // greater than -- gt // apostrophe -- apos for (int i = 0; i < sb.length();) { int codePoint = Character.codePointAt(sb, i); int length...
[ "public", "static", "void", "escapeXML", "(", "StringBuilder", "sb", ")", "{", "// double quote -- quot", "// ampersand -- amp", "// less than -- lt", "// greater than -- gt", "// apostrophe -- apos", "for", "(", "int", "i", "=", "0", ";", "i", "<", "sb", ".", "leng...
Escapes a string builder so that it is valid XML. @param sb The string builder to escape.
[ "Escapes", "a", "string", "builder", "so", "that", "it", "is", "valid", "XML", "." ]
7ab975fb6cef3c8947099983551672a3b5d4e2fd
https://github.com/matthewhorridge/owlapi-gwt/blob/7ab975fb6cef3c8947099983551672a3b5d4e2fd/owlapi-gwt-client-side-emul/src/main/java/org/semanticweb/owlapi/io/XMLUtils.java#L348-L376
146,916
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/scoping/internal/ScopedRequestDispatcher.java
ScopedRequestDispatcher.forward
public void forward( ServletRequest request, ServletResponse response ) throws ServletException, IOException { ScopedRequestImpl scopedRequest = ( ScopedRequestImpl ) ScopedServletUtils.unwrapRequest( request ); assert scopedRequest != null : request.getClass().getName(); scopedR...
java
public void forward( ServletRequest request, ServletResponse response ) throws ServletException, IOException { ScopedRequestImpl scopedRequest = ( ScopedRequestImpl ) ScopedServletUtils.unwrapRequest( request ); assert scopedRequest != null : request.getClass().getName(); scopedR...
[ "public", "void", "forward", "(", "ServletRequest", "request", ",", "ServletResponse", "response", ")", "throws", "ServletException", ",", "IOException", "{", "ScopedRequestImpl", "scopedRequest", "=", "(", "ScopedRequestImpl", ")", "ScopedServletUtils", ".", "unwrapReq...
Does not actually cause a server forward of the request, but informs the ScopedRequest object that a forward was attempted for a particular URI. @param request the ScopedRequest, or a wrapper (ServletRequestWrapper) around it. @param response the ScopedResponse, or a wrapper (ServletResponseWrapper) around it.
[ "Does", "not", "actually", "cause", "a", "server", "forward", "of", "the", "request", "but", "informs", "the", "ScopedRequest", "object", "that", "a", "forward", "was", "attempted", "for", "a", "particular", "URI", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/scoping/internal/ScopedRequestDispatcher.java#L69-L76
146,917
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/scoping/internal/ScopedRequestDispatcher.java
ScopedRequestDispatcher.include
public void include( ServletRequest request, ServletResponse response ) throws ServletException, IOException { assert request instanceof HttpServletRequest : request.getClass().getName(); HttpServletRequest httpRequest = ( HttpServletRequest ) request; // // Firs...
java
public void include( ServletRequest request, ServletResponse response ) throws ServletException, IOException { assert request instanceof HttpServletRequest : request.getClass().getName(); HttpServletRequest httpRequest = ( HttpServletRequest ) request; // // Firs...
[ "public", "void", "include", "(", "ServletRequest", "request", ",", "ServletResponse", "response", ")", "throws", "ServletException", ",", "IOException", "{", "assert", "request", "instanceof", "HttpServletRequest", ":", "request", ".", "getClass", "(", ")", ".", ...
Does a server include of the stored URI into the given ScopedRequest and ScopedResponse. @param request the ScopedRequest, or a wrapper (ServletRequestWrapper) around it. @param response the ScopedResponse, or a wrapper (ServletResponseWrapper) around it.
[ "Does", "a", "server", "include", "of", "the", "stored", "URI", "into", "the", "given", "ScopedRequest", "and", "ScopedResponse", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/scoping/internal/ScopedRequestDispatcher.java#L84-L128
146,918
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/script/common/BundleMap.java
BundleMap.containsKey
public boolean containsKey(Object key) { if(key == null) throw new NullPointerException("Binding to a resource bundle does not accept a null key"); BundleNodeMap map = lookupScriptableBundle(key.toString()); return map != null; }
java
public boolean containsKey(Object key) { if(key == null) throw new NullPointerException("Binding to a resource bundle does not accept a null key"); BundleNodeMap map = lookupScriptableBundle(key.toString()); return map != null; }
[ "public", "boolean", "containsKey", "(", "Object", "key", ")", "{", "if", "(", "key", "==", "null", ")", "throw", "new", "NullPointerException", "(", "\"Binding to a resource bundle does not accept a null key\"", ")", ";", "BundleNodeMap", "map", "=", "lookupScriptabl...
Implementation of Map.containsKey for the bundle implicit object. This method is required by JSP 2.0 EL and performs the lookups of the various available bundles which have been registered either explicitly or implicitly. @param key The name of a bundle to lookup @return <code>true</code> if the bundle is available; ...
[ "Implementation", "of", "Map", ".", "containsKey", "for", "the", "bundle", "implicit", "object", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/script/common/BundleMap.java#L119-L125
146,919
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/script/common/BundleMap.java
BundleMap.lookupDefaultStrutsBundle
private MessageResources lookupDefaultStrutsBundle() { Object value = _servletRequest.getAttribute(Globals.MESSAGES_KEY); if(value instanceof MessageResources) return (MessageResources)value; else { if(value != null) LOGGER.warn("Can not resolve the defaul...
java
private MessageResources lookupDefaultStrutsBundle() { Object value = _servletRequest.getAttribute(Globals.MESSAGES_KEY); if(value instanceof MessageResources) return (MessageResources)value; else { if(value != null) LOGGER.warn("Can not resolve the defaul...
[ "private", "MessageResources", "lookupDefaultStrutsBundle", "(", ")", "{", "Object", "value", "=", "_servletRequest", ".", "getAttribute", "(", "Globals", ".", "MESSAGES_KEY", ")", ";", "if", "(", "value", "instanceof", "MessageResources", ")", "return", "(", "Mes...
Lookup the "default" resource bundle for the current Struts module. @return a MessageResources object if a "default" bundle exists. <code>null</code> otherwise
[ "Lookup", "the", "default", "resource", "bundle", "for", "the", "current", "Struts", "module", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/script/common/BundleMap.java#L211-L222
146,920
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/script/common/BundleMap.java
BundleMap.lookupStrutsBundle
private MessageResources lookupStrutsBundle(String name) { Object value = _servletContext.getAttribute(name); if(value instanceof MessageResources) return (MessageResources)value; else { if(value != null) LOGGER.warn("Can not resolve module bundle with nam...
java
private MessageResources lookupStrutsBundle(String name) { Object value = _servletContext.getAttribute(name); if(value instanceof MessageResources) return (MessageResources)value; else { if(value != null) LOGGER.warn("Can not resolve module bundle with nam...
[ "private", "MessageResources", "lookupStrutsBundle", "(", "String", "name", ")", "{", "Object", "value", "=", "_servletContext", ".", "getAttribute", "(", "name", ")", ";", "if", "(", "value", "instanceof", "MessageResources", ")", "return", "(", "MessageResources...
Lookup a specific resource bundle for the current Struts module. @param name the name of the resource bundle to lookup @return a MessageResources object if a bundle matching the given name exists. <code>null</code> otherwise.
[ "Lookup", "a", "specific", "resource", "bundle", "for", "the", "current", "Struts", "module", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/script/common/BundleMap.java#L232-L244
146,921
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/util/internal/concurrent/TimeUnit.java
TimeUnit.x
static long x(long d, long m, long over) { if (d > over) return Long.MAX_VALUE; if (d < -over) return Long.MIN_VALUE; return d * m; }
java
static long x(long d, long m, long over) { if (d > over) return Long.MAX_VALUE; if (d < -over) return Long.MIN_VALUE; return d * m; }
[ "static", "long", "x", "(", "long", "d", ",", "long", "m", ",", "long", "over", ")", "{", "if", "(", "d", ">", "over", ")", "return", "Long", ".", "MAX_VALUE", ";", "if", "(", "d", "<", "-", "over", ")", "return", "Long", ".", "MIN_VALUE", ";",...
Scale d by m, checking for overflow. This has a short name to make above code more readable.
[ "Scale", "d", "by", "m", "checking", "for", "overflow", ".", "This", "has", "a", "short", "name", "to", "make", "above", "code", "more", "readable", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/util/internal/concurrent/TimeUnit.java#L160-L164
146,922
iig-uni-freiburg/SEWOL
src/de/uni/freiburg/iig/telematik/sewol/context/process/ProcessContextProperties.java
ProcessContextProperties.addActivityWithDataUsage
private void addActivityWithDataUsage(String activity) { Validate.notNull(activity); Validate.notEmpty(activity); Set<String> currentActivities = getActivitiesWithDataUsage(); currentActivities.add(activity); setProperty(ProcessContextProperty.ACTIVITIES_WITH_DATA_USAGE, ArrayUti...
java
private void addActivityWithDataUsage(String activity) { Validate.notNull(activity); Validate.notEmpty(activity); Set<String> currentActivities = getActivitiesWithDataUsage(); currentActivities.add(activity); setProperty(ProcessContextProperty.ACTIVITIES_WITH_DATA_USAGE, ArrayUti...
[ "private", "void", "addActivityWithDataUsage", "(", "String", "activity", ")", "{", "Validate", ".", "notNull", "(", "activity", ")", ";", "Validate", ".", "notEmpty", "(", "activity", ")", ";", "Set", "<", "String", ">", "currentActivities", "=", "getActiviti...
Adds an activity to the list of activities with data usage. @param activity The name of the activity to add. @throws ParameterException if the activity name is invalid.
[ "Adds", "an", "activity", "to", "the", "list", "of", "activities", "with", "data", "usage", "." ]
e791cb07a6e62ecf837d760d58a25f32fbf6bbca
https://github.com/iig-uni-freiburg/SEWOL/blob/e791cb07a6e62ecf837d760d58a25f32fbf6bbca/src/de/uni/freiburg/iig/telematik/sewol/context/process/ProcessContextProperties.java#L164-L170
146,923
iig-uni-freiburg/SEWOL
src/de/uni/freiburg/iig/telematik/sewol/context/process/ProcessContextProperties.java
ProcessContextProperties.getActivitiesWithDataUsage
public Set<String> getActivitiesWithDataUsage() { Set<String> result = new HashSet<>(); String propertyValue = getProperty(ProcessContextProperty.ACTIVITIES_WITH_DATA_USAGE); if (propertyValue == null) { return result; } StringTokenizer activityTokens = StringUtils.sp...
java
public Set<String> getActivitiesWithDataUsage() { Set<String> result = new HashSet<>(); String propertyValue = getProperty(ProcessContextProperty.ACTIVITIES_WITH_DATA_USAGE); if (propertyValue == null) { return result; } StringTokenizer activityTokens = StringUtils.sp...
[ "public", "Set", "<", "String", ">", "getActivitiesWithDataUsage", "(", ")", "{", "Set", "<", "String", ">", "result", "=", "new", "HashSet", "<>", "(", ")", ";", "String", "propertyValue", "=", "getProperty", "(", "ProcessContextProperty", ".", "ACTIVITIES_WI...
Returns the names of all activities with data usage. @return A set of all activities with data usage.
[ "Returns", "the", "names", "of", "all", "activities", "with", "data", "usage", "." ]
e791cb07a6e62ecf837d760d58a25f32fbf6bbca
https://github.com/iig-uni-freiburg/SEWOL/blob/e791cb07a6e62ecf837d760d58a25f32fbf6bbca/src/de/uni/freiburg/iig/telematik/sewol/context/process/ProcessContextProperties.java#L177-L188
146,924
iig-uni-freiburg/SEWOL
ext/org/deckfour/xes/info/impl/XLogInfoImpl.java
XLogInfoImpl.create
public static XLogInfo create(XLog log, XEventClassifier defaultClassifier, Collection<XEventClassifier> classifiers) { return new XLogInfoImpl(log, defaultClassifier, classifiers); }
java
public static XLogInfo create(XLog log, XEventClassifier defaultClassifier, Collection<XEventClassifier> classifiers) { return new XLogInfoImpl(log, defaultClassifier, classifiers); }
[ "public", "static", "XLogInfo", "create", "(", "XLog", "log", ",", "XEventClassifier", "defaultClassifier", ",", "Collection", "<", "XEventClassifier", ">", "classifiers", ")", "{", "return", "new", "XLogInfoImpl", "(", "log", ",", "defaultClassifier", ",", "class...
Creates a new log info summary with a collection of custom event classifiers. @param log The event log to create an info summary for. @param defaultClassifier The default event classifier to be used. @param classifiers A collection of additional event classifiers to be covered by the created log info instance. @return...
[ "Creates", "a", "new", "log", "info", "summary", "with", "a", "collection", "of", "custom", "event", "classifiers", "." ]
e791cb07a6e62ecf837d760d58a25f32fbf6bbca
https://github.com/iig-uni-freiburg/SEWOL/blob/e791cb07a6e62ecf837d760d58a25f32fbf6bbca/ext/org/deckfour/xes/info/impl/XLogInfoImpl.java#L144-L147
146,925
iig-uni-freiburg/SEWOL
ext/org/deckfour/xes/info/impl/XLogInfoImpl.java
XLogInfoImpl.setup
protected synchronized void setup() { registerAttributes(logAttributeInfo, log); for(XTrace trace : log) { numberOfTraces++; registerAttributes(traceAttributeInfo, trace); XTimeBoundsImpl traceBounds = new XTimeBoundsImpl(); for(XEvent event : trace) { registerAttributes(eventAttributeInfo, event); ...
java
protected synchronized void setup() { registerAttributes(logAttributeInfo, log); for(XTrace trace : log) { numberOfTraces++; registerAttributes(traceAttributeInfo, trace); XTimeBoundsImpl traceBounds = new XTimeBoundsImpl(); for(XEvent event : trace) { registerAttributes(eventAttributeInfo, event); ...
[ "protected", "synchronized", "void", "setup", "(", ")", "{", "registerAttributes", "(", "logAttributeInfo", ",", "log", ")", ";", "for", "(", "XTrace", "trace", ":", "log", ")", "{", "numberOfTraces", "++", ";", "registerAttributes", "(", "traceAttributeInfo", ...
Creates the internal data structures of this summary on setup from the log.
[ "Creates", "the", "internal", "data", "structures", "of", "this", "summary", "on", "setup", "from", "the", "log", "." ]
e791cb07a6e62ecf837d760d58a25f32fbf6bbca
https://github.com/iig-uni-freiburg/SEWOL/blob/e791cb07a6e62ecf837d760d58a25f32fbf6bbca/ext/org/deckfour/xes/info/impl/XLogInfoImpl.java#L232-L253
146,926
iig-uni-freiburg/SEWOL
ext/org/deckfour/xes/info/impl/XLogInfoImpl.java
XLogInfoImpl.registerAttributes
protected void registerAttributes(XAttributeInfoImpl attributeInfo, XAttributable attributable) { if (attributable.hasAttributes()) { for(XAttribute attribute : attributable.getAttributes().values()) { // register attribute in appropriate map attributeInfo.register(attribute); // register meta-attribut...
java
protected void registerAttributes(XAttributeInfoImpl attributeInfo, XAttributable attributable) { if (attributable.hasAttributes()) { for(XAttribute attribute : attributable.getAttributes().values()) { // register attribute in appropriate map attributeInfo.register(attribute); // register meta-attribut...
[ "protected", "void", "registerAttributes", "(", "XAttributeInfoImpl", "attributeInfo", ",", "XAttributable", "attributable", ")", "{", "if", "(", "attributable", ".", "hasAttributes", "(", ")", ")", "{", "for", "(", "XAttribute", "attribute", ":", "attributable", ...
Registers all attributes of a given attributable, i.e. model type hierarchy element, in the given attribute info registry. @param attributeInfo Attribute info registry to use for registration. @param attributable Attributable whose attributes to register.
[ "Registers", "all", "attributes", "of", "a", "given", "attributable", "i", ".", "e", ".", "model", "type", "hierarchy", "element", "in", "the", "given", "attribute", "info", "registry", "." ]
e791cb07a6e62ecf837d760d58a25f32fbf6bbca
https://github.com/iig-uni-freiburg/SEWOL/blob/e791cb07a6e62ecf837d760d58a25f32fbf6bbca/ext/org/deckfour/xes/info/impl/XLogInfoImpl.java#L262-L271
146,927
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/CheckBoxOption.java
CheckBoxOption.setValue
public void setValue(Object value) throws JspException { if (value != null) _state.value = value.toString(); else _state.value = null; }
java
public void setValue(Object value) throws JspException { if (value != null) _state.value = value.toString(); else _state.value = null; }
[ "public", "void", "setValue", "(", "Object", "value", ")", "throws", "JspException", "{", "if", "(", "value", "!=", "null", ")", "_state", ".", "value", "=", "value", ".", "toString", "(", ")", ";", "else", "_state", ".", "value", "=", "null", ";", "...
Set the value of this CheckBoxOption. @param value the CheckBoxOption value @jsptagref.attributedescription A String literal or a data binding expression. The value attribute determines the value submitted by the checkbox. @jsptagref.databindable true @jsptagref.attributesyntaxvalue <i>string_literal_or_expression_val...
[ "Set", "the", "value", "of", "this", "CheckBoxOption", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/CheckBoxOption.java#L150-L157
146,928
moparisthebest/beehive
beehive-jdbc-control/src/main/java/org/apache/beehive/controls/system/jdbc/JdbcControlImpl.java
JdbcControlImpl.onAquire
@EventHandler(field = "_resourceContext", eventSet = ResourceEvents.class, eventName = "onAcquire") public void onAquire() { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Enter: onAquire()"); } try { getConnection(); } catch (SQLException se) { th...
java
@EventHandler(field = "_resourceContext", eventSet = ResourceEvents.class, eventName = "onAcquire") public void onAquire() { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Enter: onAquire()"); } try { getConnection(); } catch (SQLException se) { th...
[ "@", "EventHandler", "(", "field", "=", "\"_resourceContext\"", ",", "eventSet", "=", "ResourceEvents", ".", "class", ",", "eventName", "=", "\"onAcquire\"", ")", "public", "void", "onAquire", "(", ")", "{", "if", "(", "LOGGER", ".", "isDebugEnabled", "(", "...
Invoked by the controls runtime when a new instance of this class is aquired by the runtime
[ "Invoked", "by", "the", "controls", "runtime", "when", "a", "new", "instance", "of", "this", "class", "is", "aquired", "by", "the", "runtime" ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-jdbc-control/src/main/java/org/apache/beehive/controls/system/jdbc/JdbcControlImpl.java#L103-L115
146,929
moparisthebest/beehive
beehive-jdbc-control/src/main/java/org/apache/beehive/controls/system/jdbc/JdbcControlImpl.java
JdbcControlImpl.onRelease
@EventHandler(field = "_resourceContext", eventSet = ResourceContext.ResourceEvents.class, eventName = "onRelease") public void onRelease() { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Enter: onRelease()"); } for (PreparedStatement ps : getResources()) { try { ...
java
@EventHandler(field = "_resourceContext", eventSet = ResourceContext.ResourceEvents.class, eventName = "onRelease") public void onRelease() { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Enter: onRelease()"); } for (PreparedStatement ps : getResources()) { try { ...
[ "@", "EventHandler", "(", "field", "=", "\"_resourceContext\"", ",", "eventSet", "=", "ResourceContext", ".", "ResourceEvents", ".", "class", ",", "eventName", "=", "\"onRelease\"", ")", "public", "void", "onRelease", "(", ")", "{", "if", "(", "LOGGER", ".", ...
Invoked by the controls runtime when an instance of this class is released by the runtime
[ "Invoked", "by", "the", "controls", "runtime", "when", "an", "instance", "of", "this", "class", "is", "released", "by", "the", "runtime" ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-jdbc-control/src/main/java/org/apache/beehive/controls/system/jdbc/JdbcControlImpl.java#L120-L146
146,930
moparisthebest/beehive
beehive-jdbc-control/src/main/java/org/apache/beehive/controls/system/jdbc/JdbcControlImpl.java
JdbcControlImpl.invoke
public Object invoke(Method method, Object[] args) throws Throwable { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Enter: invoke()"); } assert _connection.isClosed() == false : "invoke(): JDBC Connection has been closed!!!!"; return execPreparedStatement(method, args); }
java
public Object invoke(Method method, Object[] args) throws Throwable { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Enter: invoke()"); } assert _connection.isClosed() == false : "invoke(): JDBC Connection has been closed!!!!"; return execPreparedStatement(method, args); }
[ "public", "Object", "invoke", "(", "Method", "method", ",", "Object", "[", "]", "args", ")", "throws", "Throwable", "{", "if", "(", "LOGGER", ".", "isDebugEnabled", "(", ")", ")", "{", "LOGGER", ".", "debug", "(", "\"Enter: invoke()\"", ")", ";", "}", ...
Called by the Controls runtime to handle calls to methods of an extensible control. @param method The extended operation that was called. @param args Parameters of the operation. @return The value that should be returned by the operation. @throws Throwable any exception declared on the extended operation may be thro...
[ "Called", "by", "the", "Controls", "runtime", "to", "handle", "calls", "to", "methods", "of", "an", "extensible", "control", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-jdbc-control/src/main/java/org/apache/beehive/controls/system/jdbc/JdbcControlImpl.java#L217-L224
146,931
moparisthebest/beehive
beehive-jdbc-control/src/main/java/org/apache/beehive/controls/system/jdbc/JdbcControlImpl.java
JdbcControlImpl.getConnectionFromDataSource
private Connection getConnectionFromDataSource(String jndiName, Class<? extends JdbcControl.JndiContextFactory> jndiFactory) throws SQLException { Connection con = null; try { JndiContextFactory jf = (JndiContextFactory) jnd...
java
private Connection getConnectionFromDataSource(String jndiName, Class<? extends JdbcControl.JndiContextFactory> jndiFactory) throws SQLException { Connection con = null; try { JndiContextFactory jf = (JndiContextFactory) jnd...
[ "private", "Connection", "getConnectionFromDataSource", "(", "String", "jndiName", ",", "Class", "<", "?", "extends", "JdbcControl", ".", "JndiContextFactory", ">", "jndiFactory", ")", "throws", "SQLException", "{", "Connection", "con", "=", "null", ";", "try", "{...
Get a connection from a DataSource. @param jndiName Specifed in the subclasse's ConnectionDataSource annotation @param jndiFactory Specified in the subclasse's ConnectionDataSource Annotation. @return null if a connection cannot be established @throws SQLException
[ "Get", "a", "connection", "from", "a", "DataSource", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-jdbc-control/src/main/java/org/apache/beehive/controls/system/jdbc/JdbcControlImpl.java#L402-L421
146,932
moparisthebest/beehive
beehive-jdbc-control/src/main/java/org/apache/beehive/controls/system/jdbc/JdbcControlImpl.java
JdbcControlImpl.getConnectionFromDriverManager
private Connection getConnectionFromDriverManager(String dbDriverClassName, String dbUrlStr, String userName, String password, String propertiesString) throws SQLException { Connection con = null; try { Class.forName(dbDr...
java
private Connection getConnectionFromDriverManager(String dbDriverClassName, String dbUrlStr, String userName, String password, String propertiesString) throws SQLException { Connection con = null; try { Class.forName(dbDr...
[ "private", "Connection", "getConnectionFromDriverManager", "(", "String", "dbDriverClassName", ",", "String", "dbUrlStr", ",", "String", "userName", ",", "String", "password", ",", "String", "propertiesString", ")", "throws", "SQLException", "{", "Connection", "con", ...
Get a JDBC connection from the DriverManager. @param dbDriverClassName Specified in the subclasse's ConnectionDriver annotation. @param dbUrlStr Specified in the subclasse's ConnectionDriver annotation. @param userName Specified in the subclasse's ConnectionDriver annotation. @param password ...
[ "Get", "a", "JDBC", "connection", "from", "the", "DriverManager", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-jdbc-control/src/main/java/org/apache/beehive/controls/system/jdbc/JdbcControlImpl.java#L433-L456
146,933
moparisthebest/beehive
beehive-jdbc-control/src/main/java/org/apache/beehive/controls/system/jdbc/JdbcControlImpl.java
JdbcControlImpl.setTypeMappers
private void setTypeMappers(TypeMapper[] typeMappers) throws SQLException { if (typeMappers.length > 0) { Map<String, Class<?>> mappers = _connection.getTypeMap(); for (TypeMapper t : typeMappers) { mappers.put(t.UDTName(), t.mapperClass()); } _co...
java
private void setTypeMappers(TypeMapper[] typeMappers) throws SQLException { if (typeMappers.length > 0) { Map<String, Class<?>> mappers = _connection.getTypeMap(); for (TypeMapper t : typeMappers) { mappers.put(t.UDTName(), t.mapperClass()); } _co...
[ "private", "void", "setTypeMappers", "(", "TypeMapper", "[", "]", "typeMappers", ")", "throws", "SQLException", "{", "if", "(", "typeMappers", ".", "length", ">", "0", ")", "{", "Map", "<", "String", ",", "Class", "<", "?", ">", ">", "mappers", "=", "_...
Set any custom type mappers specifed in the annotation for the connection. Used for mapping SQL UDTs to java classes. @param typeMappers An array of TypeMapper.
[ "Set", "any", "custom", "type", "mappers", "specifed", "in", "the", "annotation", "for", "the", "connection", ".", "Used", "for", "mapping", "SQL", "UDTs", "to", "java", "classes", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-jdbc-control/src/main/java/org/apache/beehive/controls/system/jdbc/JdbcControlImpl.java#L496-L505
146,934
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/Form.java
Form.addTagID
public void addTagID(String tagID, String name) { if (_focusMap == null) { _focusMap = new HashMap(); } _focusMap.put(tagID, name); }
java
public void addTagID(String tagID, String name) { if (_focusMap == null) { _focusMap = new HashMap(); } _focusMap.put(tagID, name); }
[ "public", "void", "addTagID", "(", "String", "tagID", ",", "String", "name", ")", "{", "if", "(", "_focusMap", "==", "null", ")", "{", "_focusMap", "=", "new", "HashMap", "(", ")", ";", "}", "_focusMap", ".", "put", "(", "tagID", ",", "name", ")", ...
Adds a tagId and name to the Form's focusMap. @param tagID the tagID of a child tag. @param name the name of a child tag.
[ "Adds", "a", "tagId", "and", "name", "to", "the", "Form", "s", "focusMap", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/Form.java#L560-L566
146,935
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/Form.java
Form.doStartTag
public int doStartTag() throws JspException { if (hasErrors()) return SKIP_BODY; // Error out if there is a parent form if (getNearestForm() != null) { registerTagError(Bundle.getString("Tags_FormParentForm"), null); } // Look up the form bea...
java
public int doStartTag() throws JspException { if (hasErrors()) return SKIP_BODY; // Error out if there is a parent form if (getNearestForm() != null) { registerTagError(Bundle.getString("Tags_FormParentForm"), null); } // Look up the form bea...
[ "public", "int", "doStartTag", "(", ")", "throws", "JspException", "{", "if", "(", "hasErrors", "(", ")", ")", "return", "SKIP_BODY", ";", "// Error out if there is a parent form", "if", "(", "getNearestForm", "(", ")", "!=", "null", ")", "{", "registerTagError"...
Render the beginning of this form. @throws JspException if a JSP exception has occurred
[ "Render", "the", "beginning", "of", "this", "form", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/Form.java#L573-L675
146,936
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/Form.java
Form.doAfterBody
public int doAfterBody() throws JspException { if (bodyContent != null) { String value = bodyContent.getString(); bodyContent.clearBody(); if (value.length() > 0) _text = value; } return SKIP_BODY; }
java
public int doAfterBody() throws JspException { if (bodyContent != null) { String value = bodyContent.getString(); bodyContent.clearBody(); if (value.length() > 0) _text = value; } return SKIP_BODY; }
[ "public", "int", "doAfterBody", "(", ")", "throws", "JspException", "{", "if", "(", "bodyContent", "!=", "null", ")", "{", "String", "value", "=", "bodyContent", ".", "getString", "(", ")", ";", "bodyContent", ".", "clearBody", "(", ")", ";", "if", "(", ...
Save the body content of the Form. @throws JspException if a JSP exception has occurred
[ "Save", "the", "body", "content", "of", "the", "Form", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/Form.java#L681-L690
146,937
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/Form.java
Form.renderNameAndId
private String renderNameAndId(HttpServletRequest request, String id) { // if id is not set then we need to exit if (id == null) return null; // Legacy Java Script support -- This writes out a single table with both the id and names // mixed. This is legacy support to m...
java
private String renderNameAndId(HttpServletRequest request, String id) { // if id is not set then we need to exit if (id == null) return null; // Legacy Java Script support -- This writes out a single table with both the id and names // mixed. This is legacy support to m...
[ "private", "String", "renderNameAndId", "(", "HttpServletRequest", "request", ",", "String", "id", ")", "{", "// if id is not set then we need to exit", "if", "(", "id", "==", "null", ")", "return", "null", ";", "// Legacy Java Script support -- This writes out a single tab...
This mehtod will render the JavaScript associated with the id lookup if id has been set. @param request @param id @return
[ "This", "mehtod", "will", "render", "the", "JavaScript", "associated", "with", "the", "id", "lookup", "if", "id", "has", "been", "set", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/Form.java#L826-L854
146,938
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/Form.java
Form.writeHiddenParam
private void writeHiddenParam(String paramName, String paramValue, AbstractRenderAppender results, ServletRequest req, boolean newLine) { // put each hidden on a new line if (newLine) results.append("\n"); // create the state _hiddenStat...
java
private void writeHiddenParam(String paramName, String paramValue, AbstractRenderAppender results, ServletRequest req, boolean newLine) { // put each hidden on a new line if (newLine) results.append("\n"); // create the state _hiddenStat...
[ "private", "void", "writeHiddenParam", "(", "String", "paramName", ",", "String", "paramValue", ",", "AbstractRenderAppender", "results", ",", "ServletRequest", "req", ",", "boolean", "newLine", ")", "{", "// put each hidden on a new line", "if", "(", "newLine", ")", ...
Write a hidden field for a paramter @param paramName The name of the parameter @param paramValue The value of the paramter @param results The InternalStringBuilder to append the result to @param req THe servlet request
[ "Write", "a", "hidden", "field", "for", "a", "paramter" ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/Form.java#L864-L879
146,939
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/util/internal/FileUtils.java
FileUtils.uriEndsWith
public static boolean uriEndsWith( String uri, String ending ) { int queryStart = uri.indexOf( '?' ); if ( queryStart == -1 ) { return uri.endsWith( ending ); } else { return uri.length() - queryStart >= ending.length() ...
java
public static boolean uriEndsWith( String uri, String ending ) { int queryStart = uri.indexOf( '?' ); if ( queryStart == -1 ) { return uri.endsWith( ending ); } else { return uri.length() - queryStart >= ending.length() ...
[ "public", "static", "boolean", "uriEndsWith", "(", "String", "uri", ",", "String", "ending", ")", "{", "int", "queryStart", "=", "uri", ".", "indexOf", "(", "'", "'", ")", ";", "if", "(", "queryStart", "==", "-", "1", ")", "{", "return", "uri", ".", ...
Tell whether a URI ends in a given String.
[ "Tell", "whether", "a", "URI", "ends", "in", "a", "given", "String", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/util/internal/FileUtils.java#L61-L74
146,940
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/util/internal/FileUtils.java
FileUtils.getFileExtension
public static String getFileExtension( String filename ) { int lastDot = filename.lastIndexOf( '.' ); return lastDot != -1 ? filename.substring( lastDot + 1 ) : ""; }
java
public static String getFileExtension( String filename ) { int lastDot = filename.lastIndexOf( '.' ); return lastDot != -1 ? filename.substring( lastDot + 1 ) : ""; }
[ "public", "static", "String", "getFileExtension", "(", "String", "filename", ")", "{", "int", "lastDot", "=", "filename", ".", "lastIndexOf", "(", "'", "'", ")", ";", "return", "lastDot", "!=", "-", "1", "?", "filename", ".", "substring", "(", "lastDot", ...
Get the file extension from a file name. @param filename the file name. @return the file extension (everything after the last '.'), or the empty string if there is no file extension.
[ "Get", "the", "file", "extension", "from", "a", "file", "name", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/util/internal/FileUtils.java#L83-L87
146,941
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/util/internal/FileUtils.java
FileUtils.osSensitiveEquals
public static boolean osSensitiveEquals( String s1, String s2 ) { if ( OS_CASE_SENSITIVE ) { return s1.equals( s2 ); } else { return s1.equalsIgnoreCase( s2 ); } }
java
public static boolean osSensitiveEquals( String s1, String s2 ) { if ( OS_CASE_SENSITIVE ) { return s1.equals( s2 ); } else { return s1.equalsIgnoreCase( s2 ); } }
[ "public", "static", "boolean", "osSensitiveEquals", "(", "String", "s1", ",", "String", "s2", ")", "{", "if", "(", "OS_CASE_SENSITIVE", ")", "{", "return", "s1", ".", "equals", "(", "s2", ")", ";", "}", "else", "{", "return", "s1", ".", "equalsIgnoreCase...
Compare two strings, with case sensitivity determined by the operating system. @param s1 the first String to compare. @param s2 the second String to compare. @return <code>true</code> when: <ul> <li>the strings match exactly (including case), or,</li> <li>the operating system is not case-sensitive with regard to file ...
[ "Compare", "two", "strings", "with", "case", "sensitivity", "determined", "by", "the", "operating", "system", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/util/internal/FileUtils.java#L116-L126
146,942
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/util/internal/FileUtils.java
FileUtils.osSensitiveEndsWith
public static boolean osSensitiveEndsWith( String str, String suffix ) { if ( OS_CASE_SENSITIVE ) { return str.endsWith( suffix ); } else { int strLen = str.length(); int suffixLen = suffix.length(); if ( strLen < s...
java
public static boolean osSensitiveEndsWith( String str, String suffix ) { if ( OS_CASE_SENSITIVE ) { return str.endsWith( suffix ); } else { int strLen = str.length(); int suffixLen = suffix.length(); if ( strLen < s...
[ "public", "static", "boolean", "osSensitiveEndsWith", "(", "String", "str", ",", "String", "suffix", ")", "{", "if", "(", "OS_CASE_SENSITIVE", ")", "{", "return", "str", ".", "endsWith", "(", "suffix", ")", ";", "}", "else", "{", "int", "strLen", "=", "s...
Tell whether a string ends with a particular suffix, with case sensitivity determined by the operating system. @param str the String to test. @param suffix the suffix to look for. @return <code>true</code> when: <ul> <li><code>str</code> ends with <code>suffix</code>, or,</li> <li>the operating system is not case-sens...
[ "Tell", "whether", "a", "string", "ends", "with", "a", "particular", "suffix", "with", "case", "sensitivity", "determined", "by", "the", "operating", "system", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/util/internal/FileUtils.java#L141-L159
146,943
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/rendering/AnchorTag.java
AnchorTag.add
public static void add(HashMap html, HashMap htmlQuirks, HashMap xhtml) { html.put(ANCHOR_TAG, new Rendering()); htmlQuirks.put(ANCHOR_TAG, new Rendering()); xhtml.put(ANCHOR_TAG, new Rendering()); }
java
public static void add(HashMap html, HashMap htmlQuirks, HashMap xhtml) { html.put(ANCHOR_TAG, new Rendering()); htmlQuirks.put(ANCHOR_TAG, new Rendering()); xhtml.put(ANCHOR_TAG, new Rendering()); }
[ "public", "static", "void", "add", "(", "HashMap", "html", ",", "HashMap", "htmlQuirks", ",", "HashMap", "xhtml", ")", "{", "html", ".", "put", "(", "ANCHOR_TAG", ",", "new", "Rendering", "(", ")", ")", ";", "htmlQuirks", ".", "put", "(", "ANCHOR_TAG", ...
Add the Renderer for the HTML and XHTML tokens. @param html The map of HTML Tag Renderers @param xhtml The map of XHTML Tag Renderers
[ "Add", "the", "Renderer", "for", "the", "HTML", "and", "XHTML", "tokens", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/rendering/AnchorTag.java#L36-L41
146,944
moparisthebest/beehive
beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptAnnotationHelper.java
AptAnnotationHelper.getElementDeclaration
public AnnotationTypeElementDeclaration getElementDeclaration(String elemName) { if (_elementMap.containsKey(elemName)) return _elementMap.get(elemName); return null; }
java
public AnnotationTypeElementDeclaration getElementDeclaration(String elemName) { if (_elementMap.containsKey(elemName)) return _elementMap.get(elemName); return null; }
[ "public", "AnnotationTypeElementDeclaration", "getElementDeclaration", "(", "String", "elemName", ")", "{", "if", "(", "_elementMap", ".", "containsKey", "(", "elemName", ")", ")", "return", "_elementMap", ".", "get", "(", "elemName", ")", ";", "return", "null", ...
Returns the AnnotationTypeElementDeclaration for a particular element
[ "Returns", "the", "AnnotationTypeElementDeclaration", "for", "a", "particular", "element" ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptAnnotationHelper.java#L56-L61
146,945
moparisthebest/beehive
beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptAnnotationHelper.java
AptAnnotationHelper.getStringValue
public String getStringValue(String elemName) { if (_valueMap.containsKey(elemName)) return _valueMap.get(elemName).toString(); return null; }
java
public String getStringValue(String elemName) { if (_valueMap.containsKey(elemName)) return _valueMap.get(elemName).toString(); return null; }
[ "public", "String", "getStringValue", "(", "String", "elemName", ")", "{", "if", "(", "_valueMap", ".", "containsKey", "(", "elemName", ")", ")", "return", "_valueMap", ".", "get", "(", "elemName", ")", ".", "toString", "(", ")", ";", "return", "null", "...
Returns the value of a particular element as a String
[ "Returns", "the", "value", "of", "a", "particular", "element", "as", "a", "String" ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptAnnotationHelper.java#L66-L71
146,946
moparisthebest/beehive
beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptAnnotationHelper.java
AptAnnotationHelper.getObjectValue
public Object getObjectValue(String elemName) { if (_valueMap.containsKey(elemName)) return _valueMap.get(elemName).getValue(); return null; }
java
public Object getObjectValue(String elemName) { if (_valueMap.containsKey(elemName)) return _valueMap.get(elemName).getValue(); return null; }
[ "public", "Object", "getObjectValue", "(", "String", "elemName", ")", "{", "if", "(", "_valueMap", ".", "containsKey", "(", "elemName", ")", ")", "return", "_valueMap", ".", "get", "(", "elemName", ")", ".", "getValue", "(", ")", ";", "return", "null", "...
Returns the value of a particular element as an Object
[ "Returns", "the", "value", "of", "a", "particular", "element", "as", "an", "Object" ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptAnnotationHelper.java#L76-L81
146,947
iig-uni-freiburg/SEWOL
ext/org/deckfour/xes/nikefs2/NikeFS2BlockProvider.java
NikeFS2BlockProvider.allocateBlock
public synchronized NikeFS2Block allocateBlock() { // look for free block, i.e. first block whose index // bit is set to true in the allocation map. int freeBlockIndex = blockAllocationMap.nextSetBit(0); if(freeBlockIndex < 0) { // no free blocks left in this provider. return null; } else { // set in...
java
public synchronized NikeFS2Block allocateBlock() { // look for free block, i.e. first block whose index // bit is set to true in the allocation map. int freeBlockIndex = blockAllocationMap.nextSetBit(0); if(freeBlockIndex < 0) { // no free blocks left in this provider. return null; } else { // set in...
[ "public", "synchronized", "NikeFS2Block", "allocateBlock", "(", ")", "{", "// look for free block, i.e. first block whose index", "// bit is set to true in the allocation map.", "int", "freeBlockIndex", "=", "blockAllocationMap", ".", "nextSetBit", "(", "0", ")", ";", "if", "...
Allocates a new block from this block provider. @return A newly allocated block from this provider. May return <code>null</code>, if no free blocks are currently available.
[ "Allocates", "a", "new", "block", "from", "this", "block", "provider", "." ]
e791cb07a6e62ecf837d760d58a25f32fbf6bbca
https://github.com/iig-uni-freiburg/SEWOL/blob/e791cb07a6e62ecf837d760d58a25f32fbf6bbca/ext/org/deckfour/xes/nikefs2/NikeFS2BlockProvider.java#L189-L202
146,948
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/databinding/datagrid/Rows.java
Rows.setOnMouseUp
public void setOnMouseUp(String onMouseUp) { _tbodyTag.registerAttribute(AbstractHtmlState.ATTR_JAVASCRIPT, HtmlConstants.ONMOUSEUP, onMouseUp); }
java
public void setOnMouseUp(String onMouseUp) { _tbodyTag.registerAttribute(AbstractHtmlState.ATTR_JAVASCRIPT, HtmlConstants.ONMOUSEUP, onMouseUp); }
[ "public", "void", "setOnMouseUp", "(", "String", "onMouseUp", ")", "{", "_tbodyTag", ".", "registerAttribute", "(", "AbstractHtmlState", ".", "ATTR_JAVASCRIPT", ",", "HtmlConstants", ".", "ONMOUSEUP", ",", "onMouseUp", ")", ";", "}" ]
Sets the onMouseUp JavaScript event for the HTML tbody tag. @param onMouseUp the onMouseUp event. @jsptagref.attributedescription The onMouseUp JavaScript event for the HTML tbody tag. @jsptagref.attributesyntaxvalue <i>string_onMouseUp</i> @netui:attribute required="false" rtexprvalue="true" description="The onMouseU...
[ "Sets", "the", "onMouseUp", "JavaScript", "event", "for", "the", "HTML", "tbody", "tag", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/databinding/datagrid/Rows.java#L211-L213
146,949
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/databinding/datagrid/Rows.java
Rows.setOnMouseMove
public void setOnMouseMove(String onMouseMove) { _tbodyTag.registerAttribute(AbstractHtmlState.ATTR_JAVASCRIPT, HtmlConstants.ONMOUSEMOVE, onMouseMove); }
java
public void setOnMouseMove(String onMouseMove) { _tbodyTag.registerAttribute(AbstractHtmlState.ATTR_JAVASCRIPT, HtmlConstants.ONMOUSEMOVE, onMouseMove); }
[ "public", "void", "setOnMouseMove", "(", "String", "onMouseMove", ")", "{", "_tbodyTag", ".", "registerAttribute", "(", "AbstractHtmlState", ".", "ATTR_JAVASCRIPT", ",", "HtmlConstants", ".", "ONMOUSEMOVE", ",", "onMouseMove", ")", ";", "}" ]
Sets the onMouseMove JavaScript event for the HTML tbody tag. @param onMouseMove the onMouseMove event. @jsptagref.attributedescription The onMouseMove JavaScript event for the HTML tbody tag. @jsptagref.attributesyntaxvalue <i>string_onMouseMove</i> @netui:attribute required="false" rtexprvalue="true" description="Th...
[ "Sets", "the", "onMouseMove", "JavaScript", "event", "for", "the", "HTML", "tbody", "tag", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/databinding/datagrid/Rows.java#L223-L225
146,950
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/databinding/datagrid/Rows.java
Rows.setOnMouseOut
public void setOnMouseOut(String onMouseOut) { _tbodyTag.registerAttribute(AbstractHtmlState.ATTR_JAVASCRIPT, HtmlConstants.ONMOUSEOUT, onMouseOut); }
java
public void setOnMouseOut(String onMouseOut) { _tbodyTag.registerAttribute(AbstractHtmlState.ATTR_JAVASCRIPT, HtmlConstants.ONMOUSEOUT, onMouseOut); }
[ "public", "void", "setOnMouseOut", "(", "String", "onMouseOut", ")", "{", "_tbodyTag", ".", "registerAttribute", "(", "AbstractHtmlState", ".", "ATTR_JAVASCRIPT", ",", "HtmlConstants", ".", "ONMOUSEOUT", ",", "onMouseOut", ")", ";", "}" ]
Sets the onMouseOut JavaScript event for the HTML tbody tag. @param onMouseOut the onMouseOut event. @jsptagref.attributedescription The onMouseOut JavaScript event for the HTML tbody tag. @jsptagref.attributesyntaxvalue <i>string_onMouseOut</i> @netui:attribute required="false" rtexprvalue="true" description="The onM...
[ "Sets", "the", "onMouseOut", "JavaScript", "event", "for", "the", "HTML", "tbody", "tag", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/databinding/datagrid/Rows.java#L235-L237
146,951
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/databinding/datagrid/Rows.java
Rows.setOnMouseOver
public void setOnMouseOver(String onMouseOver) { _tbodyTag.registerAttribute(AbstractHtmlState.ATTR_JAVASCRIPT, HtmlConstants.ONMOUSEOVER, onMouseOver); }
java
public void setOnMouseOver(String onMouseOver) { _tbodyTag.registerAttribute(AbstractHtmlState.ATTR_JAVASCRIPT, HtmlConstants.ONMOUSEOVER, onMouseOver); }
[ "public", "void", "setOnMouseOver", "(", "String", "onMouseOver", ")", "{", "_tbodyTag", ".", "registerAttribute", "(", "AbstractHtmlState", ".", "ATTR_JAVASCRIPT", ",", "HtmlConstants", ".", "ONMOUSEOVER", ",", "onMouseOver", ")", ";", "}" ]
Sets the onMouseOver JavaScript event for the HTML tbody tag. @param onMouseOver the onMouseOver event. @jsptagref.attributedescription The onMouseOver JavaScript event for the HTML tbody tag. @jsptagref.attributesyntaxvalue <i>string_onMouseOver</i> @netui:attribute required="false" rtexprvalue="true" description="Th...
[ "Sets", "the", "onMouseOver", "JavaScript", "event", "for", "the", "HTML", "tbody", "tag", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/databinding/datagrid/Rows.java#L247-L249
146,952
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/databinding/datagrid/Rows.java
Rows.setAlign
public void setAlign(String align) { /* todo: should this enforce left|center|right|justify|char as in the spec */ _tbodyTag.registerAttribute(AbstractHtmlState.ATTR_GENERAL, HtmlConstants.ALIGN, align); }
java
public void setAlign(String align) { /* todo: should this enforce left|center|right|justify|char as in the spec */ _tbodyTag.registerAttribute(AbstractHtmlState.ATTR_GENERAL, HtmlConstants.ALIGN, align); }
[ "public", "void", "setAlign", "(", "String", "align", ")", "{", "/* todo: should this enforce left|center|right|justify|char as in the spec */", "_tbodyTag", ".", "registerAttribute", "(", "AbstractHtmlState", ".", "ATTR_GENERAL", ",", "HtmlConstants", ".", "ALIGN", ",", "a...
Sets the value of the horizontal alignment attribute of the HTML tbody tag. @param align the horizontal alignment @jsptagref.attributedescription The horizontal alignment of the HTML tbody tag. @jsptagref.attributesyntaxvalue <i>string_align</i> @netui:attribute required="false" rtexprvalue="true" description="The cel...
[ "Sets", "the", "value", "of", "the", "horizontal", "alignment", "attribute", "of", "the", "HTML", "tbody", "tag", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/databinding/datagrid/Rows.java#L299-L302
146,953
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/databinding/datagrid/Rows.java
Rows.setCharoff
public void setCharoff(String alignCharOff) { _tbodyTag.registerAttribute(AbstractHtmlState.ATTR_GENERAL, HtmlConstants.CHAROFF, alignCharOff); }
java
public void setCharoff(String alignCharOff) { _tbodyTag.registerAttribute(AbstractHtmlState.ATTR_GENERAL, HtmlConstants.CHAROFF, alignCharOff); }
[ "public", "void", "setCharoff", "(", "String", "alignCharOff", ")", "{", "_tbodyTag", ".", "registerAttribute", "(", "AbstractHtmlState", ".", "ATTR_GENERAL", ",", "HtmlConstants", ".", "CHAROFF", ",", "alignCharOff", ")", ";", "}" ]
Sets the value of the horizontal alignment character offset attribute. @param alignCharOff @jsptagref.attributedescription The horizontal alignment character offset @jsptagref.attributesyntaxvalue <i>string_alignCharOff</i> @netui:attribute required="false" rtexprvalue="true" description="The cell's horizontal alignme...
[ "Sets", "the", "value", "of", "the", "horizontal", "alignment", "character", "offset", "attribute", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/databinding/datagrid/Rows.java#L324-L326
146,954
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/databinding/datagrid/Rows.java
Rows.setValign
public void setValign(String align) { /* todo: should this enforce top|middle|bottom|baseline as in the spec */ _tbodyTag.registerAttribute(AbstractHtmlState.ATTR_GENERAL, HtmlConstants.VALIGN, align); }
java
public void setValign(String align) { /* todo: should this enforce top|middle|bottom|baseline as in the spec */ _tbodyTag.registerAttribute(AbstractHtmlState.ATTR_GENERAL, HtmlConstants.VALIGN, align); }
[ "public", "void", "setValign", "(", "String", "align", ")", "{", "/* todo: should this enforce top|middle|bottom|baseline as in the spec */", "_tbodyTag", ".", "registerAttribute", "(", "AbstractHtmlState", ".", "ATTR_GENERAL", ",", "HtmlConstants", ".", "VALIGN", ",", "ali...
Sets the value of the vertical alignment attribute of the HTML tbody tag. @param align the alignment @jsptagref.attributedescription The vertical alignment. @jsptagref.attributesyntaxvalue <i>string_align</i> @netui:attribute required="false" rtexprvalue="true" description="The vertical alignment of the HTML tbody tag...
[ "Sets", "the", "value", "of", "the", "vertical", "alignment", "attribute", "of", "the", "HTML", "tbody", "tag", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/databinding/datagrid/Rows.java#L336-L339
146,955
greatman/GreatmancodeTools
src/main/java/com/greatmancode/tools/utils/Tools.java
Tools.isInteger
public static boolean isInteger(String number) { boolean result = false; try { Integer.parseInt(number); result = true; } catch (NumberFormatException e) { } return result; }
java
public static boolean isInteger(String number) { boolean result = false; try { Integer.parseInt(number); result = true; } catch (NumberFormatException e) { } return result; }
[ "public", "static", "boolean", "isInteger", "(", "String", "number", ")", "{", "boolean", "result", "=", "false", ";", "try", "{", "Integer", ".", "parseInt", "(", "number", ")", ";", "result", "=", "true", ";", "}", "catch", "(", "NumberFormatException", ...
Checks if a string is a valid integer @param number The string to check @return True if the string is a valid integer else false.
[ "Checks", "if", "a", "string", "is", "a", "valid", "integer" ]
4c9d2656c5c8298ff9e1f235c9be8b148e43c9f1
https://github.com/greatman/GreatmancodeTools/blob/4c9d2656c5c8298ff9e1f235c9be8b148e43c9f1/src/main/java/com/greatmancode/tools/utils/Tools.java#L41-L49
146,956
greatman/GreatmancodeTools
src/main/java/com/greatmancode/tools/utils/Tools.java
Tools.isLong
public static boolean isLong(String number) { boolean result = false; try { Long.parseLong(number); result = true; } catch (NumberFormatException e) { } return result; }
java
public static boolean isLong(String number) { boolean result = false; try { Long.parseLong(number); result = true; } catch (NumberFormatException e) { } return result; }
[ "public", "static", "boolean", "isLong", "(", "String", "number", ")", "{", "boolean", "result", "=", "false", ";", "try", "{", "Long", ".", "parseLong", "(", "number", ")", ";", "result", "=", "true", ";", "}", "catch", "(", "NumberFormatException", "e"...
Checks if a string is a valid long @param number The string to check @return True if the string is a valid long else false.
[ "Checks", "if", "a", "string", "is", "a", "valid", "long" ]
4c9d2656c5c8298ff9e1f235c9be8b148e43c9f1
https://github.com/greatman/GreatmancodeTools/blob/4c9d2656c5c8298ff9e1f235c9be8b148e43c9f1/src/main/java/com/greatmancode/tools/utils/Tools.java#L57-L65
146,957
greatman/GreatmancodeTools
src/main/java/com/greatmancode/tools/utils/Tools.java
Tools.isDouble
public static boolean isDouble(String number) { boolean result = false; if (number != null) { try { Double.parseDouble(number); result = true; } catch (NumberFormatException e) { } } return result; }
java
public static boolean isDouble(String number) { boolean result = false; if (number != null) { try { Double.parseDouble(number); result = true; } catch (NumberFormatException e) { } } return result; }
[ "public", "static", "boolean", "isDouble", "(", "String", "number", ")", "{", "boolean", "result", "=", "false", ";", "if", "(", "number", "!=", "null", ")", "{", "try", "{", "Double", ".", "parseDouble", "(", "number", ")", ";", "result", "=", "true",...
Checks if a string is a valid Double @param number The string to check. @return True if the string is a valid double else false.
[ "Checks", "if", "a", "string", "is", "a", "valid", "Double" ]
4c9d2656c5c8298ff9e1f235c9be8b148e43c9f1
https://github.com/greatman/GreatmancodeTools/blob/4c9d2656c5c8298ff9e1f235c9be8b148e43c9f1/src/main/java/com/greatmancode/tools/utils/Tools.java#L73-L83
146,958
greatman/GreatmancodeTools
src/main/java/com/greatmancode/tools/utils/Tools.java
Tools.isBoolean
public static boolean isBoolean(String number) { boolean result = false; if (number != null && (number.equalsIgnoreCase("true") || number.equalsIgnoreCase("false"))) { result = true; } return result; }
java
public static boolean isBoolean(String number) { boolean result = false; if (number != null && (number.equalsIgnoreCase("true") || number.equalsIgnoreCase("false"))) { result = true; } return result; }
[ "public", "static", "boolean", "isBoolean", "(", "String", "number", ")", "{", "boolean", "result", "=", "false", ";", "if", "(", "number", "!=", "null", "&&", "(", "number", ".", "equalsIgnoreCase", "(", "\"true\"", ")", "||", "number", ".", "equalsIgnore...
Checks if a string is a valid boolean @param number The string to check @return True if the string is equals to either true or false . Else false.
[ "Checks", "if", "a", "string", "is", "a", "valid", "boolean" ]
4c9d2656c5c8298ff9e1f235c9be8b148e43c9f1
https://github.com/greatman/GreatmancodeTools/blob/4c9d2656c5c8298ff9e1f235c9be8b148e43c9f1/src/main/java/com/greatmancode/tools/utils/Tools.java#L91-L97
146,959
greatman/GreatmancodeTools
src/main/java/com/greatmancode/tools/utils/Tools.java
Tools.isValidDouble
public static boolean isValidDouble(String number) { boolean valid = false; if (isDouble(number) && isPositive(Double.parseDouble(number))) { valid = true; } return valid; }
java
public static boolean isValidDouble(String number) { boolean valid = false; if (isDouble(number) && isPositive(Double.parseDouble(number))) { valid = true; } return valid; }
[ "public", "static", "boolean", "isValidDouble", "(", "String", "number", ")", "{", "boolean", "valid", "=", "false", ";", "if", "(", "isDouble", "(", "number", ")", "&&", "isPositive", "(", "Double", ".", "parseDouble", "(", "number", ")", ")", ")", "{",...
Checks if a string is a valid double. @param number The string to check @return True if the number is a valid double (positive) else false.
[ "Checks", "if", "a", "string", "is", "a", "valid", "double", "." ]
4c9d2656c5c8298ff9e1f235c9be8b148e43c9f1
https://github.com/greatman/GreatmancodeTools/blob/4c9d2656c5c8298ff9e1f235c9be8b148e43c9f1/src/main/java/com/greatmancode/tools/utils/Tools.java#L105-L111
146,960
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/scoping/ScopedServletUtils.java
ScopedServletUtils.getScopedRequest
public static ScopedRequest getScopedRequest( HttpServletRequest realRequest, String overrideURI, ServletContext servletContext, Object scopeKey, boolean seeOuterRequestAttributes ) { assert ! ( realRequest i...
java
public static ScopedRequest getScopedRequest( HttpServletRequest realRequest, String overrideURI, ServletContext servletContext, Object scopeKey, boolean seeOuterRequestAttributes ) { assert ! ( realRequest i...
[ "public", "static", "ScopedRequest", "getScopedRequest", "(", "HttpServletRequest", "realRequest", ",", "String", "overrideURI", ",", "ServletContext", "servletContext", ",", "Object", "scopeKey", ",", "boolean", "seeOuterRequestAttributes", ")", "{", "assert", "!", "("...
Get the cached ScopedRequest wrapper. If none exists, creates one and caches it. @param realRequest the "real" (outer) HttpServletRequest, which will be wrapped. @param overrideURI the request-URI for the wrapped object. This URI must begin with the context path. @param servletContext the current ServletContext. @pa...
[ "Get", "the", "cached", "ScopedRequest", "wrapper", ".", "If", "none", "exists", "creates", "one", "and", "caches", "it", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/scoping/ScopedServletUtils.java#L83-L108
146,961
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/scoping/ScopedServletUtils.java
ScopedServletUtils.getScopedResponse
public static ScopedResponse getScopedResponse( HttpServletResponse realResponse, ScopedRequest scopedRequest ) { assert ! ( realResponse instanceof ScopedResponse ); String responseAttr = getScopedName( OVERRIDE_RESPONSE_ATTR, ...
java
public static ScopedResponse getScopedResponse( HttpServletResponse realResponse, ScopedRequest scopedRequest ) { assert ! ( realResponse instanceof ScopedResponse ); String responseAttr = getScopedName( OVERRIDE_RESPONSE_ATTR, ...
[ "public", "static", "ScopedResponse", "getScopedResponse", "(", "HttpServletResponse", "realResponse", ",", "ScopedRequest", "scopedRequest", ")", "{", "assert", "!", "(", "realResponse", "instanceof", "ScopedResponse", ")", ";", "String", "responseAttr", "=", "getScope...
Get the cached wrapper servlet response. If none exists, creates one and caches it. @param realResponse the "real" (outer) ServletResponse, which will be wrapped. @param scopedRequest the ScopedRequest returned from {@link #getScopedRequest}. @return the cached (or newly-created) ScopedResponse.
[ "Get", "the", "cached", "wrapper", "servlet", "response", ".", "If", "none", "exists", "creates", "one", "and", "caches", "it", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/scoping/ScopedServletUtils.java#L117-L137
146,962
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/scoping/ScopedServletUtils.java
ScopedServletUtils.unwrapRequest
public static ScopedRequest unwrapRequest( ServletRequest request ) { // Unwrap the multipart request, if there is one. if ( request instanceof MultipartRequestWrapper ) { request = ( ( MultipartRequestWrapper ) request ).getRequest(); } while ( request instanceo...
java
public static ScopedRequest unwrapRequest( ServletRequest request ) { // Unwrap the multipart request, if there is one. if ( request instanceof MultipartRequestWrapper ) { request = ( ( MultipartRequestWrapper ) request ).getRequest(); } while ( request instanceo...
[ "public", "static", "ScopedRequest", "unwrapRequest", "(", "ServletRequest", "request", ")", "{", "// Unwrap the multipart request, if there is one.", "if", "(", "request", "instanceof", "MultipartRequestWrapper", ")", "{", "request", "=", "(", "(", "MultipartRequestWrapper...
Unwraps the contained ScopedRequest from the given ServletRequest, which may be a ServletRequestWrapper. @param request the ScopedRequest, or a wrapper (ServletRequestWrapper) around it. @return the unwrapped ScopedRequest. @exclude
[ "Unwraps", "the", "contained", "ScopedRequest", "from", "the", "given", "ServletRequest", "which", "may", "be", "a", "ServletRequestWrapper", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/scoping/ScopedServletUtils.java#L236-L257
146,963
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/scoping/ScopedServletUtils.java
ScopedServletUtils.unwrapResponse
public static ScopedResponse unwrapResponse( ServletResponse response ) { while ( response instanceof ServletResponseWrapper ) { if ( response instanceof ScopedResponse ) { return ( ScopedResponse ) response; } else {...
java
public static ScopedResponse unwrapResponse( ServletResponse response ) { while ( response instanceof ServletResponseWrapper ) { if ( response instanceof ScopedResponse ) { return ( ScopedResponse ) response; } else {...
[ "public", "static", "ScopedResponse", "unwrapResponse", "(", "ServletResponse", "response", ")", "{", "while", "(", "response", "instanceof", "ServletResponseWrapper", ")", "{", "if", "(", "response", "instanceof", "ScopedResponse", ")", "{", "return", "(", "ScopedR...
Unwraps the contained ScopedResponseImpl from the given ServletResponse, which may be a ServletResponseWrapper. @param response the ScopedResponse, or a wrapper (ServletResponseWrapper) around it. @return the unwrapped ScopedResponseImpl. @exclude
[ "Unwraps", "the", "contained", "ScopedResponseImpl", "from", "the", "given", "ServletResponse", "which", "may", "be", "a", "ServletResponseWrapper", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/scoping/ScopedServletUtils.java#L268-L283
146,964
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/scoping/ScopedServletUtils.java
ScopedServletUtils.getScopedSessionAttrName
public static String getScopedSessionAttrName( String attrName, HttpServletRequest request ) { String requestScopeParam = request.getParameter( SCOPE_ID_PARAM ); if ( requestScopeParam != null ) { return getScopedName( attrName, requestScopeParam ); } ...
java
public static String getScopedSessionAttrName( String attrName, HttpServletRequest request ) { String requestScopeParam = request.getParameter( SCOPE_ID_PARAM ); if ( requestScopeParam != null ) { return getScopedName( attrName, requestScopeParam ); } ...
[ "public", "static", "String", "getScopedSessionAttrName", "(", "String", "attrName", ",", "HttpServletRequest", "request", ")", "{", "String", "requestScopeParam", "=", "request", ".", "getParameter", "(", "SCOPE_ID_PARAM", ")", ";", "if", "(", "requestScopeParam", ...
If the request is a ScopedRequest, this returns an attribute name scoped to that request's scope-ID; otherwise, it returns the given attribute name. @exclude
[ "If", "the", "request", "is", "a", "ScopedRequest", "this", "returns", "an", "attribute", "name", "scoped", "to", "that", "request", "s", "scope", "-", "ID", ";", "otherwise", "it", "returns", "the", "given", "attribute", "name", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/scoping/ScopedServletUtils.java#L291-L302
146,965
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/scoping/ScopedServletUtils.java
ScopedServletUtils.getRelativeURI
public static final String getRelativeURI( HttpServletRequest request, String uri ) { return getRelativeURI( request.getContextPath(), uri ); }
java
public static final String getRelativeURI( HttpServletRequest request, String uri ) { return getRelativeURI( request.getContextPath(), uri ); }
[ "public", "static", "final", "String", "getRelativeURI", "(", "HttpServletRequest", "request", ",", "String", "uri", ")", "{", "return", "getRelativeURI", "(", "request", ".", "getContextPath", "(", ")", ",", "uri", ")", ";", "}" ]
Get a URI relative to the webapp root. @param request the current HttpServletRequest. @param uri the URI which should be made relative.
[ "Get", "a", "URI", "relative", "to", "the", "webapp", "root", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/scoping/ScopedServletUtils.java#L384-L387
146,966
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/scoping/ScopedServletUtils.java
ScopedServletUtils.getRelativeURI
public static final String getRelativeURI( String contextPath, String uri ) { String requestUrl = uri; int overlap = requestUrl.indexOf( contextPath + '/' ); assert overlap != -1 : "contextPath: " + contextPath + ", uri: " + uri; return requestUrl.substring( overlap + contextPath.len...
java
public static final String getRelativeURI( String contextPath, String uri ) { String requestUrl = uri; int overlap = requestUrl.indexOf( contextPath + '/' ); assert overlap != -1 : "contextPath: " + contextPath + ", uri: " + uri; return requestUrl.substring( overlap + contextPath.len...
[ "public", "static", "final", "String", "getRelativeURI", "(", "String", "contextPath", ",", "String", "uri", ")", "{", "String", "requestUrl", "=", "uri", ";", "int", "overlap", "=", "requestUrl", ".", "indexOf", "(", "contextPath", "+", "'", "'", ")", ";"...
Get a URI relative to a given webapp root. @param contextPath the webapp context path, e.g., "/myWebapp" @param uri the URI which should be made relative.
[ "Get", "a", "URI", "relative", "to", "a", "given", "webapp", "root", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/scoping/ScopedServletUtils.java#L395-L401
146,967
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/scoping/ScopedServletUtils.java
ScopedServletUtils.normalizeURI
public static String normalizeURI( String uri ) { // // If it's a relative URI, normalize it. Note that we don't want to create a URI // (very expensive) unless we think we'll need to. "./" catches "../" and "./". // if ( uri.indexOf( "./" ) != -1 ) { tr...
java
public static String normalizeURI( String uri ) { // // If it's a relative URI, normalize it. Note that we don't want to create a URI // (very expensive) unless we think we'll need to. "./" catches "../" and "./". // if ( uri.indexOf( "./" ) != -1 ) { tr...
[ "public", "static", "String", "normalizeURI", "(", "String", "uri", ")", "{", "//", "// If it's a relative URI, normalize it. Note that we don't want to create a URI", "// (very expensive) unless we think we'll need to. \"./\" catches \"../\" and \"./\".", "//", "if", "(", "uri", "...
Resolve "." and ".." in a URI. @exclude
[ "Resolve", ".", "and", "..", "in", "a", "URI", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/scoping/ScopedServletUtils.java#L407-L426
146,968
moparisthebest/beehive
beehive-netui-compiler/src/main/java/org/apache/beehive/netui/compiler/model/FormBeanModel.java
FormBeanModel.updateProperties
public void updateProperties( Collection newProps ) { _properties = new ArrayList(); if ( newProps != null ) { _properties.addAll( newProps ); } }
java
public void updateProperties( Collection newProps ) { _properties = new ArrayList(); if ( newProps != null ) { _properties.addAll( newProps ); } }
[ "public", "void", "updateProperties", "(", "Collection", "newProps", ")", "{", "_properties", "=", "new", "ArrayList", "(", ")", ";", "if", "(", "newProps", "!=", "null", ")", "{", "_properties", ".", "addAll", "(", "newProps", ")", ";", "}", "}" ]
Sets the collection of properties for a form bean to a new collection.
[ "Sets", "the", "collection", "of", "properties", "for", "a", "form", "bean", "to", "a", "new", "collection", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-compiler/src/main/java/org/apache/beehive/netui/compiler/model/FormBeanModel.java#L209-L217
146,969
moparisthebest/beehive
beehive-netui-compiler/src/main/java/org/apache/beehive/netui/compiler/model/XmlElementSupport.java
XmlElementSupport.findChildElement
protected final Element findChildElement(XmlModelWriter xw, Element parent, String childName, String keyAttributeName, String keyAttributeValue, boolean createIfNotPresent, String[] createOrder) { NodeList childNodes =...
java
protected final Element findChildElement(XmlModelWriter xw, Element parent, String childName, String keyAttributeName, String keyAttributeValue, boolean createIfNotPresent, String[] createOrder) { NodeList childNodes =...
[ "protected", "final", "Element", "findChildElement", "(", "XmlModelWriter", "xw", ",", "Element", "parent", ",", "String", "childName", ",", "String", "keyAttributeName", ",", "String", "keyAttributeValue", ",", "boolean", "createIfNotPresent", ",", "String", "[", "...
Find a child element by name, and optionally add it if it isn't present. @param xw the XmlModelWriter @param parent the parent element @param childName the name of the desired child element @param keyAttributeName the name of a key attribute in the child element by which to restrict the search. May be <code>null</code...
[ "Find", "a", "child", "element", "by", "name", "and", "optionally", "add", "it", "if", "it", "isn", "t", "present", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-compiler/src/main/java/org/apache/beehive/netui/compiler/model/XmlElementSupport.java#L154-L220
146,970
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/SharedFlowController.java
SharedFlowController.getModulePath
public String getModulePath() { ClassLevelCache cache = ClassLevelCache.getCache( getClass() ); String modulePath = ( String ) cache.getCacheObject( CACHED_INFO_KEY ); if ( modulePath == null ) { modulePath = "/-"; String className = getClass().getNam...
java
public String getModulePath() { ClassLevelCache cache = ClassLevelCache.getCache( getClass() ); String modulePath = ( String ) cache.getCacheObject( CACHED_INFO_KEY ); if ( modulePath == null ) { modulePath = "/-"; String className = getClass().getNam...
[ "public", "String", "getModulePath", "(", ")", "{", "ClassLevelCache", "cache", "=", "ClassLevelCache", ".", "getCache", "(", "getClass", "(", ")", ")", ";", "String", "modulePath", "=", "(", "String", ")", "cache", ".", "getCacheObject", "(", "CACHED_INFO_KEY...
Get the Struts module path for actions in this shared flow. @return the Struts module path for actions in this shared flow.
[ "Get", "the", "Struts", "module", "path", "for", "actions", "in", "this", "shared", "flow", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/SharedFlowController.java#L98-L116
146,971
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/SharedFlowController.java
SharedFlowController.savePreviousActionInfo
void savePreviousActionInfo( ActionForm form, HttpServletRequest request, ActionMapping mapping, ServletContext servletContext ) { // // Save this previous-action info in the *current page flow*. // PageFlowController currentJpf = PageFlowUtils.getCur...
java
void savePreviousActionInfo( ActionForm form, HttpServletRequest request, ActionMapping mapping, ServletContext servletContext ) { // // Save this previous-action info in the *current page flow*. // PageFlowController currentJpf = PageFlowUtils.getCur...
[ "void", "savePreviousActionInfo", "(", "ActionForm", "form", ",", "HttpServletRequest", "request", ",", "ActionMapping", "mapping", ",", "ServletContext", "servletContext", ")", "{", "//", "// Save this previous-action info in the *current page flow*.", "//", "PageFlowControlle...
Store information about the most recent action invocation. This is a framework-invoked method that should not normally be called directly
[ "Store", "information", "about", "the", "most", "recent", "action", "invocation", ".", "This", "is", "a", "framework", "-", "invoked", "method", "that", "should", "not", "normally", "be", "called", "directly" ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/SharedFlowController.java#L208-L216
146,972
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/PageFlowManagedObject.java
PageFlowManagedObject.reinitializeIfNecessary
void reinitializeIfNecessary(HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) { if (_servletContext == null) { reinitialize(request, response, servletContext); } }
java
void reinitializeIfNecessary(HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) { if (_servletContext == null) { reinitialize(request, response, servletContext); } }
[ "void", "reinitializeIfNecessary", "(", "HttpServletRequest", "request", ",", "HttpServletResponse", "response", ",", "ServletContext", "servletContext", ")", "{", "if", "(", "_servletContext", "==", "null", ")", "{", "reinitialize", "(", "request", ",", "response", ...
Internal method to reinitialize only if necessary. The test is whether the ServletContext reference has been lost.
[ "Internal", "method", "to", "reinitialize", "only", "if", "necessary", ".", "The", "test", "is", "whether", "the", "ServletContext", "reference", "has", "been", "lost", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/PageFlowManagedObject.java#L80-L85
146,973
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/PageFlowManagedObject.java
PageFlowManagedObject.fieldIsUninitialized
protected boolean fieldIsUninitialized( Field field ) { try { return field != null && field.get( this ) == null; } catch ( IllegalAccessException e ) { _log.error( "Error initializing field " + field.getName() + " in " + getDisplayName(), e ); ...
java
protected boolean fieldIsUninitialized( Field field ) { try { return field != null && field.get( this ) == null; } catch ( IllegalAccessException e ) { _log.error( "Error initializing field " + field.getName() + " in " + getDisplayName(), e ); ...
[ "protected", "boolean", "fieldIsUninitialized", "(", "Field", "field", ")", "{", "try", "{", "return", "field", "!=", "null", "&&", "field", ".", "get", "(", "this", ")", "==", "null", ";", "}", "catch", "(", "IllegalAccessException", "e", ")", "{", "_lo...
Tell whether the given Field is uninitialized. @return <code>true</code> if the field is non-<code>null</code> and its value is <code>null</code>.
[ "Tell", "whether", "the", "given", "Field", "is", "uninitialized", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/PageFlowManagedObject.java#L198-L209
146,974
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/PageFlowManagedObject.java
PageFlowManagedObject.initializeField
protected void initializeField( Field field, Object instance ) { if ( instance != null ) { if ( _log.isTraceEnabled() ) { _log.trace( "Initializing field " + field.getName() + " in " + getDisplayName() + " with " + instance ); } ...
java
protected void initializeField( Field field, Object instance ) { if ( instance != null ) { if ( _log.isTraceEnabled() ) { _log.trace( "Initializing field " + field.getName() + " in " + getDisplayName() + " with " + instance ); } ...
[ "protected", "void", "initializeField", "(", "Field", "field", ",", "Object", "instance", ")", "{", "if", "(", "instance", "!=", "null", ")", "{", "if", "(", "_log", ".", "isTraceEnabled", "(", ")", ")", "{", "_log", ".", "trace", "(", "\"Initializing fi...
Initialize the given field with an instance. Mainly useful for the error handling.
[ "Initialize", "the", "given", "field", "with", "an", "instance", ".", "Mainly", "useful", "for", "the", "error", "handling", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/PageFlowManagedObject.java#L214-L238
146,975
moparisthebest/beehive
beehive-jdbc-control/src/main/java/org/apache/beehive/controls/system/jdbc/DefaultResultSetMapper.java
DefaultResultSetMapper.mapToResultType
public Object mapToResultType(ControlBeanContext context, Method m, ResultSet resultSet, Calendar cal) { return resultSet; }
java
public Object mapToResultType(ControlBeanContext context, Method m, ResultSet resultSet, Calendar cal) { return resultSet; }
[ "public", "Object", "mapToResultType", "(", "ControlBeanContext", "context", ",", "Method", "m", ",", "ResultSet", "resultSet", ",", "Calendar", "cal", ")", "{", "return", "resultSet", ";", "}" ]
Maps a ResultSet to a ResultSet. The default implementation is a NOOP. @param context A ControlBeanContext instance. @param m Method assoicated with this call. @param resultSet Result set to map. @param cal A Calendar instance for resolving date/time values. @return An object.
[ "Maps", "a", "ResultSet", "to", "a", "ResultSet", ".", "The", "default", "implementation", "is", "a", "NOOP", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-jdbc-control/src/main/java/org/apache/beehive/controls/system/jdbc/DefaultResultSetMapper.java#L42-L44
146,976
iig-uni-freiburg/SEWOL
ext/org/deckfour/xes/extension/std/XLifecycleExtension.java
XLifecycleExtension.extractModel
public String extractModel(XLog log) { XAttribute attribute = log.getAttributes().get(KEY_MODEL); if (attribute == null) { return null; } else { return ((XAttributeLiteral) attribute).getValue(); } }
java
public String extractModel(XLog log) { XAttribute attribute = log.getAttributes().get(KEY_MODEL); if (attribute == null) { return null; } else { return ((XAttributeLiteral) attribute).getValue(); } }
[ "public", "String", "extractModel", "(", "XLog", "log", ")", "{", "XAttribute", "attribute", "=", "log", ".", "getAttributes", "(", ")", ".", "get", "(", "KEY_MODEL", ")", ";", "if", "(", "attribute", "==", "null", ")", "{", "return", "null", ";", "}",...
Extracts the lifecycle model identifier from a given log. @param log Event log. @return Lifecycle model identifier string.
[ "Extracts", "the", "lifecycle", "model", "identifier", "from", "a", "given", "log", "." ]
e791cb07a6e62ecf837d760d58a25f32fbf6bbca
https://github.com/iig-uni-freiburg/SEWOL/blob/e791cb07a6e62ecf837d760d58a25f32fbf6bbca/ext/org/deckfour/xes/extension/std/XLifecycleExtension.java#L223-L230
146,977
iig-uni-freiburg/SEWOL
ext/org/deckfour/xes/extension/std/XLifecycleExtension.java
XLifecycleExtension.assignModel
public void assignModel(XLog log, String model) { if (model != null && model.trim().length() > 0) { XAttributeLiteral modelAttr = (XAttributeLiteral) ATTR_MODEL .clone(); modelAttr.setValue(model.trim()); log.getAttributes().put(KEY_MODEL, modelAttr); } }
java
public void assignModel(XLog log, String model) { if (model != null && model.trim().length() > 0) { XAttributeLiteral modelAttr = (XAttributeLiteral) ATTR_MODEL .clone(); modelAttr.setValue(model.trim()); log.getAttributes().put(KEY_MODEL, modelAttr); } }
[ "public", "void", "assignModel", "(", "XLog", "log", ",", "String", "model", ")", "{", "if", "(", "model", "!=", "null", "&&", "model", ".", "trim", "(", ")", ".", "length", "(", ")", ">", "0", ")", "{", "XAttributeLiteral", "modelAttr", "=", "(", ...
Assigns a value for the lifecycle model identifier to a given log. @param log Log to be tagged. @param model Lifecycle model identifier string to be used.
[ "Assigns", "a", "value", "for", "the", "lifecycle", "model", "identifier", "to", "a", "given", "log", "." ]
e791cb07a6e62ecf837d760d58a25f32fbf6bbca
https://github.com/iig-uni-freiburg/SEWOL/blob/e791cb07a6e62ecf837d760d58a25f32fbf6bbca/ext/org/deckfour/xes/extension/std/XLifecycleExtension.java#L240-L247
146,978
iig-uni-freiburg/SEWOL
ext/org/deckfour/xes/extension/std/XLifecycleExtension.java
XLifecycleExtension.usesStandardModel
public boolean usesStandardModel(XLog log) { String model = extractModel(log); if (model == null) { return false; } else if (model.trim().equals(VALUE_MODEL_STANDARD)) { return true; } else { return false; } }
java
public boolean usesStandardModel(XLog log) { String model = extractModel(log); if (model == null) { return false; } else if (model.trim().equals(VALUE_MODEL_STANDARD)) { return true; } else { return false; } }
[ "public", "boolean", "usesStandardModel", "(", "XLog", "log", ")", "{", "String", "model", "=", "extractModel", "(", "log", ")", ";", "if", "(", "model", "==", "null", ")", "{", "return", "false", ";", "}", "else", "if", "(", "model", ".", "trim", "(...
Checks, whether a given log uses the standard model for lifecycle transitions. @param log Log to be checked. @return Returns true, if the log indeed uses the standard lifecycle model.
[ "Checks", "whether", "a", "given", "log", "uses", "the", "standard", "model", "for", "lifecycle", "transitions", "." ]
e791cb07a6e62ecf837d760d58a25f32fbf6bbca
https://github.com/iig-uni-freiburg/SEWOL/blob/e791cb07a6e62ecf837d760d58a25f32fbf6bbca/ext/org/deckfour/xes/extension/std/XLifecycleExtension.java#L258-L267
146,979
iig-uni-freiburg/SEWOL
ext/org/deckfour/xes/extension/std/XLifecycleExtension.java
XLifecycleExtension.extractTransition
public String extractTransition(XEvent event) { XAttribute attribute = event.getAttributes().get(KEY_TRANSITION); if (attribute == null) { return null; } else { return ((XAttributeLiteral) attribute).getValue(); } }
java
public String extractTransition(XEvent event) { XAttribute attribute = event.getAttributes().get(KEY_TRANSITION); if (attribute == null) { return null; } else { return ((XAttributeLiteral) attribute).getValue(); } }
[ "public", "String", "extractTransition", "(", "XEvent", "event", ")", "{", "XAttribute", "attribute", "=", "event", ".", "getAttributes", "(", ")", ".", "get", "(", "KEY_TRANSITION", ")", ";", "if", "(", "attribute", "==", "null", ")", "{", "return", "null...
Extracts the lifecycle transition string from a given event. @param event An event. @return The lifecycle transition string of this event. Can be <code>null</code>, if not defined.
[ "Extracts", "the", "lifecycle", "transition", "string", "from", "a", "given", "event", "." ]
e791cb07a6e62ecf837d760d58a25f32fbf6bbca
https://github.com/iig-uni-freiburg/SEWOL/blob/e791cb07a6e62ecf837d760d58a25f32fbf6bbca/ext/org/deckfour/xes/extension/std/XLifecycleExtension.java#L277-L284
146,980
iig-uni-freiburg/SEWOL
ext/org/deckfour/xes/extension/std/XLifecycleExtension.java
XLifecycleExtension.extractStandardTransition
public StandardModel extractStandardTransition(XEvent event) { String transition = extractTransition(event); if (transition != null) { return StandardModel.decode(transition); } else { return null; } }
java
public StandardModel extractStandardTransition(XEvent event) { String transition = extractTransition(event); if (transition != null) { return StandardModel.decode(transition); } else { return null; } }
[ "public", "StandardModel", "extractStandardTransition", "(", "XEvent", "event", ")", "{", "String", "transition", "=", "extractTransition", "(", "event", ")", ";", "if", "(", "transition", "!=", "null", ")", "{", "return", "StandardModel", ".", "decode", "(", ...
Extracts the standard lifecycle transition object from a given event. @param event An event. @return The standard lifecycle transition instance of this event. Can be <code>null</code>, if not defined.
[ "Extracts", "the", "standard", "lifecycle", "transition", "object", "from", "a", "given", "event", "." ]
e791cb07a6e62ecf837d760d58a25f32fbf6bbca
https://github.com/iig-uni-freiburg/SEWOL/blob/e791cb07a6e62ecf837d760d58a25f32fbf6bbca/ext/org/deckfour/xes/extension/std/XLifecycleExtension.java#L294-L301
146,981
iig-uni-freiburg/SEWOL
ext/org/deckfour/xes/extension/std/XLifecycleExtension.java
XLifecycleExtension.assignTransition
public void assignTransition(XEvent event, String transition) { if (transition != null && transition.trim().length() > 0) { XAttributeLiteral transAttr = (XAttributeLiteral) ATTR_TRANSITION .clone(); transAttr.setValue(transition.trim()); event.getAttributes().put(KEY_TRANSITION, transAttr); } }
java
public void assignTransition(XEvent event, String transition) { if (transition != null && transition.trim().length() > 0) { XAttributeLiteral transAttr = (XAttributeLiteral) ATTR_TRANSITION .clone(); transAttr.setValue(transition.trim()); event.getAttributes().put(KEY_TRANSITION, transAttr); } }
[ "public", "void", "assignTransition", "(", "XEvent", "event", ",", "String", "transition", ")", "{", "if", "(", "transition", "!=", "null", "&&", "transition", ".", "trim", "(", ")", ".", "length", "(", ")", ">", "0", ")", "{", "XAttributeLiteral", "tran...
Assigns a lifecycle transition string to the given event. @param event Event to be tagged. @param transition Lifecycle transition string to be assigned.
[ "Assigns", "a", "lifecycle", "transition", "string", "to", "the", "given", "event", "." ]
e791cb07a6e62ecf837d760d58a25f32fbf6bbca
https://github.com/iig-uni-freiburg/SEWOL/blob/e791cb07a6e62ecf837d760d58a25f32fbf6bbca/ext/org/deckfour/xes/extension/std/XLifecycleExtension.java#L311-L318
146,982
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/AbstractClassicTag.java
AbstractClassicTag.getNextId
protected int getNextId(ServletRequest req) { Integer i = (Integer) RequestUtils.getOuterAttribute((HttpServletRequest) req,NETUI_UNIQUE_CNT); if (i == null) { i = new Integer(0); } int ret = i.intValue(); RequestUtils.setOuterAttribute((HttpServletRequest) req,N...
java
protected int getNextId(ServletRequest req) { Integer i = (Integer) RequestUtils.getOuterAttribute((HttpServletRequest) req,NETUI_UNIQUE_CNT); if (i == null) { i = new Integer(0); } int ret = i.intValue(); RequestUtils.setOuterAttribute((HttpServletRequest) req,N...
[ "protected", "int", "getNextId", "(", "ServletRequest", "req", ")", "{", "Integer", "i", "=", "(", "Integer", ")", "RequestUtils", ".", "getOuterAttribute", "(", "(", "HttpServletRequest", ")", "req", ",", "NETUI_UNIQUE_CNT", ")", ";", "if", "(", "i", "==", ...
This method will generate the next unique int within the HTML tag. @param req the Request @return the next unique integer for this request.
[ "This", "method", "will", "generate", "the", "next", "unique", "int", "within", "the", "HTML", "tag", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/AbstractClassicTag.java#L455-L465
146,983
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/AbstractClassicTag.java
AbstractClassicTag.getNearestForm
protected Form getNearestForm() { Tag parentTag = getParent(); while (parentTag != null) { if (parentTag instanceof Form) return (Form) parentTag; parentTag = parentTag.getParent(); } return null; }
java
protected Form getNearestForm() { Tag parentTag = getParent(); while (parentTag != null) { if (parentTag instanceof Form) return (Form) parentTag; parentTag = parentTag.getParent(); } return null; }
[ "protected", "Form", "getNearestForm", "(", ")", "{", "Tag", "parentTag", "=", "getParent", "(", ")", ";", "while", "(", "parentTag", "!=", "null", ")", "{", "if", "(", "parentTag", "instanceof", "Form", ")", "return", "(", "Form", ")", "parentTag", ";",...
Returns the closest parent form tag, or null if there is none.
[ "Returns", "the", "closest", "parent", "form", "tag", "or", "null", "if", "there", "is", "none", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/AbstractClassicTag.java#L470-L479
146,984
moparisthebest/beehive
beehive-controls/src/main/java/org/apache/beehive/controls/api/properties/BeanPropertyMap.java
BeanPropertyMap.setProperty
public synchronized void setProperty(PropertyKey key, Object value) { if (!isValidKey(key)) throw new IllegalArgumentException("Key " + key + " is not valid for " + getMapClass()); // // Validate the value argument, based upon the property type reference by the key // ...
java
public synchronized void setProperty(PropertyKey key, Object value) { if (!isValidKey(key)) throw new IllegalArgumentException("Key " + key + " is not valid for " + getMapClass()); // // Validate the value argument, based upon the property type reference by the key // ...
[ "public", "synchronized", "void", "setProperty", "(", "PropertyKey", "key", ",", "Object", "value", ")", "{", "if", "(", "!", "isValidKey", "(", "key", ")", ")", "throw", "new", "IllegalArgumentException", "(", "\"Key \"", "+", "key", "+", "\" is not valid for...
Sets the property specifed by 'key' within this map.
[ "Sets", "the", "property", "specifed", "by", "key", "within", "this", "map", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-controls/src/main/java/org/apache/beehive/controls/api/properties/BeanPropertyMap.java#L96-L123
146,985
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/requeststate/NameService.java
NameService.instance
public static NameService instance(HttpSession session) { if (session == null) throw new IllegalArgumentException("Session must not be null"); // Synchronize on a session scoped mutex to ensure that only a single // NameService object is created within a specific user session ...
java
public static NameService instance(HttpSession session) { if (session == null) throw new IllegalArgumentException("Session must not be null"); // Synchronize on a session scoped mutex to ensure that only a single // NameService object is created within a specific user session ...
[ "public", "static", "NameService", "instance", "(", "HttpSession", "session", ")", "{", "if", "(", "session", "==", "null", ")", "throw", "new", "IllegalArgumentException", "(", "\"Session must not be null\"", ")", ";", "// Synchronize on a session scoped mutex to ensure ...
This will return the session specific instance of a NameService. There will only be a single NameService per session. @param session the HttpSession that contains the NameService @return the NameService associated with the session.
[ "This", "will", "return", "the", "session", "specific", "instance", "of", "a", "NameService", ".", "There", "will", "only", "be", "a", "single", "NameService", "per", "session", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/requeststate/NameService.java#L70-L86
146,986
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/requeststate/NameService.java
NameService.readObject
private synchronized void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); // the transient _nameMap is null after an instance of // NameService has been serialized. if (_nameMap == null) { _nameMap = new HashMap(); ...
java
private synchronized void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); // the transient _nameMap is null after an instance of // NameService has been serialized. if (_nameMap == null) { _nameMap = new HashMap(); ...
[ "private", "synchronized", "void", "readObject", "(", "ObjectInputStream", "in", ")", "throws", "IOException", ",", "ClassNotFoundException", "{", "in", ".", "defaultReadObject", "(", ")", ";", "// the transient _nameMap is null after an instance of", "// NameService has been...
Deserialize an instance of this class. @param in ObjectInputStream to deserialize from. @throws IOException @throws ClassNotFoundException
[ "Deserialize", "an", "instance", "of", "this", "class", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/requeststate/NameService.java#L106-L114
146,987
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/requeststate/NameService.java
NameService.nameObject
public synchronized void nameObject(String namePrefix, INameable object) { String name = namePrefix + Integer.toString(_nextValue++); object.setObjectName(name); }
java
public synchronized void nameObject(String namePrefix, INameable object) { String name = namePrefix + Integer.toString(_nextValue++); object.setObjectName(name); }
[ "public", "synchronized", "void", "nameObject", "(", "String", "namePrefix", ",", "INameable", "object", ")", "{", "String", "name", "=", "namePrefix", "+", "Integer", ".", "toString", "(", "_nextValue", "++", ")", ";", "object", ".", "setObjectName", "(", "...
This method will create a unique name for an INameable object. The name will be unque within the session. This will throw an IllegalStateException if INameable.setObjectName has previously been called on object. @param namePrefix The prefix of the generated name. @param object the INameable object. @throws IllegalSta...
[ "This", "method", "will", "create", "a", "unique", "name", "for", "an", "INameable", "object", ".", "The", "name", "will", "be", "unque", "within", "the", "session", ".", "This", "will", "throw", "an", "IllegalStateException", "if", "INameable", ".", "setObj...
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/requeststate/NameService.java#L160-L164
146,988
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/requeststate/NameService.java
NameService.reclaimSpace
private void reclaimSpace() { if (_nameMap == null) return; if (_nameMap.size() > 0 && _nameMap.size() % _reclaimPoint == 0) { synchronized (_nameMap) { Set s = _nameMap.entrySet(); Iterator it = s.iterator(); while (it.hasNext...
java
private void reclaimSpace() { if (_nameMap == null) return; if (_nameMap.size() > 0 && _nameMap.size() % _reclaimPoint == 0) { synchronized (_nameMap) { Set s = _nameMap.entrySet(); Iterator it = s.iterator(); while (it.hasNext...
[ "private", "void", "reclaimSpace", "(", ")", "{", "if", "(", "_nameMap", "==", "null", ")", "return", ";", "if", "(", "_nameMap", ".", "size", "(", ")", ">", "0", "&&", "_nameMap", ".", "size", "(", ")", "%", "_reclaimPoint", "==", "0", ")", "{", ...
This mehtod will check the name map for entries where the WeakReference object has been reclaimed. When they are found it will reclaim the entry in the map.
[ "This", "mehtod", "will", "check", "the", "name", "map", "for", "entries", "where", "the", "WeakReference", "object", "has", "been", "reclaimed", ".", "When", "they", "are", "found", "it", "will", "reclaim", "the", "entry", "in", "the", "map", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/requeststate/NameService.java#L274-L299
146,989
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/requeststate/NameService.java
NameService.fireNamingObjectEvent
private void fireNamingObjectEvent(TrackingObject to) { Object[] copy; if (_listeners == null) return; // create a copy of the listeners so that there isn't any modifications while we // fire the events. synchronized (_listeners) { copy = _listeners.toArray(); } ...
java
private void fireNamingObjectEvent(TrackingObject to) { Object[] copy; if (_listeners == null) return; // create a copy of the listeners so that there isn't any modifications while we // fire the events. synchronized (_listeners) { copy = _listeners.toArray(); } ...
[ "private", "void", "fireNamingObjectEvent", "(", "TrackingObject", "to", ")", "{", "Object", "[", "]", "copy", ";", "if", "(", "_listeners", "==", "null", ")", "return", ";", "// create a copy of the listeners so that there isn't any modifications while we", "// fire the ...
This method will fire the NamingObject event. This event is triggered when we have added an element to be tracked. @param to The <code>TrackingObject</code> that acts as the Map and also contains the INameable.
[ "This", "method", "will", "fire", "the", "NamingObject", "event", ".", "This", "event", "is", "triggered", "when", "we", "have", "added", "an", "element", "to", "be", "tracked", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/requeststate/NameService.java#L306-L320
146,990
iig-uni-freiburg/SEWOL
ext/org/deckfour/xes/nikefs2/NikeFS2SwapFileManager.java
NikeFS2SwapFileManager.getSwapDir
private static synchronized File getSwapDir() throws IOException { if(SWAP_DIR == null) { // create swap directory for this instance File swapDir = File.createTempFile(SWAP_DIR_PREFIX, SWAP_DIR_SUFFIX, TMP_DIR); // delete if created swapDir.delete(); // create lock file File lockFile = new File(TMP_...
java
private static synchronized File getSwapDir() throws IOException { if(SWAP_DIR == null) { // create swap directory for this instance File swapDir = File.createTempFile(SWAP_DIR_PREFIX, SWAP_DIR_SUFFIX, TMP_DIR); // delete if created swapDir.delete(); // create lock file File lockFile = new File(TMP_...
[ "private", "static", "synchronized", "File", "getSwapDir", "(", ")", "throws", "IOException", "{", "if", "(", "SWAP_DIR", "==", "null", ")", "{", "// create swap directory for this instance", "File", "swapDir", "=", "File", ".", "createTempFile", "(", "SWAP_DIR_PREF...
Retrieves a file handle on the swap directory of this session. @return The swap directory of this session. @throws IOException
[ "Retrieves", "a", "file", "handle", "on", "the", "swap", "directory", "of", "this", "session", "." ]
e791cb07a6e62ecf837d760d58a25f32fbf6bbca
https://github.com/iig-uni-freiburg/SEWOL/blob/e791cb07a6e62ecf837d760d58a25f32fbf6bbca/ext/org/deckfour/xes/nikefs2/NikeFS2SwapFileManager.java#L128-L147
146,991
iig-uni-freiburg/SEWOL
ext/org/deckfour/xes/nikefs2/NikeFS2SwapFileManager.java
NikeFS2SwapFileManager.cleanup
private static synchronized void cleanup() { int cleanedDirs = 0; int cleanedFiles = 0; // retrieve leftover swap directories File[] swapDirs = TMP_DIR.listFiles(new FileFilter() { public boolean accept(File pathname) { return pathname.getName().endsWith(SWAP_DIR_SUFFIX); } }); for(File swapDir : ...
java
private static synchronized void cleanup() { int cleanedDirs = 0; int cleanedFiles = 0; // retrieve leftover swap directories File[] swapDirs = TMP_DIR.listFiles(new FileFilter() { public boolean accept(File pathname) { return pathname.getName().endsWith(SWAP_DIR_SUFFIX); } }); for(File swapDir : ...
[ "private", "static", "synchronized", "void", "cleanup", "(", ")", "{", "int", "cleanedDirs", "=", "0", ";", "int", "cleanedFiles", "=", "0", ";", "// retrieve leftover swap directories", "File", "[", "]", "swapDirs", "=", "TMP_DIR", ".", "listFiles", "(", "new...
Cleans up stale swap files and directories, left over from previous sessions. Only swap directories for which no lock file exists will be removed.
[ "Cleans", "up", "stale", "swap", "files", "and", "directories", "left", "over", "from", "previous", "sessions", ".", "Only", "swap", "directories", "for", "which", "no", "lock", "file", "exists", "will", "be", "removed", "." ]
e791cb07a6e62ecf837d760d58a25f32fbf6bbca
https://github.com/iig-uni-freiburg/SEWOL/blob/e791cb07a6e62ecf837d760d58a25f32fbf6bbca/ext/org/deckfour/xes/nikefs2/NikeFS2SwapFileManager.java#L154-L174
146,992
iig-uni-freiburg/SEWOL
ext/org/deckfour/xes/nikefs2/NikeFS2SwapFileManager.java
NikeFS2SwapFileManager.deleteRecursively
private static synchronized int deleteRecursively(File directory) { int deleted = 0; if(directory.isDirectory()) { File[] contents = directory.listFiles(); for(File file : contents) { deleted += deleteRecursively(file); } } else { deleted++; } directory.delete(); return deleted; }
java
private static synchronized int deleteRecursively(File directory) { int deleted = 0; if(directory.isDirectory()) { File[] contents = directory.listFiles(); for(File file : contents) { deleted += deleteRecursively(file); } } else { deleted++; } directory.delete(); return deleted; }
[ "private", "static", "synchronized", "int", "deleteRecursively", "(", "File", "directory", ")", "{", "int", "deleted", "=", "0", ";", "if", "(", "directory", ".", "isDirectory", "(", ")", ")", "{", "File", "[", "]", "contents", "=", "directory", ".", "li...
Deletes the given directory recursively, i.e., bottom-up. @param directory Directory to be deleted. @return The number of files deleted.
[ "Deletes", "the", "given", "directory", "recursively", "i", ".", "e", ".", "bottom", "-", "up", "." ]
e791cb07a6e62ecf837d760d58a25f32fbf6bbca
https://github.com/iig-uni-freiburg/SEWOL/blob/e791cb07a6e62ecf837d760d58a25f32fbf6bbca/ext/org/deckfour/xes/nikefs2/NikeFS2SwapFileManager.java#L181-L193
146,993
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/FormatTag.java
FormatTag.getLocale
public Locale getLocale() throws JspException { Locale loc = null; if (_language != null || _country != null) { // language is required if (_language == null) { String s = Bundle.getString("Tags_LocaleRequiresLanguage", new Object[]{_country}); ...
java
public Locale getLocale() throws JspException { Locale loc = null; if (_language != null || _country != null) { // language is required if (_language == null) { String s = Bundle.getString("Tags_LocaleRequiresLanguage", new Object[]{_country}); ...
[ "public", "Locale", "getLocale", "(", ")", "throws", "JspException", "{", "Locale", "loc", "=", "null", ";", "if", "(", "_language", "!=", "null", "||", "_country", "!=", "null", ")", "{", "// language is required", "if", "(", "_language", "==", "null", ")...
Returns the locale based on the country and language. @return the locale
[ "Returns", "the", "locale", "based", "on", "the", "country", "and", "language", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/FormatTag.java#L69-L90
146,994
iig-uni-freiburg/SEWOL
ext/org/deckfour/xes/model/buffered/XSequentialEventBuffer.java
XSequentialEventBuffer.replace
public synchronized boolean replace(XEvent event, int index) throws IOException { // check for index sanity if (index < 0 || index >= size) { throw new IndexOutOfBoundsException(); } // determine and set appropriate file pointer position navigateToIndex(index); storage.seek(position); long atePositi...
java
public synchronized boolean replace(XEvent event, int index) throws IOException { // check for index sanity if (index < 0 || index >= size) { throw new IndexOutOfBoundsException(); } // determine and set appropriate file pointer position navigateToIndex(index); storage.seek(position); long atePositi...
[ "public", "synchronized", "boolean", "replace", "(", "XEvent", "event", ",", "int", "index", ")", "throws", "IOException", "{", "// check for index sanity", "if", "(", "index", "<", "0", "||", "index", ">=", "size", ")", "{", "throw", "new", "IndexOutOfBoundsE...
Replaces an event at the given position. @param event The new event to be inserted. @param index Index to replace at. @return The former event, having been replaced.
[ "Replaces", "an", "event", "at", "the", "given", "position", "." ]
e791cb07a6e62ecf837d760d58a25f32fbf6bbca
https://github.com/iig-uni-freiburg/SEWOL/blob/e791cb07a6e62ecf837d760d58a25f32fbf6bbca/ext/org/deckfour/xes/model/buffered/XSequentialEventBuffer.java#L248-L283
146,995
iig-uni-freiburg/SEWOL
ext/org/deckfour/xes/model/buffered/XSequentialEventBuffer.java
XSequentialEventBuffer.get
public synchronized XEvent get(int eventIndex) throws IOException, IndexOutOfBoundsException { // check for index sanity if (eventIndex < 0 || eventIndex >= size) { throw new IndexOutOfBoundsException(); } // determine and set appropriate file pointer position navigateToIndex(eventIndex); // read and ...
java
public synchronized XEvent get(int eventIndex) throws IOException, IndexOutOfBoundsException { // check for index sanity if (eventIndex < 0 || eventIndex >= size) { throw new IndexOutOfBoundsException(); } // determine and set appropriate file pointer position navigateToIndex(eventIndex); // read and ...
[ "public", "synchronized", "XEvent", "get", "(", "int", "eventIndex", ")", "throws", "IOException", ",", "IndexOutOfBoundsException", "{", "// check for index sanity", "if", "(", "eventIndex", "<", "0", "||", "eventIndex", ">=", "size", ")", "{", "throw", "new", ...
Retrieves the event recorded at the specified position @param eventIndex Position of the requested event, defined to be within <code>[0, size()-1]</code>. @return The requested event.
[ "Retrieves", "the", "event", "recorded", "at", "the", "specified", "position" ]
e791cb07a6e62ecf837d760d58a25f32fbf6bbca
https://github.com/iig-uni-freiburg/SEWOL/blob/e791cb07a6e62ecf837d760d58a25f32fbf6bbca/ext/org/deckfour/xes/model/buffered/XSequentialEventBuffer.java#L293-L303
146,996
iig-uni-freiburg/SEWOL
ext/org/deckfour/xes/model/buffered/XSequentialEventBuffer.java
XSequentialEventBuffer.navigateToIndex
protected synchronized void navigateToIndex(int reqIndex) throws IOException { // determine if navigation is necessary if (reqIndex != index) { // ensure that the requested index is valid if (reqIndex < 0 || reqIndex >= size) { throw new IndexOutOfBoundsException(); } // navigate to requested ind...
java
protected synchronized void navigateToIndex(int reqIndex) throws IOException { // determine if navigation is necessary if (reqIndex != index) { // ensure that the requested index is valid if (reqIndex < 0 || reqIndex >= size) { throw new IndexOutOfBoundsException(); } // navigate to requested ind...
[ "protected", "synchronized", "void", "navigateToIndex", "(", "int", "reqIndex", ")", "throws", "IOException", "{", "// determine if navigation is necessary", "if", "(", "reqIndex", "!=", "index", ")", "{", "// ensure that the requested index is valid", "if", "(", "reqInde...
Repositions the low-level layer to read from the specified index. @param reqIndex Index to position the file pointer to.
[ "Repositions", "the", "low", "-", "level", "layer", "to", "read", "from", "the", "specified", "index", "." ]
e791cb07a6e62ecf837d760d58a25f32fbf6bbca
https://github.com/iig-uni-freiburg/SEWOL/blob/e791cb07a6e62ecf837d760d58a25f32fbf6bbca/ext/org/deckfour/xes/model/buffered/XSequentialEventBuffer.java#L324-L363
146,997
iig-uni-freiburg/SEWOL
ext/org/deckfour/xes/model/buffered/XSequentialEventBuffer.java
XSequentialEventBuffer.skipForward
protected synchronized void skipForward(int eventsToSkip) throws IOException { int offset = 0; for (int i = 0; i < eventsToSkip; i++) { // adjust position for reading offset storage.seek(position); // read forward skip offset offset = storage.readInt(); // set file pointer to next event position ...
java
protected synchronized void skipForward(int eventsToSkip) throws IOException { int offset = 0; for (int i = 0; i < eventsToSkip; i++) { // adjust position for reading offset storage.seek(position); // read forward skip offset offset = storage.readInt(); // set file pointer to next event position ...
[ "protected", "synchronized", "void", "skipForward", "(", "int", "eventsToSkip", ")", "throws", "IOException", "{", "int", "offset", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "eventsToSkip", ";", "i", "++", ")", "{", "// adjust posit...
Repositions the position of the data access layer to skip the specified number of records towards the end of the file. @param eventsToSkip Number of records to be skipped.
[ "Repositions", "the", "position", "of", "the", "data", "access", "layer", "to", "skip", "the", "specified", "number", "of", "records", "towards", "the", "end", "of", "the", "file", "." ]
e791cb07a6e62ecf837d760d58a25f32fbf6bbca
https://github.com/iig-uni-freiburg/SEWOL/blob/e791cb07a6e62ecf837d760d58a25f32fbf6bbca/ext/org/deckfour/xes/model/buffered/XSequentialEventBuffer.java#L381-L394
146,998
iig-uni-freiburg/SEWOL
ext/org/deckfour/xes/model/buffered/XSequentialEventBuffer.java
XSequentialEventBuffer.read
protected synchronized XEvent read() throws IOException { // reset file pointer position storage.seek(position); // compute next position from forward offset long nextPosition = position + storage.readInt(); // skip backward offset (4 bytes) storage.skipBytes(4); // read payload size int eventSize = sto...
java
protected synchronized XEvent read() throws IOException { // reset file pointer position storage.seek(position); // compute next position from forward offset long nextPosition = position + storage.readInt(); // skip backward offset (4 bytes) storage.skipBytes(4); // read payload size int eventSize = sto...
[ "protected", "synchronized", "XEvent", "read", "(", ")", "throws", "IOException", "{", "// reset file pointer position", "storage", ".", "seek", "(", "position", ")", ";", "// compute next position from forward offset", "long", "nextPosition", "=", "position", "+", "sto...
Reads an event from the current position of the data access layer. Calling this method implies the advancement of the data access layer, so that the next call will yield the subsequent event.
[ "Reads", "an", "event", "from", "the", "current", "position", "of", "the", "data", "access", "layer", ".", "Calling", "this", "method", "implies", "the", "advancement", "of", "the", "data", "access", "layer", "so", "that", "the", "next", "call", "will", "y...
e791cb07a6e62ecf837d760d58a25f32fbf6bbca
https://github.com/iig-uni-freiburg/SEWOL/blob/e791cb07a6e62ecf837d760d58a25f32fbf6bbca/ext/org/deckfour/xes/model/buffered/XSequentialEventBuffer.java#L423-L448
146,999
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/FileUpload.java
FileUpload.doEndTag
public int doEndTag() throws JspException { HttpServletRequest req = (HttpServletRequest) pageContext.getRequest(); // if we are not handling multipart requests then we can't output the file upload tag and we will // report an error if (!InternalUtils.isMultipartHandlingEnabled(req)...
java
public int doEndTag() throws JspException { HttpServletRequest req = (HttpServletRequest) pageContext.getRequest(); // if we are not handling multipart requests then we can't output the file upload tag and we will // report an error if (!InternalUtils.isMultipartHandlingEnabled(req)...
[ "public", "int", "doEndTag", "(", ")", "throws", "JspException", "{", "HttpServletRequest", "req", "=", "(", "HttpServletRequest", ")", "pageContext", ".", "getRequest", "(", ")", ";", "// if we are not handling multipart requests then we can't output the file upload tag and ...
Render the FileUpload. @throws JspException if a JSP exception has occurred
[ "Render", "the", "FileUpload", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/FileUpload.java#L231-L259