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,500
moparisthebest/beehive
beehive-controls/src/main/java/org/apache/beehive/controls/runtime/bean/ControlBean.java
ControlBean.getControlProperty
protected Object getControlProperty(PropertyKey key) { Object value = getRawControlProperty(key); // If the held value is a PropertyMap, then wrap it in an annotation proxy of // the expected type. if (value instanceof PropertyMap) { PropertyMap map = (PropertyMa...
java
protected Object getControlProperty(PropertyKey key) { Object value = getRawControlProperty(key); // If the held value is a PropertyMap, then wrap it in an annotation proxy of // the expected type. if (value instanceof PropertyMap) { PropertyMap map = (PropertyMa...
[ "protected", "Object", "getControlProperty", "(", "PropertyKey", "key", ")", "{", "Object", "value", "=", "getRawControlProperty", "(", "key", ")", ";", "// If the held value is a PropertyMap, then wrap it in an annotation proxy of", "// the expected type.", "if", "(", "value...
Returns a property on the ControlBean instance. All generated property getter methods will delegate down to this method
[ "Returns", "a", "property", "on", "the", "ControlBean", "instance", ".", "All", "generated", "property", "getter", "methods", "will", "delegate", "down", "to", "this", "method" ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-controls/src/main/java/org/apache/beehive/controls/runtime/bean/ControlBean.java#L707-L720
146,501
moparisthebest/beehive
beehive-controls/src/main/java/org/apache/beehive/controls/runtime/bean/ControlBean.java
ControlBean.getAnnotationMap
protected PropertyMap getAnnotationMap(AnnotatedElement annotElem) { Map annotCache = getPropertyMapCache(); // If in the cache already , just return it if (annotCache.containsKey(annotElem)) return (PropertyMap)annotCache.get(annotElem); // // Ask the associate...
java
protected PropertyMap getAnnotationMap(AnnotatedElement annotElem) { Map annotCache = getPropertyMapCache(); // If in the cache already , just return it if (annotCache.containsKey(annotElem)) return (PropertyMap)annotCache.get(annotElem); // // Ask the associate...
[ "protected", "PropertyMap", "getAnnotationMap", "(", "AnnotatedElement", "annotElem", ")", "{", "Map", "annotCache", "=", "getPropertyMapCache", "(", ")", ";", "// If in the cache already , just return it", "if", "(", "annotCache", ".", "containsKey", "(", "annotElem", ...
Returns the PropertyMap containing values associated with an AnnotatedElement. Elements that are associated with the bean's Control interface will be locally cached.
[ "Returns", "the", "PropertyMap", "containing", "values", "associated", "with", "an", "AnnotatedElement", ".", "Elements", "that", "are", "associated", "with", "the", "bean", "s", "Control", "interface", "will", "be", "locally", "cached", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-controls/src/main/java/org/apache/beehive/controls/runtime/bean/ControlBean.java#L732-L748
146,502
moparisthebest/beehive
beehive-controls/src/main/java/org/apache/beehive/controls/runtime/bean/ControlBean.java
ControlBean.firePropertyChange
protected void firePropertyChange(PropertyKey propertyKey, Object oldValue, Object newValue) { // No change support instance means no listeners if (_changeSupport == null) return; _changeSupport.firePropertyChange(propertyKey.getPropertyName(), oldValue, newValue); }
java
protected void firePropertyChange(PropertyKey propertyKey, Object oldValue, Object newValue) { // No change support instance means no listeners if (_changeSupport == null) return; _changeSupport.firePropertyChange(propertyKey.getPropertyName(), oldValue, newValue); }
[ "protected", "void", "firePropertyChange", "(", "PropertyKey", "propertyKey", ",", "Object", "oldValue", ",", "Object", "newValue", ")", "{", "// No change support instance means no listeners", "if", "(", "_changeSupport", "==", "null", ")", "return", ";", "_changeSuppo...
Delivers a PropertyChangeEvent to any registered PropertyChangeListeners associated with the property referenced by the specified key. This method *should not* be synchronized, as the PropertyChangeSupport has its own built in synchronization mechanisms.
[ "Delivers", "a", "PropertyChangeEvent", "to", "any", "registered", "PropertyChangeListeners", "associated", "with", "the", "property", "referenced", "by", "the", "specified", "key", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-controls/src/main/java/org/apache/beehive/controls/runtime/bean/ControlBean.java#L779-L786
146,503
moparisthebest/beehive
beehive-controls/src/main/java/org/apache/beehive/controls/runtime/bean/ControlBean.java
ControlBean.fireVetoableChange
protected void fireVetoableChange(PropertyKey propertyKey, Object oldValue, Object newValue) throws java.beans.PropertyVetoException { // No veto support instance means no listeners if (_vetoSupport == null) return; _vetoSupport.fireVetoableChange(propertyKey.getProperty...
java
protected void fireVetoableChange(PropertyKey propertyKey, Object oldValue, Object newValue) throws java.beans.PropertyVetoException { // No veto support instance means no listeners if (_vetoSupport == null) return; _vetoSupport.fireVetoableChange(propertyKey.getProperty...
[ "protected", "void", "fireVetoableChange", "(", "PropertyKey", "propertyKey", ",", "Object", "oldValue", ",", "Object", "newValue", ")", "throws", "java", ".", "beans", ".", "PropertyVetoException", "{", "// No veto support instance means no listeners", "if", "(", "_vet...
Delivers a PropertyChangeEvent to any registered VetoableChangeListeners associated with the property referenced by the specified key. This method *should not* be synchronized, as the VetoableChangeSupport has its own built in synchronization mechanisms.
[ "Delivers", "a", "PropertyChangeEvent", "to", "any", "registered", "VetoableChangeListeners", "associated", "with", "the", "property", "referenced", "by", "the", "specified", "key", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-controls/src/main/java/org/apache/beehive/controls/runtime/bean/ControlBean.java#L809-L817
146,504
moparisthebest/beehive
beehive-controls/src/main/java/org/apache/beehive/controls/runtime/bean/ControlBean.java
ControlBean.writeObject
private synchronized void writeObject(ObjectOutputStream oos) throws IOException { if (_control != null) { // // If the implementation class is marked as transient/stateless, then reset the // reference to it prior to serialization. A new instance will be...
java
private synchronized void writeObject(ObjectOutputStream oos) throws IOException { if (_control != null) { // // If the implementation class is marked as transient/stateless, then reset the // reference to it prior to serialization. A new instance will be...
[ "private", "synchronized", "void", "writeObject", "(", "ObjectOutputStream", "oos", ")", "throws", "IOException", "{", "if", "(", "_control", "!=", "null", ")", "{", "//", "// If the implementation class is marked as transient/stateless, then reset the", "// reference to it p...
Implementation of the Java serialization writeObject method
[ "Implementation", "of", "the", "Java", "serialization", "writeObject", "method" ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-controls/src/main/java/org/apache/beehive/controls/runtime/bean/ControlBean.java#L885-L913
146,505
moparisthebest/beehive
beehive-controls/src/main/java/org/apache/beehive/controls/runtime/bean/ControlBean.java
ControlBean.ensureInterceptor
protected Interceptor ensureInterceptor( String n ) { Interceptor i = null; if ( _interceptors == null ) { _interceptors = new HashMap<String,Interceptor>(); } else { i = _interceptors.get( n ); } if ( i == null ) { ...
java
protected Interceptor ensureInterceptor( String n ) { Interceptor i = null; if ( _interceptors == null ) { _interceptors = new HashMap<String,Interceptor>(); } else { i = _interceptors.get( n ); } if ( i == null ) { ...
[ "protected", "Interceptor", "ensureInterceptor", "(", "String", "n", ")", "{", "Interceptor", "i", "=", "null", ";", "if", "(", "_interceptors", "==", "null", ")", "{", "_interceptors", "=", "new", "HashMap", "<", "String", ",", "Interceptor", ">", "(", ")...
Retrieves interceptor instances, creates them lazily.
[ "Retrieves", "interceptor", "instances", "creates", "them", "lazily", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-controls/src/main/java/org/apache/beehive/controls/runtime/bean/ControlBean.java#L963-L1000
146,506
moparisthebest/beehive
beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptPropertySet.java
AptPropertySet.initProperties
protected ArrayList<AptProperty> initProperties() { ArrayList<AptProperty> properties = new ArrayList<AptProperty>(); if (_propertySet == null || _propertySet.getMethods() == null ) return properties; // Add all declared method, but ignore the mystery <clinit> methods ...
java
protected ArrayList<AptProperty> initProperties() { ArrayList<AptProperty> properties = new ArrayList<AptProperty>(); if (_propertySet == null || _propertySet.getMethods() == null ) return properties; // Add all declared method, but ignore the mystery <clinit> methods ...
[ "protected", "ArrayList", "<", "AptProperty", ">", "initProperties", "(", ")", "{", "ArrayList", "<", "AptProperty", ">", "properties", "=", "new", "ArrayList", "<", "AptProperty", ">", "(", ")", ";", "if", "(", "_propertySet", "==", "null", "||", "_property...
Initializes the list of ControlProperties associated with this ControlPropertySet
[ "Initializes", "the", "list", "of", "ControlProperties", "associated", "with", "this", "ControlPropertySet" ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptPropertySet.java#L67-L81
146,507
moparisthebest/beehive
beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptPropertySet.java
AptPropertySet.getPackage
public String getPackage() { if (_propertySet == null || _propertySet.getPackage() == null ) return ""; return _propertySet.getPackage().getQualifiedName(); }
java
public String getPackage() { if (_propertySet == null || _propertySet.getPackage() == null ) return ""; return _propertySet.getPackage().getQualifiedName(); }
[ "public", "String", "getPackage", "(", ")", "{", "if", "(", "_propertySet", "==", "null", "||", "_propertySet", ".", "getPackage", "(", ")", "==", "null", ")", "return", "\"\"", ";", "return", "_propertySet", ".", "getPackage", "(", ")", ".", "getQualified...
Returns the fully qualified package name of this property set
[ "Returns", "the", "fully", "qualified", "package", "name", "of", "this", "property", "set" ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptPropertySet.java#L91-L97
146,508
moparisthebest/beehive
beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptPropertySet.java
AptPropertySet.getPrefix
public String getPrefix() { if (_propertySet == null || _propertySet.getAnnotation(PropertySet.class) == null ) return ""; return _propertySet.getAnnotation(PropertySet.class).prefix(); }
java
public String getPrefix() { if (_propertySet == null || _propertySet.getAnnotation(PropertySet.class) == null ) return ""; return _propertySet.getAnnotation(PropertySet.class).prefix(); }
[ "public", "String", "getPrefix", "(", ")", "{", "if", "(", "_propertySet", "==", "null", "||", "_propertySet", ".", "getAnnotation", "(", "PropertySet", ".", "class", ")", "==", "null", ")", "return", "\"\"", ";", "return", "_propertySet", ".", "getAnnotatio...
Returns the property name prefix for properties in this PropertySet
[ "Returns", "the", "property", "name", "prefix", "for", "properties", "in", "this", "PropertySet" ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptPropertySet.java#L124-L130
146,509
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/util/type/TypeUtils.java
TypeUtils.convertToObject
public static final Object convertToObject(String value, Class type) { return convertToObject(value, type, null); }
java
public static final Object convertToObject(String value, Class type) { return convertToObject(value, type, null); }
[ "public", "static", "final", "Object", "convertToObject", "(", "String", "value", ",", "Class", "type", ")", "{", "return", "convertToObject", "(", "value", ",", "type", ",", "null", ")", ";", "}" ]
Convert an object from a String to the given type. @deprecated @param value the String to convert @param type the type to which to convert the String @return the Object result of converting the String to the type. @throws TypeConverterNotFoundException if a TypeConverter for the target type can not be found.
[ "Convert", "an", "object", "from", "a", "String", "to", "the", "given", "type", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/util/type/TypeUtils.java#L81-L83
146,510
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/AttributeRenderer.java
AttributeRenderer.addElement
public RemoveInfo addElement(TreeElement elem) { // if the attributes are empty then there is nothing to add to lists ArrayList attrs = elem.getAttributeList(); if (attrs == null || attrs.size() == 0) return emptyRemoves; // We will track all of the elements that we are ...
java
public RemoveInfo addElement(TreeElement elem) { // if the attributes are empty then there is nothing to add to lists ArrayList attrs = elem.getAttributeList(); if (attrs == null || attrs.size() == 0) return emptyRemoves; // We will track all of the elements that we are ...
[ "public", "RemoveInfo", "addElement", "(", "TreeElement", "elem", ")", "{", "// if the attributes are empty then there is nothing to add to lists", "ArrayList", "attrs", "=", "elem", ".", "getAttributeList", "(", ")", ";", "if", "(", "attrs", "==", "null", "||", "attr...
Add all of the attributes associated with an element to the internal lists. @param elem
[ "Add", "all", "of", "the", "attributes", "associated", "with", "an", "element", "to", "the", "internal", "lists", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/AttributeRenderer.java#L51-L91
146,511
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/AttributeRenderer.java
AttributeRenderer.removeElementScoped
public void removeElementScoped(TreeElement elem, RemoveInfo removes) { assert(elem != null); // check to see if we can exist without processing this element. If the element // didn't define any attribute then we can. This is inforced in the addElement method. ArrayList attrs = el...
java
public void removeElementScoped(TreeElement elem, RemoveInfo removes) { assert(elem != null); // check to see if we can exist without processing this element. If the element // didn't define any attribute then we can. This is inforced in the addElement method. ArrayList attrs = el...
[ "public", "void", "removeElementScoped", "(", "TreeElement", "elem", ",", "RemoveInfo", "removes", ")", "{", "assert", "(", "elem", "!=", "null", ")", ";", "// check to see if we can exist without processing this element. If the element", "// didn't define any attribute then w...
This method will remove all of the elements scoped to the attribute. @param elem
[ "This", "method", "will", "remove", "all", "of", "the", "elements", "scoped", "to", "the", "attribute", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/AttributeRenderer.java#L97-L133
146,512
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/AttributeRenderer.java
AttributeRenderer.renderIconImage
public void renderIconImage(ImageTag.State state, TreeElement elem) { ArrayList al = _lists[TreeHtmlAttributeInfo.HTML_LOCATION_ICON]; assert(al != null); if (al.size() == 0) return; int cnt = al.size(); for (int i = 0; i < cnt; i++) { TreeHtmlAttrib...
java
public void renderIconImage(ImageTag.State state, TreeElement elem) { ArrayList al = _lists[TreeHtmlAttributeInfo.HTML_LOCATION_ICON]; assert(al != null); if (al.size() == 0) return; int cnt = al.size(); for (int i = 0; i < cnt; i++) { TreeHtmlAttrib...
[ "public", "void", "renderIconImage", "(", "ImageTag", ".", "State", "state", ",", "TreeElement", "elem", ")", "{", "ArrayList", "al", "=", "_lists", "[", "TreeHtmlAttributeInfo", ".", "HTML_LOCATION_ICON", "]", ";", "assert", "(", "al", "!=", "null", ")", ";...
This method will render the values assocated with the Icon Image. @param state @param elem
[ "This", "method", "will", "render", "the", "values", "assocated", "with", "the", "Icon", "Image", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/AttributeRenderer.java#L168-L181
146,513
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/AttributeRenderer.java
AttributeRenderer.renderSelectionLink
public void renderSelectionLink(AnchorTag.State state, TreeElement elem) { ArrayList al = _lists[TreeHtmlAttributeInfo.HTML_LOCATION_SELECTION_LINK]; assert(al != null); if (al.size() == 0) return; int cnt = al.size(); for (int i = 0; i < cnt; i++) { ...
java
public void renderSelectionLink(AnchorTag.State state, TreeElement elem) { ArrayList al = _lists[TreeHtmlAttributeInfo.HTML_LOCATION_SELECTION_LINK]; assert(al != null); if (al.size() == 0) return; int cnt = al.size(); for (int i = 0; i < cnt; i++) { ...
[ "public", "void", "renderSelectionLink", "(", "AnchorTag", ".", "State", "state", ",", "TreeElement", "elem", ")", "{", "ArrayList", "al", "=", "_lists", "[", "TreeHtmlAttributeInfo", ".", "HTML_LOCATION_SELECTION_LINK", "]", ";", "assert", "(", "al", "!=", "nul...
This method will render the values assocated with the selection link. @param state @param elem
[ "This", "method", "will", "render", "the", "values", "assocated", "with", "the", "selection", "link", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/AttributeRenderer.java#L188-L201
146,514
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/AttributeRenderer.java
AttributeRenderer.renderDiv
public void renderDiv(DivTag.State state, TreeElement elem) { ArrayList al = _lists[TreeHtmlAttributeInfo.HTML_LOCATION_DIV]; assert(al != null); if (al.size() == 0) return; int cnt = al.size(); for (int i = 0; i < cnt; i++) { TreeHtmlAttributeInfo a...
java
public void renderDiv(DivTag.State state, TreeElement elem) { ArrayList al = _lists[TreeHtmlAttributeInfo.HTML_LOCATION_DIV]; assert(al != null); if (al.size() == 0) return; int cnt = al.size(); for (int i = 0; i < cnt; i++) { TreeHtmlAttributeInfo a...
[ "public", "void", "renderDiv", "(", "DivTag", ".", "State", "state", ",", "TreeElement", "elem", ")", "{", "ArrayList", "al", "=", "_lists", "[", "TreeHtmlAttributeInfo", ".", "HTML_LOCATION_DIV", "]", ";", "assert", "(", "al", "!=", "null", ")", ";", "if"...
This method will render the values assocated with the div around a treeItem. @param state @param elem
[ "This", "method", "will", "render", "the", "values", "assocated", "with", "the", "div", "around", "a", "treeItem", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/AttributeRenderer.java#L208-L221
146,515
moparisthebest/beehive
beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptMethod.java
AptMethod.getArgDecl
public String getArgDecl(HashMap<String,TypeMirror> bindingMap) { StringBuffer sb = new StringBuffer(); if ( _methodDecl.getParameters() == null ) return ""; int i = 0; for (ParameterDeclaration paramDecl : _methodDecl.getParameters()) { Type...
java
public String getArgDecl(HashMap<String,TypeMirror> bindingMap) { StringBuffer sb = new StringBuffer(); if ( _methodDecl.getParameters() == null ) return ""; int i = 0; for (ParameterDeclaration paramDecl : _methodDecl.getParameters()) { Type...
[ "public", "String", "getArgDecl", "(", "HashMap", "<", "String", ",", "TypeMirror", ">", "bindingMap", ")", "{", "StringBuffer", "sb", "=", "new", "StringBuffer", "(", ")", ";", "if", "(", "_methodDecl", ".", "getParameters", "(", ")", "==", "null", ")", ...
Returns the argument declaration of the method, applying the bindings in the provided type map to any parameter types
[ "Returns", "the", "argument", "declaration", "of", "the", "method", "applying", "the", "bindings", "in", "the", "provided", "type", "map", "to", "any", "parameter", "types" ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptMethod.java#L104-L139
146,516
moparisthebest/beehive
beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptMethod.java
AptMethod.getArgList
public String getArgList(boolean quoteDelimit) { StringBuffer sb = new StringBuffer(); int i = 0; if ( _methodDecl.getParameters() == null ) return ""; for (ParameterDeclaration paramDecl : _methodDecl.getParameters()) { if (i != 0) ...
java
public String getArgList(boolean quoteDelimit) { StringBuffer sb = new StringBuffer(); int i = 0; if ( _methodDecl.getParameters() == null ) return ""; for (ParameterDeclaration paramDecl : _methodDecl.getParameters()) { if (i != 0) ...
[ "public", "String", "getArgList", "(", "boolean", "quoteDelimit", ")", "{", "StringBuffer", "sb", "=", "new", "StringBuffer", "(", ")", ";", "int", "i", "=", "0", ";", "if", "(", "_methodDecl", ".", "getParameters", "(", ")", "==", "null", ")", "return",...
Returns the the method argument names, in a comma separated list
[ "Returns", "the", "the", "method", "argument", "names", "in", "a", "comma", "separated", "list" ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptMethod.java#L152-L177
146,517
moparisthebest/beehive
beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptMethod.java
AptMethod.getArgTypes
public String getArgTypes() { StringBuffer sb = new StringBuffer(); int i = 0; if ( _methodDecl == null || _methodDecl.getParameters() == null ) return ""; for (ParameterDeclaration paramDecl : _methodDecl.getParameters()) { if (i++ != 0) ...
java
public String getArgTypes() { StringBuffer sb = new StringBuffer(); int i = 0; if ( _methodDecl == null || _methodDecl.getParameters() == null ) return ""; for (ParameterDeclaration paramDecl : _methodDecl.getParameters()) { if (i++ != 0) ...
[ "public", "String", "getArgTypes", "(", ")", "{", "StringBuffer", "sb", "=", "new", "StringBuffer", "(", ")", ";", "int", "i", "=", "0", ";", "if", "(", "_methodDecl", "==", "null", "||", "_methodDecl", ".", "getParameters", "(", ")", "==", "null", ")"...
Returns the the method argument classes, in a comma separated list
[ "Returns", "the", "the", "method", "argument", "classes", "in", "a", "comma", "separated", "list" ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptMethod.java#L187-L212
146,518
moparisthebest/beehive
beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptMethod.java
AptMethod.hasParameterizedArguments
public boolean hasParameterizedArguments() { for (ParameterDeclaration paramDecl : _methodDecl.getParameters()) { TypeMirror paramType = paramDecl.getType(); if (paramType instanceof ReferenceType || paramType instanceof WildcardType) return true; } ...
java
public boolean hasParameterizedArguments() { for (ParameterDeclaration paramDecl : _methodDecl.getParameters()) { TypeMirror paramType = paramDecl.getType(); if (paramType instanceof ReferenceType || paramType instanceof WildcardType) return true; } ...
[ "public", "boolean", "hasParameterizedArguments", "(", ")", "{", "for", "(", "ParameterDeclaration", "paramDecl", ":", "_methodDecl", ".", "getParameters", "(", ")", ")", "{", "TypeMirror", "paramType", "=", "paramDecl", ".", "getType", "(", ")", ";", "if", "(...
Returns 'true' if the method uses any parameterized types as parameters
[ "Returns", "true", "if", "the", "method", "uses", "any", "parameterized", "types", "as", "parameters" ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptMethod.java#L217-L226
146,519
moparisthebest/beehive
beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptMethod.java
AptMethod.getFormalTypes
public String getFormalTypes() { if ( _methodDecl == null || _methodDecl.getReturnType() == null ) return ""; Collection<TypeParameterDeclaration> formalTypes = _methodDecl.getFormalTypeParameters(); if (formalTypes.size() == 0) return ""; StringBuffer sb = ...
java
public String getFormalTypes() { if ( _methodDecl == null || _methodDecl.getReturnType() == null ) return ""; Collection<TypeParameterDeclaration> formalTypes = _methodDecl.getFormalTypeParameters(); if (formalTypes.size() == 0) return ""; StringBuffer sb = ...
[ "public", "String", "getFormalTypes", "(", ")", "{", "if", "(", "_methodDecl", "==", "null", "||", "_methodDecl", ".", "getReturnType", "(", ")", "==", "null", ")", "return", "\"\"", ";", "Collection", "<", "TypeParameterDeclaration", ">", "formalTypes", "=", ...
Returns the declaration of any generic formal types associated with the method
[ "Returns", "the", "declaration", "of", "any", "generic", "formal", "types", "associated", "with", "the", "method" ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptMethod.java#L231-L253
146,520
moparisthebest/beehive
beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptMethod.java
AptMethod.getReturnType
public String getReturnType(HashMap<String,TypeMirror> bindingMap) { if ( _methodDecl == null || _methodDecl.getReturnType() == null ) return ""; String returnType = _methodDecl.getReturnType().toString(); if (bindingMap != null && bindingMap.containsKey(returnType)) ...
java
public String getReturnType(HashMap<String,TypeMirror> bindingMap) { if ( _methodDecl == null || _methodDecl.getReturnType() == null ) return ""; String returnType = _methodDecl.getReturnType().toString(); if (bindingMap != null && bindingMap.containsKey(returnType)) ...
[ "public", "String", "getReturnType", "(", "HashMap", "<", "String", ",", "TypeMirror", ">", "bindingMap", ")", "{", "if", "(", "_methodDecl", "==", "null", "||", "_methodDecl", ".", "getReturnType", "(", ")", "==", "null", ")", "return", "\"\"", ";", "Stri...
Returns the method return type, applying any formal type parameter bindings defined by the provided map.
[ "Returns", "the", "method", "return", "type", "applying", "any", "formal", "type", "parameter", "bindings", "defined", "by", "the", "provided", "map", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptMethod.java#L259-L269
146,521
moparisthebest/beehive
beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptMethod.java
AptMethod.getThrowsClause
public String getThrowsClause() { if ( _methodDecl == null || _methodDecl.getThrownTypes() == null ) return ""; Collection<ReferenceType> thrownTypes = _methodDecl.getThrownTypes(); if (thrownTypes.size() == 0) return ""; StringBuffer sb = new String...
java
public String getThrowsClause() { if ( _methodDecl == null || _methodDecl.getThrownTypes() == null ) return ""; Collection<ReferenceType> thrownTypes = _methodDecl.getThrownTypes(); if (thrownTypes.size() == 0) return ""; StringBuffer sb = new String...
[ "public", "String", "getThrowsClause", "(", ")", "{", "if", "(", "_methodDecl", "==", "null", "||", "_methodDecl", ".", "getThrownTypes", "(", ")", "==", "null", ")", "return", "\"\"", ";", "Collection", "<", "ReferenceType", ">", "thrownTypes", "=", "_metho...
Returns the throws clause of the operation
[ "Returns", "the", "throws", "clause", "of", "the", "operation" ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptMethod.java#L282-L300
146,522
moparisthebest/beehive
beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptMethod.java
AptMethod.getThrowsList
public ArrayList<String> getThrowsList() { ArrayList<String> throwsList = new ArrayList<String>(); if ( _methodDecl == null || _methodDecl.getThrownTypes() == null || _methodDecl.getThrownTypes().size() == 0 ) return throwsList; Collection<Refe...
java
public ArrayList<String> getThrowsList() { ArrayList<String> throwsList = new ArrayList<String>(); if ( _methodDecl == null || _methodDecl.getThrownTypes() == null || _methodDecl.getThrownTypes().size() == 0 ) return throwsList; Collection<Refe...
[ "public", "ArrayList", "<", "String", ">", "getThrowsList", "(", ")", "{", "ArrayList", "<", "String", ">", "throwsList", "=", "new", "ArrayList", "<", "String", ">", "(", ")", ";", "if", "(", "_methodDecl", "==", "null", "||", "_methodDecl", ".", "getTh...
Returns an ArrayList of thrown exceptions
[ "Returns", "an", "ArrayList", "of", "thrown", "exceptions" ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptMethod.java#L305-L319
146,523
moparisthebest/beehive
beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptMethod.java
AptMethod.getDefaultReturnValue
public String getDefaultReturnValue(HashMap<String,TypeMirror> typeBinding) { String returnType = getReturnType(typeBinding); if (_defaultReturnValues.containsKey(returnType)) return _defaultReturnValues.get(returnType); return "null"; }
java
public String getDefaultReturnValue(HashMap<String,TypeMirror> typeBinding) { String returnType = getReturnType(typeBinding); if (_defaultReturnValues.containsKey(returnType)) return _defaultReturnValues.get(returnType); return "null"; }
[ "public", "String", "getDefaultReturnValue", "(", "HashMap", "<", "String", ",", "TypeMirror", ">", "typeBinding", ")", "{", "String", "returnType", "=", "getReturnType", "(", "typeBinding", ")", ";", "if", "(", "_defaultReturnValues", ".", "containsKey", "(", "...
Returns a default return value string for the method, based upon bound return type
[ "Returns", "a", "default", "return", "value", "string", "for", "the", "method", "based", "upon", "bound", "return", "type" ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptMethod.java#L324-L330
146,524
moparisthebest/beehive
beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptMethod.java
AptMethod.isPublic
protected boolean isPublic() { Collection<Modifier> modifiers = _methodDecl.getModifiers(); return modifiers.contains(Modifier.PUBLIC); }
java
protected boolean isPublic() { Collection<Modifier> modifiers = _methodDecl.getModifiers(); return modifiers.contains(Modifier.PUBLIC); }
[ "protected", "boolean", "isPublic", "(", ")", "{", "Collection", "<", "Modifier", ">", "modifiers", "=", "_methodDecl", ".", "getModifiers", "(", ")", ";", "return", "modifiers", ".", "contains", "(", "Modifier", ".", "PUBLIC", ")", ";", "}" ]
Is this a public method? @return true if public
[ "Is", "this", "a", "public", "method?" ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptMethod.java#L369-L372
146,525
moparisthebest/beehive
beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptMethod.java
AptMethod.getInterceptorDecl
public String getInterceptorDecl() { Collection<String> names = getInterceptorServiceNames(); if ( names == null || names.size() == 0 ) return null; StringBuffer ret = new StringBuffer("{"); String [] n = names.toArray(new String[0]); for (int i=0 ; i < n.length...
java
public String getInterceptorDecl() { Collection<String> names = getInterceptorServiceNames(); if ( names == null || names.size() == 0 ) return null; StringBuffer ret = new StringBuffer("{"); String [] n = names.toArray(new String[0]); for (int i=0 ; i < n.length...
[ "public", "String", "getInterceptorDecl", "(", ")", "{", "Collection", "<", "String", ">", "names", "=", "getInterceptorServiceNames", "(", ")", ";", "if", "(", "names", "==", "null", "||", "names", ".", "size", "(", ")", "==", "0", ")", "return", "null"...
Returns the names of interceptor service interfaces associated with this operation, formatted as a constant initializer string. @return the names of the interceptor service interfaces associated with this operation
[ "Returns", "the", "names", "of", "interceptor", "service", "interfaces", "associated", "with", "this", "operation", "formatted", "as", "a", "constant", "initializer", "string", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/AptMethod.java#L392-L410
146,526
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/TreeElement.java
TreeElement.setIcon
public void setIcon(String icon) { ExtendedInfo info = getInfo(icon); if (info != null) info._icon = icon; }
java
public void setIcon(String icon) { ExtendedInfo info = getInfo(icon); if (info != null) info._icon = icon; }
[ "public", "void", "setIcon", "(", "String", "icon", ")", "{", "ExtendedInfo", "info", "=", "getInfo", "(", "icon", ")", ";", "if", "(", "info", "!=", "null", ")", "info", ".", "_icon", "=", "icon", ";", "}" ]
Set the pathname to the icon to display when this node is visible. The name is relative to the image directory. @param icon The relative path to the icond.
[ "Set", "the", "pathname", "to", "the", "icon", "to", "display", "when", "this", "node", "is", "visible", ".", "The", "name", "is", "relative", "to", "the", "image", "directory", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/TreeElement.java#L124-L129
146,527
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/TreeElement.java
TreeElement.setTagId
public void setTagId(String tagId) { ExtendedInfo info = getInfo(tagId); if (info != null) info._tagId = tagId; }
java
public void setTagId(String tagId) { ExtendedInfo info = getInfo(tagId); if (info != null) info._tagId = tagId; }
[ "public", "void", "setTagId", "(", "String", "tagId", ")", "{", "ExtendedInfo", "info", "=", "getInfo", "(", "tagId", ")", ";", "if", "(", "info", "!=", "null", ")", "info", ".", "_tagId", "=", "tagId", ";", "}" ]
Set the ID of the tag. @param tagId the tagId.
[ "Set", "the", "ID", "of", "the", "tag", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/TreeElement.java#L234-L239
146,528
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/TreeElement.java
TreeElement.isLast
public boolean isLast() { if (_parent == null) return true; int last = _parent.size() - 1; assert(last >= 0); return (_parent.getChild(last) == this); }
java
public boolean isLast() { if (_parent == null) return true; int last = _parent.size() - 1; assert(last >= 0); return (_parent.getChild(last) == this); }
[ "public", "boolean", "isLast", "(", ")", "{", "if", "(", "_parent", "==", "null", ")", "return", "true", ";", "int", "last", "=", "_parent", ".", "size", "(", ")", "-", "1", ";", "assert", "(", "last", ">=", "0", ")", ";", "return", "(", "_parent...
Gets whether or not this is the last node in the set of children for the parent node. @return if this is the last or not
[ "Gets", "whether", "or", "not", "this", "is", "the", "last", "node", "in", "the", "set", "of", "children", "for", "the", "parent", "node", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/TreeElement.java#L408-L415
146,529
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/TreeElement.java
TreeElement.addChild
public void addChild(TreeElement child) throws IllegalArgumentException { TreeElement theChild = child; theChild.setParent(this); if (getName() == null) { setName("0"); } if (_children == null) { _children = new ArrayList(); } ...
java
public void addChild(TreeElement child) throws IllegalArgumentException { TreeElement theChild = child; theChild.setParent(this); if (getName() == null) { setName("0"); } if (_children == null) { _children = new ArrayList(); } ...
[ "public", "void", "addChild", "(", "TreeElement", "child", ")", "throws", "IllegalArgumentException", "{", "TreeElement", "theChild", "=", "child", ";", "theChild", ".", "setParent", "(", "this", ")", ";", "if", "(", "getName", "(", ")", "==", "null", ")", ...
Add a new child node to the end of the list. @param child The new child node @throws IllegalArgumentException if the name of the new child node is not unique
[ "Add", "a", "new", "child", "node", "to", "the", "end", "of", "the", "list", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/TreeElement.java#L571-L592
146,530
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/TreeElement.java
TreeElement.addChild
public void addChild(int offset, TreeElement child) throws IllegalArgumentException { child.setSelected(false); child.setParent(this); if (_children == null) _children = new ArrayList(); _children.add(offset, child); //Need to rename all affected! ...
java
public void addChild(int offset, TreeElement child) throws IllegalArgumentException { child.setSelected(false); child.setParent(this); if (_children == null) _children = new ArrayList(); _children.add(offset, child); //Need to rename all affected! ...
[ "public", "void", "addChild", "(", "int", "offset", ",", "TreeElement", "child", ")", "throws", "IllegalArgumentException", "{", "child", ".", "setSelected", "(", "false", ")", ";", "child", ".", "setParent", "(", "this", ")", ";", "if", "(", "_children", ...
Add a new child node at the specified position in the child list. @param offset Zero-relative offset at which the new node should be inserted @param child The new child node @throws IllegalArgumentException if the name of the new child node is not unique
[ "Add", "a", "new", "child", "node", "at", "the", "specified", "position", "in", "the", "child", "list", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/TreeElement.java#L613-L629
146,531
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/TreeElement.java
TreeElement.getChild
public TreeElement getChild(int index) { TreeElement childNode = null; if (_children == null) return null; Object child = _children.get(index); if (child != null) { childNode = (TreeElement) child; } return childNode; }
java
public TreeElement getChild(int index) { TreeElement childNode = null; if (_children == null) return null; Object child = _children.get(index); if (child != null) { childNode = (TreeElement) child; } return childNode; }
[ "public", "TreeElement", "getChild", "(", "int", "index", ")", "{", "TreeElement", "childNode", "=", "null", ";", "if", "(", "_children", "==", "null", ")", "return", "null", ";", "Object", "child", "=", "_children", ".", "get", "(", "index", ")", ";", ...
Return the child node at the given zero-relative index. @param index The child node index @return the child node
[ "Return", "the", "child", "node", "at", "the", "given", "zero", "-", "relative", "index", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/TreeElement.java#L657-L667
146,532
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/TreeElement.java
TreeElement.removeChild
public void removeChild(TreeElement child) { if (child == null || _children == null) return; int size = _children.size(); int removeIndex = -1; for (int i = 0; i < size; i++) { if (child == (TreeElement) _children.get(i)) { _children.remove(i...
java
public void removeChild(TreeElement child) { if (child == null || _children == null) return; int size = _children.size(); int removeIndex = -1; for (int i = 0; i < size; i++) { if (child == (TreeElement) _children.get(i)) { _children.remove(i...
[ "public", "void", "removeChild", "(", "TreeElement", "child", ")", "{", "if", "(", "child", "==", "null", "||", "_children", "==", "null", ")", "return", ";", "int", "size", "=", "_children", ".", "size", "(", ")", ";", "int", "removeIndex", "=", "-", ...
Remove the specified child node. All of the children of this child node will also be removed. @param child Child node to be removed
[ "Remove", "the", "specified", "child", "node", ".", "All", "of", "the", "children", "of", "this", "child", "node", "will", "also", "be", "removed", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/TreeElement.java#L700-L723
146,533
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/TreeElement.java
TreeElement.updateName
protected void updateName(TreeElement parentNode, int index) { setName(getNodeName(parentNode, index)); TreeElement[] children = getChildren(); for (int i = 0; i < children.length; i++) { children[i].updateName(this, i); } }
java
protected void updateName(TreeElement parentNode, int index) { setName(getNodeName(parentNode, index)); TreeElement[] children = getChildren(); for (int i = 0; i < children.length; i++) { children[i].updateName(this, i); } }
[ "protected", "void", "updateName", "(", "TreeElement", "parentNode", ",", "int", "index", ")", "{", "setName", "(", "getNodeName", "(", "parentNode", ",", "index", ")", ")", ";", "TreeElement", "[", "]", "children", "=", "getChildren", "(", ")", ";", "for"...
This method will update the name of this node and all of the children node. The name of a node reflects it's position in the tree. @param parentNode The parent node of this node. @param index the index position of this node within the parent node.
[ "This", "method", "will", "update", "the", "name", "of", "this", "node", "and", "all", "of", "the", "children", "node", ".", "The", "name", "of", "a", "node", "reflects", "it", "s", "position", "in", "the", "tree", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/TreeElement.java#L731-L738
146,534
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/TreeElement.java
TreeElement.getRoot
public static TreeElement getRoot(TreeElement node) { TreeElement parentNode = node.getParent(); while (parentNode != null) { node = parentNode; parentNode = node.getParent(); } return node; }
java
public static TreeElement getRoot(TreeElement node) { TreeElement parentNode = node.getParent(); while (parentNode != null) { node = parentNode; parentNode = node.getParent(); } return node; }
[ "public", "static", "TreeElement", "getRoot", "(", "TreeElement", "node", ")", "{", "TreeElement", "parentNode", "=", "node", ".", "getParent", "(", ")", ";", "while", "(", "parentNode", "!=", "null", ")", "{", "node", "=", "parentNode", ";", "parentNode", ...
Gets the root node of this tree. @param node The TreeElement to start from @return The root node
[ "Gets", "the", "root", "node", "of", "this", "tree", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/TreeElement.java#L746-L754
146,535
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/TreeElement.java
TreeElement.findNode
public TreeElement findNode(String nodeName) { TreeElement root = getRoot(this); return root.findNodeRecurse(nodeName, nodeName); }
java
public TreeElement findNode(String nodeName) { TreeElement root = getRoot(this); return root.findNodeRecurse(nodeName, nodeName); }
[ "public", "TreeElement", "findNode", "(", "String", "nodeName", ")", "{", "TreeElement", "root", "=", "getRoot", "(", "this", ")", ";", "return", "root", ".", "findNodeRecurse", "(", "nodeName", ",", "nodeName", ")", ";", "}" ]
Given a node, find the named child. @param nodeName the name of the child to find. @return the node identified by the name
[ "Given", "a", "node", "find", "the", "named", "child", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/TreeElement.java#L761-L765
146,536
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/TreeElement.java
TreeElement.findNodeRecurse
private TreeElement findNodeRecurse(String fullName, String currentName) { String remainingName = null; if ((currentName == null) || (fullName == null)) { return null; } if (getName().equals(fullName)) { return this; } if (currentName.indexOf(...
java
private TreeElement findNodeRecurse(String fullName, String currentName) { String remainingName = null; if ((currentName == null) || (fullName == null)) { return null; } if (getName().equals(fullName)) { return this; } if (currentName.indexOf(...
[ "private", "TreeElement", "findNodeRecurse", "(", "String", "fullName", ",", "String", "currentName", ")", "{", "String", "remainingName", "=", "null", ";", "if", "(", "(", "currentName", "==", "null", ")", "||", "(", "fullName", "==", "null", ")", ")", "{...
Helper routine that will recursively search the tree for the node. @param fullName The full name that we are looking for @param currentName The name of the current node. @return The node matching the name or <code>null</code>
[ "Helper", "routine", "that", "will", "recursively", "search", "the", "tree", "for", "the", "node", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/TreeElement.java#L788-L817
146,537
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/TreeElement.java
TreeElement.getInfo
private ExtendedInfo getInfo(Object o) { if (_info == null && o != null) { _info = new ExtendedInfo(); } return _info; }
java
private ExtendedInfo getInfo(Object o) { if (_info == null && o != null) { _info = new ExtendedInfo(); } return _info; }
[ "private", "ExtendedInfo", "getInfo", "(", "Object", "o", ")", "{", "if", "(", "_info", "==", "null", "&&", "o", "!=", "null", ")", "{", "_info", "=", "new", "ExtendedInfo", "(", ")", ";", "}", "return", "_info", ";", "}" ]
This will get the ExtendedInfo object. If it hasn't been created, this routine only creates it if the object passed in is non-null. @param o @return
[ "This", "will", "get", "the", "ExtendedInfo", "object", ".", "If", "it", "hasn", "t", "been", "created", "this", "routine", "only", "creates", "it", "if", "the", "object", "passed", "in", "is", "non", "-", "null", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/TreeElement.java#L825-L831
146,538
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/FlowController.java
FlowController.reinitialize
public void reinitialize( HttpServletRequest request, HttpServletResponse response, ServletContext servletContext ) { // // Cache the associated ModuleConfig. This is used throughout the code, in places where the request // isn't available to do a lazy initialization. // sup...
java
public void reinitialize( HttpServletRequest request, HttpServletResponse response, ServletContext servletContext ) { // // Cache the associated ModuleConfig. This is used throughout the code, in places where the request // isn't available to do a lazy initialization. // sup...
[ "public", "void", "reinitialize", "(", "HttpServletRequest", "request", ",", "HttpServletResponse", "response", ",", "ServletContext", "servletContext", ")", "{", "//", "// Cache the associated ModuleConfig. This is used throughout the code, in places where the request", "// isn't a...
Reinitialize the object for a new request. Used by the framework; normally should not be called directly.
[ "Reinitialize", "the", "object", "for", "a", "new", "request", ".", "Used", "by", "the", "framework", ";", "normally", "should", "not", "be", "called", "directly", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/FlowController.java#L154-L161
146,539
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/FlowController.java
FlowController.handleException
public synchronized ActionForward handleException( Throwable ex, ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) throws IOException, ServletException ...
java
public synchronized ActionForward handleException( Throwable ex, ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) throws IOException, ServletException ...
[ "public", "synchronized", "ActionForward", "handleException", "(", "Throwable", "ex", ",", "ActionMapping", "mapping", ",", "ActionForm", "form", ",", "HttpServletRequest", "request", ",", "HttpServletResponse", "response", ")", "throws", "IOException", ",", "ServletExc...
Handle the given exception - invoke user code if appropriate and return a destination URI. @param ex the Exception to handle. @param mapping the Struts action mapping for current Struts action being processed. @param form the form-bean (if any) associated with the Struts action being processed. May be null. @param re...
[ "Handle", "the", "given", "exception", "-", "invoke", "user", "code", "if", "appropriate", "and", "return", "a", "destination", "URI", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/FlowController.java#L258-L279
146,540
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/FlowController.java
FlowController.execute
public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) throws Exception { // // Don't actually run the action (and perform the associated synchronization) if there are too many ...
java
public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) throws Exception { // // Don't actually run the action (and perform the associated synchronization) if there are too many ...
[ "public", "ActionForward", "execute", "(", "ActionMapping", "mapping", ",", "ActionForm", "form", ",", "HttpServletRequest", "request", ",", "HttpServletResponse", "response", ")", "throws", "Exception", "{", "//", "// Don't actually run the action (and perform the associated...
Perform decision logic to determine the next URI to be displayed. @param mapping the Struts ActionMapping for the current action being processed. @param form the form-bean (if any) associated with the Struts action being processed. May be null. @param request the current HttpServletRequest. @param response the curren...
[ "Perform", "decision", "logic", "to", "determine", "the", "next", "URI", "to", "be", "displayed", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/FlowController.java#L307-L366
146,541
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/FlowController.java
FlowController.destroy
void destroy( HttpSession session ) { onDestroy(); // for backwards compatiblity super.destroy( session ); // // We may have lost our transient ServletContext reference. Try to get the ServletContext reference from the // HttpSession object if necessary. // ...
java
void destroy( HttpSession session ) { onDestroy(); // for backwards compatiblity super.destroy( session ); // // We may have lost our transient ServletContext reference. Try to get the ServletContext reference from the // HttpSession object if necessary. // ...
[ "void", "destroy", "(", "HttpSession", "session", ")", "{", "onDestroy", "(", ")", ";", "// for backwards compatiblity", "super", ".", "destroy", "(", "session", ")", ";", "//", "// We may have lost our transient ServletContext reference. Try to get the ServletContext refere...
Internal destroy method that is invoked when this object is being removed from the session. This is a framework-invoked method; it should not normally be called directly.
[ "Internal", "destroy", "method", "that", "is", "invoked", "when", "this", "object", "is", "being", "removed", "from", "the", "session", ".", "This", "is", "a", "framework", "-", "invoked", "method", ";", "it", "should", "not", "normally", "be", "called", "...
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/FlowController.java#L608-L625
146,542
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/FlowController.java
FlowController.getActionMethodForward
ActionForward getActionMethodForward( String actionName, Object inputForm, HttpServletRequest request, HttpServletResponse response, ActionMapping mapping ) throws Exception { // // Find the method. ...
java
ActionForward getActionMethodForward( String actionName, Object inputForm, HttpServletRequest request, HttpServletResponse response, ActionMapping mapping ) throws Exception { // // Find the method. ...
[ "ActionForward", "getActionMethodForward", "(", "String", "actionName", ",", "Object", "inputForm", ",", "HttpServletRequest", "request", ",", "HttpServletResponse", "response", ",", "ActionMapping", "mapping", ")", "throws", "Exception", "{", "//", "// Find the method.",...
Get the ActionForward returned by the action handler method that corresponds to the given action name and form-bean, or send an error to the browser if there is no matching method. @param actionName the name of the Struts action to handle. @param inputForm the form-bean associated with the action. May be <code>null</...
[ "Get", "the", "ActionForward", "returned", "by", "the", "action", "handler", "method", "that", "corresponds", "to", "the", "given", "action", "name", "and", "form", "-", "bean", "or", "send", "an", "error", "to", "the", "browser", "if", "there", "is", "no"...
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/FlowController.java#L794-L824
146,543
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/FlowController.java
FlowController.getModuleConfig
protected final ModuleConfig getModuleConfig() { if ( _moduleConfig == null ) { _moduleConfig = InternalUtils.ensureModuleConfig(getModulePath(), getServletContext()); assert _moduleConfig != null : getModulePath() + "; " + getClass().getName(); } return _modu...
java
protected final ModuleConfig getModuleConfig() { if ( _moduleConfig == null ) { _moduleConfig = InternalUtils.ensureModuleConfig(getModulePath(), getServletContext()); assert _moduleConfig != null : getModulePath() + "; " + getClass().getName(); } return _modu...
[ "protected", "final", "ModuleConfig", "getModuleConfig", "(", ")", "{", "if", "(", "_moduleConfig", "==", "null", ")", "{", "_moduleConfig", "=", "InternalUtils", ".", "ensureModuleConfig", "(", "getModulePath", "(", ")", ",", "getServletContext", "(", ")", ")",...
Get the Struts ModuleConfig object associated with this FlowController.
[ "Get", "the", "Struts", "ModuleConfig", "object", "associated", "with", "this", "FlowController", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/FlowController.java#L1026-L1034
146,544
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/FlowController.java
FlowController.getActions
protected String[] getActions() { ActionConfig[] actionConfigs = getModuleConfig().findActionConfigs(); ArrayList actionNames = new ArrayList(); for ( int i = 0; i < actionConfigs.length; i++ ) { ActionConfig ac = actionConfigs[i]; actionNames.add( ac.getPath...
java
protected String[] getActions() { ActionConfig[] actionConfigs = getModuleConfig().findActionConfigs(); ArrayList actionNames = new ArrayList(); for ( int i = 0; i < actionConfigs.length; i++ ) { ActionConfig ac = actionConfigs[i]; actionNames.add( ac.getPath...
[ "protected", "String", "[", "]", "getActions", "(", ")", "{", "ActionConfig", "[", "]", "actionConfigs", "=", "getModuleConfig", "(", ")", ".", "findActionConfigs", "(", ")", ";", "ArrayList", "actionNames", "=", "new", "ArrayList", "(", ")", ";", "for", "...
Get a list of the names of actions handled by methods in this PageFlowController. @return a String array containing the names of actions handled by methods in this PageFlowController.
[ "Get", "a", "list", "of", "the", "names", "of", "actions", "handled", "by", "methods", "in", "this", "PageFlowController", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/FlowController.java#L1145-L1157
146,545
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/FlowController.java
FlowController.invokeExceptionHandler
public synchronized ActionForward invokeExceptionHandler( Method method, Throwable ex, String message, ActionForm wrappedFormBean, PageFlowExceptionConfig exceptionConfig, ActionMapping actionMapping, HttpServletRequest request, HttpServletResponse response ) throws IOExcepti...
java
public synchronized ActionForward invokeExceptionHandler( Method method, Throwable ex, String message, ActionForm wrappedFormBean, PageFlowExceptionConfig exceptionConfig, ActionMapping actionMapping, HttpServletRequest request, HttpServletResponse response ) throws IOExcepti...
[ "public", "synchronized", "ActionForward", "invokeExceptionHandler", "(", "Method", "method", ",", "Throwable", "ex", ",", "String", "message", ",", "ActionForm", "wrappedFormBean", ",", "PageFlowExceptionConfig", "exceptionConfig", ",", "ActionMapping", "actionMapping", ...
Invoke the given exception handler method. This is a framework-invoked method that should not normally be called directly @param method the action handler method to invoke. @param ex the Throwable that is to be handled. @param message the String message that is to be passed to the handler method. @param wrappedFormBe...
[ "Invoke", "the", "given", "exception", "handler", "method", ".", "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/FlowController.java#L1383-L1462
146,546
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/FlowController.java
FlowController.getDataSource
protected DataSource getDataSource( HttpServletRequest request, String key ) { // Return the requested data source instance return ( DataSource ) getServletContext().getAttribute( key + getModuleConfig().getPrefix() ); }
java
protected DataSource getDataSource( HttpServletRequest request, String key ) { // Return the requested data source instance return ( DataSource ) getServletContext().getAttribute( key + getModuleConfig().getPrefix() ); }
[ "protected", "DataSource", "getDataSource", "(", "HttpServletRequest", "request", ",", "String", "key", ")", "{", "// Return the requested data source instance", "return", "(", "DataSource", ")", "getServletContext", "(", ")", ".", "getAttribute", "(", "key", "+", "ge...
Return the specified data source for the current Struts module. @param request The servlet request we are processing @param key The key specified in the <code>&lt;message-resources&gt;</code> element for the requested bundle
[ "Return", "the", "specified", "data", "source", "for", "the", "current", "Struts", "module", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/FlowController.java#L1596-L1600
146,547
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/FlowController.java
FlowController.getLocale
protected Locale getLocale( HttpServletRequest request ) { HttpSession session = request.getSession(); Locale locale = ( Locale ) session.getAttribute( Globals.LOCALE_KEY ); return locale != null ? locale : DEFAULT_LOCALE; }
java
protected Locale getLocale( HttpServletRequest request ) { HttpSession session = request.getSession(); Locale locale = ( Locale ) session.getAttribute( Globals.LOCALE_KEY ); return locale != null ? locale : DEFAULT_LOCALE; }
[ "protected", "Locale", "getLocale", "(", "HttpServletRequest", "request", ")", "{", "HttpSession", "session", "=", "request", ".", "getSession", "(", ")", ";", "Locale", "locale", "=", "(", "Locale", ")", "session", ".", "getAttribute", "(", "Globals", ".", ...
Return the user's currently selected Locale. @param request the current request. @return the user's currently selected Locale, stored in the session. @deprecated Use {@link #getLocale} or {@link #retrieveUserLocale}.
[ "Return", "the", "user", "s", "currently", "selected", "Locale", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/FlowController.java#L1610-L1616
146,548
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/FlowController.java
FlowController.getMessageResources
protected MessageResources getMessageResources( String key ) { return ( MessageResources ) getServletContext().getAttribute( key + getModuleConfig().getPrefix() ); }
java
protected MessageResources getMessageResources( String key ) { return ( MessageResources ) getServletContext().getAttribute( key + getModuleConfig().getPrefix() ); }
[ "protected", "MessageResources", "getMessageResources", "(", "String", "key", ")", "{", "return", "(", "MessageResources", ")", "getServletContext", "(", ")", ".", "getAttribute", "(", "key", "+", "getModuleConfig", "(", ")", ".", "getPrefix", "(", ")", ")", "...
Get the specified message resources for this FlowController. @param key The bundle key specified in a {@link org.apache.beehive.netui.pageflow.annotations.Jpf.MessageBundle &#64;Jpf.MessageBundle} annotation.
[ "Get", "the", "specified", "message", "resources", "for", "this", "FlowController", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/FlowController.java#L1690-L1693
146,549
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/FlowController.java
FlowController.getFormBean
public ActionForm getFormBean( ActionMapping mapping ) { if ( mapping instanceof PageFlowActionMapping ) { PageFlowActionMapping pfam = ( PageFlowActionMapping ) mapping; String formMember = pfam.getFormMember(); if ( formMember == null ) return null; ...
java
public ActionForm getFormBean( ActionMapping mapping ) { if ( mapping instanceof PageFlowActionMapping ) { PageFlowActionMapping pfam = ( PageFlowActionMapping ) mapping; String formMember = pfam.getFormMember(); if ( formMember == null ) return null; ...
[ "public", "ActionForm", "getFormBean", "(", "ActionMapping", "mapping", ")", "{", "if", "(", "mapping", "instanceof", "PageFlowActionMapping", ")", "{", "PageFlowActionMapping", "pfam", "=", "(", "PageFlowActionMapping", ")", "mapping", ";", "String", "formMember", ...
Get the flow-scoped form bean member associated with the given ActionMapping. This is a framework-invoked method that should not normally be called directly.
[ "Get", "the", "flow", "-", "scoped", "form", "bean", "member", "associated", "with", "the", "given", "ActionMapping", ".", "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/FlowController.java#L1961-L1997
146,550
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/FlowController.java
FlowController.getRewrittenActionURI
public String getRewrittenActionURI( String actionName, Map parameters, boolean asValidXml ) throws URISyntaxException { if ( _perRequestState == null ) { throw new IllegalStateException( "getRewrittenActionURI was called outside of a valid context." ); } Serv...
java
public String getRewrittenActionURI( String actionName, Map parameters, boolean asValidXml ) throws URISyntaxException { if ( _perRequestState == null ) { throw new IllegalStateException( "getRewrittenActionURI was called outside of a valid context." ); } Serv...
[ "public", "String", "getRewrittenActionURI", "(", "String", "actionName", ",", "Map", "parameters", ",", "boolean", "asValidXml", ")", "throws", "URISyntaxException", "{", "if", "(", "_perRequestState", "==", "null", ")", "{", "throw", "new", "IllegalStateException"...
Create a fully-rewritten URI given an action and parameters. @param actionName the action name to convert into a fully-rewritten URI; may be qualified with a path from the webapp root, in which case the parent directory from the current request is <i>not</i> used. @param parameters the additional parameters to include...
[ "Create", "a", "fully", "-", "rewritten", "URI", "given", "an", "action", "and", "parameters", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/FlowController.java#L2070-L2083
146,551
moparisthebest/beehive
beehive-ejb-control/src/main/java/org/apache/beehive/controls/system/ejb/EJBInfo.java
EJBInfo.getRoot
public Class getRoot(Class clazz, HashMap derivesFrom) { while (derivesFrom.containsKey(clazz)) clazz = (Class) derivesFrom.get(clazz); return clazz; }
java
public Class getRoot(Class clazz, HashMap derivesFrom) { while (derivesFrom.containsKey(clazz)) clazz = (Class) derivesFrom.get(clazz); return clazz; }
[ "public", "Class", "getRoot", "(", "Class", "clazz", ",", "HashMap", "derivesFrom", ")", "{", "while", "(", "derivesFrom", ".", "containsKey", "(", "clazz", ")", ")", "clazz", "=", "(", "Class", ")", "derivesFrom", ".", "get", "(", "clazz", ")", ";", "...
Unwinds the results of reflecting through the interface inheritance hierachy to find the original root class from a derived class
[ "Unwinds", "the", "results", "of", "reflecting", "through", "the", "interface", "inheritance", "hierachy", "to", "find", "the", "original", "root", "class", "from", "a", "derived", "class" ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-ejb-control/src/main/java/org/apache/beehive/controls/system/ejb/EJBInfo.java#L148-L151
146,552
moparisthebest/beehive
beehive-jms-control/src/main/java/org/apache/beehive/controls/system/jndi/impl/JndiControlImpl.java
JndiControlImpl.getInitialContext
public InitialContext getInitialContext() throws ControlException { if (_initialContext != null) { return _initialContext; } Properties props = (Properties) _context.getControlPropertySet(Properties.class); String url = nullIfEmpty(props.url()); String factory = nullI...
java
public InitialContext getInitialContext() throws ControlException { if (_initialContext != null) { return _initialContext; } Properties props = (Properties) _context.getControlPropertySet(Properties.class); String url = nullIfEmpty(props.url()); String factory = nullI...
[ "public", "InitialContext", "getInitialContext", "(", ")", "throws", "ControlException", "{", "if", "(", "_initialContext", "!=", "null", ")", "{", "return", "_initialContext", ";", "}", "Properties", "props", "=", "(", "Properties", ")", "_context", ".", "getCo...
Get the initial context. @return the initial context.
[ "Get", "the", "initial", "context", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-jms-control/src/main/java/org/apache/beehive/controls/system/jndi/impl/JndiControlImpl.java#L60-L98
146,553
moparisthebest/beehive
beehive-jms-control/src/main/java/org/apache/beehive/controls/system/jndi/impl/JndiControlImpl.java
JndiControlImpl.nullIfEmpty
protected String nullIfEmpty(String str) { return (str == null || str.trim().length() == 0) ? null : str; }
java
protected String nullIfEmpty(String str) { return (str == null || str.trim().length() == 0) ? null : str; }
[ "protected", "String", "nullIfEmpty", "(", "String", "str", ")", "{", "return", "(", "str", "==", "null", "||", "str", ".", "trim", "(", ")", ".", "length", "(", ")", "==", "0", ")", "?", "null", ":", "str", ";", "}" ]
Return null if the given string is null or an empty string. @param str a string. @return null or the string.
[ "Return", "null", "if", "the", "given", "string", "is", "null", "or", "an", "empty", "string", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-jms-control/src/main/java/org/apache/beehive/controls/system/jndi/impl/JndiControlImpl.java#L106-L108
146,554
iig-uni-freiburg/SEWOL
ext/org/deckfour/xes/info/impl/XAttributeInfoImpl.java
XAttributeInfoImpl.register
public void register(XAttribute attribute) { if(keyMap.containsKey(attribute.getKey()) == false) { // create new attribute prototype XAttribute prototype = XAttributeUtils.derivePrototype(attribute); // add to main map keyMap.put(attribute.getKey(), prototype); // initialize frequency frequencies.pu...
java
public void register(XAttribute attribute) { if(keyMap.containsKey(attribute.getKey()) == false) { // create new attribute prototype XAttribute prototype = XAttributeUtils.derivePrototype(attribute); // add to main map keyMap.put(attribute.getKey(), prototype); // initialize frequency frequencies.pu...
[ "public", "void", "register", "(", "XAttribute", "attribute", ")", "{", "if", "(", "keyMap", ".", "containsKey", "(", "attribute", ".", "getKey", "(", ")", ")", "==", "false", ")", "{", "// create new attribute prototype", "XAttribute", "prototype", "=", "XAtt...
Registers a concrete attribute with this registry. @param attribute Attribute to be registered.
[ "Registers", "a", "concrete", "attribute", "with", "this", "registry", "." ]
e791cb07a6e62ecf837d760d58a25f32fbf6bbca
https://github.com/iig-uni-freiburg/SEWOL/blob/e791cb07a6e62ecf837d760d58a25f32fbf6bbca/ext/org/deckfour/xes/info/impl/XAttributeInfoImpl.java#L212-L246
146,555
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/core/urltemplates/URLTemplates.java
URLTemplates.addTemplate
public void addTemplate( String templateName, URLTemplate template ) { if ( templateName == null || templateName.length() == 0 ) { throw new IllegalArgumentException( "Template name cannot be null or empty." ); } if ( template == null ) { throw new Il...
java
public void addTemplate( String templateName, URLTemplate template ) { if ( templateName == null || templateName.length() == 0 ) { throw new IllegalArgumentException( "Template name cannot be null or empty." ); } if ( template == null ) { throw new Il...
[ "public", "void", "addTemplate", "(", "String", "templateName", ",", "URLTemplate", "template", ")", "{", "if", "(", "templateName", "==", "null", "||", "templateName", ".", "length", "(", ")", "==", "0", ")", "{", "throw", "new", "IllegalArgumentException", ...
Add a template from url-template-config by name. @param templateName the name of the template. @param template the template to add.
[ "Add", "a", "template", "from", "url", "-", "template", "-", "config", "by", "name", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/core/urltemplates/URLTemplates.java#L41-L54
146,556
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/core/urltemplates/URLTemplates.java
URLTemplates.getTemplates
public URLTemplate[] getTemplates() { URLTemplate[] templates = new URLTemplate[ _templates.size() ]; int index = 0; for ( Iterator i = _templates.keySet().iterator(); i.hasNext(); ) { String name = ( String ) i.next(); templates[index++] = getTemplate( name )...
java
public URLTemplate[] getTemplates() { URLTemplate[] templates = new URLTemplate[ _templates.size() ]; int index = 0; for ( Iterator i = _templates.keySet().iterator(); i.hasNext(); ) { String name = ( String ) i.next(); templates[index++] = getTemplate( name )...
[ "public", "URLTemplate", "[", "]", "getTemplates", "(", ")", "{", "URLTemplate", "[", "]", "templates", "=", "new", "URLTemplate", "[", "_templates", ".", "size", "(", ")", "]", ";", "int", "index", "=", "0", ";", "for", "(", "Iterator", "i", "=", "_...
Returns the URL templates from url-template-config by name. Always returns a copy of the URLTemplates with the same parsed template data but with cleared set of token values. This allows multiple client requests access to the same parsed template structure, without requiring it to be parsed for each request. @return a...
[ "Returns", "the", "URL", "templates", "from", "url", "-", "template", "-", "config", "by", "name", ".", "Always", "returns", "a", "copy", "of", "the", "URLTemplates", "with", "the", "same", "parsed", "template", "data", "but", "with", "cleared", "set", "of...
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/core/urltemplates/URLTemplates.java#L67-L78
146,557
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/core/urltemplates/URLTemplates.java
URLTemplates.addTemplateRefGroup
public void addTemplateRefGroup( String refGroupName, Map/*< String, String >*/ templateRefGroup ) { if ( refGroupName == null || refGroupName.length() == 0 ) { throw new IllegalArgumentException( "Template Reference Group name cannot be null or empty." ); } if ( templat...
java
public void addTemplateRefGroup( String refGroupName, Map/*< String, String >*/ templateRefGroup ) { if ( refGroupName == null || refGroupName.length() == 0 ) { throw new IllegalArgumentException( "Template Reference Group name cannot be null or empty." ); } if ( templat...
[ "public", "void", "addTemplateRefGroup", "(", "String", "refGroupName", ",", "Map", "/*< String, String >*/", "templateRefGroup", ")", "{", "if", "(", "refGroupName", "==", "null", "||", "refGroupName", ".", "length", "(", ")", "==", "0", ")", "{", "throw", "n...
Add a template reference group from url-template-config by name. @param refGroupName the name of the template reference group. @param templateRefGroup the template reference group.
[ "Add", "a", "template", "reference", "group", "from", "url", "-", "template", "-", "config", "by", "name", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/core/urltemplates/URLTemplates.java#L107-L120
146,558
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/core/urltemplates/URLTemplates.java
URLTemplates.getTemplateNameByRef
public String getTemplateNameByRef( String refGroupName, String key ) { String templateName = null; Map/*< String, String >*/ templateRefGroup = ( Map ) _templateRefGroups.get( refGroupName ); if ( templateRefGroup != null ) { templateName = ( String ) templateRefGroup.ge...
java
public String getTemplateNameByRef( String refGroupName, String key ) { String templateName = null; Map/*< String, String >*/ templateRefGroup = ( Map ) _templateRefGroups.get( refGroupName ); if ( templateRefGroup != null ) { templateName = ( String ) templateRefGroup.ge...
[ "public", "String", "getTemplateNameByRef", "(", "String", "refGroupName", ",", "String", "key", ")", "{", "String", "templateName", "=", "null", ";", "Map", "/*< String, String >*/", "templateRefGroup", "=", "(", "Map", ")", "_templateRefGroups", ".", "get", "(",...
Retrieve a template name from a reference group in url-template-config. @param refGroupName the name of the template reference group. @param key the key to the particular template reference in the group. @return a template name from the reference group.
[ "Retrieve", "a", "template", "name", "from", "a", "reference", "group", "in", "url", "-", "template", "-", "config", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/core/urltemplates/URLTemplates.java#L129-L139
146,559
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/databinding/datagrid/ImageCell.java
ImageCell.setOnMouseDown
public void setOnMouseDown(String onMouseDown) { _imageState.registerAttribute(AbstractHtmlState.ATTR_JAVASCRIPT, HtmlConstants.ONMOUSEDOWN, onMouseDown); }
java
public void setOnMouseDown(String onMouseDown) { _imageState.registerAttribute(AbstractHtmlState.ATTR_JAVASCRIPT, HtmlConstants.ONMOUSEDOWN, onMouseDown); }
[ "public", "void", "setOnMouseDown", "(", "String", "onMouseDown", ")", "{", "_imageState", ".", "registerAttribute", "(", "AbstractHtmlState", ".", "ATTR_JAVASCRIPT", ",", "HtmlConstants", ".", "ONMOUSEDOWN", ",", "onMouseDown", ")", ";", "}" ]
Sets the onMouseDown JavaScript event on the image tag. @param onMouseDown the onMouseDown event. @jsptagref.attributedescription The onMouseDown JavaScript event on the image tag. @jsptagref.attributesyntaxvalue <i>string_onMouseDown</i> @netui:attribute required="false" rtexprvalue="true" description="The onMouseDow...
[ "Sets", "the", "onMouseDown", "JavaScript", "event", "on", "the", "image", "tag", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/databinding/datagrid/ImageCell.java#L158-L160
146,560
iig-uni-freiburg/SEWOL
src/de/uni/freiburg/iig/telematik/sewol/context/constraint/ConstraintContextProperties.java
ConstraintContextProperties.addRoutingConstraint
public void addRoutingConstraint(String activity, AbstractConstraint<?> constraint) throws PropertyException{ Validate.notNull(activity); Validate.notEmpty(activity); Validate.notNull(constraint); //1. Add constraint itself // This also adds the constraint to the list of constraints String propertyName...
java
public void addRoutingConstraint(String activity, AbstractConstraint<?> constraint) throws PropertyException{ Validate.notNull(activity); Validate.notEmpty(activity); Validate.notNull(constraint); //1. Add constraint itself // This also adds the constraint to the list of constraints String propertyName...
[ "public", "void", "addRoutingConstraint", "(", "String", "activity", ",", "AbstractConstraint", "<", "?", ">", "constraint", ")", "throws", "PropertyException", "{", "Validate", ".", "notNull", "(", "activity", ")", ";", "Validate", ".", "notEmpty", "(", "activi...
Adds a routing constraint for an activity. @param activity The name of the activity for which the constraint is added. @param constraint The routing constraint to add. @throws ParameterException if the given parameters are invalid. @throws PropertyException if the given constraint cannot be added as a property. @see #a...
[ "Adds", "a", "routing", "constraint", "for", "an", "activity", "." ]
e791cb07a6e62ecf837d760d58a25f32fbf6bbca
https://github.com/iig-uni-freiburg/SEWOL/blob/e791cb07a6e62ecf837d760d58a25f32fbf6bbca/src/de/uni/freiburg/iig/telematik/sewol/context/constraint/ConstraintContextProperties.java#L43-L60
146,561
iig-uni-freiburg/SEWOL
src/de/uni/freiburg/iig/telematik/sewol/context/constraint/ConstraintContextProperties.java
ConstraintContextProperties.addActivityWithConstraints
private void addActivityWithConstraints(String activity) { Validate.notNull(activity); Validate.notEmpty(activity); Set<String> currentActivities = getActivitiesWithRoutingConstraints(); currentActivities.add(activity); setProperty(ConstraintContextProperty.ACTIVITIES_WITH_CONSTRAINTS, ArrayUtils.toString(cur...
java
private void addActivityWithConstraints(String activity) { Validate.notNull(activity); Validate.notEmpty(activity); Set<String> currentActivities = getActivitiesWithRoutingConstraints(); currentActivities.add(activity); setProperty(ConstraintContextProperty.ACTIVITIES_WITH_CONSTRAINTS, ArrayUtils.toString(cur...
[ "private", "void", "addActivityWithConstraints", "(", "String", "activity", ")", "{", "Validate", ".", "notNull", "(", "activity", ")", ";", "Validate", ".", "notEmpty", "(", "activity", ")", ";", "Set", "<", "String", ">", "currentActivities", "=", "getActivi...
Adds an activity to the list of activities with routing constraints. @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", "routing", "constraints", "." ]
e791cb07a6e62ecf837d760d58a25f32fbf6bbca
https://github.com/iig-uni-freiburg/SEWOL/blob/e791cb07a6e62ecf837d760d58a25f32fbf6bbca/src/de/uni/freiburg/iig/telematik/sewol/context/constraint/ConstraintContextProperties.java#L67-L73
146,562
iig-uni-freiburg/SEWOL
src/de/uni/freiburg/iig/telematik/sewol/context/constraint/ConstraintContextProperties.java
ConstraintContextProperties.removeActivityWithConstraints
private void removeActivityWithConstraints(String activity) { Validate.notNull(activity); Validate.notEmpty(activity); Set<String> currentActivities = getActivitiesWithRoutingConstraints(); currentActivities.remove(activity); setProperty(ConstraintContextProperty.ACTIVITIES_WITH_CONSTRAINTS, ArrayUtils.toStri...
java
private void removeActivityWithConstraints(String activity) { Validate.notNull(activity); Validate.notEmpty(activity); Set<String> currentActivities = getActivitiesWithRoutingConstraints(); currentActivities.remove(activity); setProperty(ConstraintContextProperty.ACTIVITIES_WITH_CONSTRAINTS, ArrayUtils.toStri...
[ "private", "void", "removeActivityWithConstraints", "(", "String", "activity", ")", "{", "Validate", ".", "notNull", "(", "activity", ")", ";", "Validate", ".", "notEmpty", "(", "activity", ")", ";", "Set", "<", "String", ">", "currentActivities", "=", "getAct...
Removes an activity from the list of activities with routing constraints. @param activity The name of the activity to remove. @throws ParameterException if the activity name is invalid.
[ "Removes", "an", "activity", "from", "the", "list", "of", "activities", "with", "routing", "constraints", "." ]
e791cb07a6e62ecf837d760d58a25f32fbf6bbca
https://github.com/iig-uni-freiburg/SEWOL/blob/e791cb07a6e62ecf837d760d58a25f32fbf6bbca/src/de/uni/freiburg/iig/telematik/sewol/context/constraint/ConstraintContextProperties.java#L80-L86
146,563
iig-uni-freiburg/SEWOL
src/de/uni/freiburg/iig/telematik/sewol/context/constraint/ConstraintContextProperties.java
ConstraintContextProperties.getActivitiesWithRoutingConstraints
public Set<String> getActivitiesWithRoutingConstraints(){ Set<String> result = new HashSet<>(); String propertyValue = getProperty(ConstraintContextProperty.ACTIVITIES_WITH_CONSTRAINTS); if(propertyValue == null) return result; StringTokenizer activityTokens = StringUtils.splitArrayString(propertyValue, " ")...
java
public Set<String> getActivitiesWithRoutingConstraints(){ Set<String> result = new HashSet<>(); String propertyValue = getProperty(ConstraintContextProperty.ACTIVITIES_WITH_CONSTRAINTS); if(propertyValue == null) return result; StringTokenizer activityTokens = StringUtils.splitArrayString(propertyValue, " ")...
[ "public", "Set", "<", "String", ">", "getActivitiesWithRoutingConstraints", "(", ")", "{", "Set", "<", "String", ">", "result", "=", "new", "HashSet", "<>", "(", ")", ";", "String", "propertyValue", "=", "getProperty", "(", "ConstraintContextProperty", ".", "A...
Returns the names of all activities with routing constraints. @return A set of all activities with routing constraints.
[ "Returns", "the", "names", "of", "all", "activities", "with", "routing", "constraints", "." ]
e791cb07a6e62ecf837d760d58a25f32fbf6bbca
https://github.com/iig-uni-freiburg/SEWOL/blob/e791cb07a6e62ecf837d760d58a25f32fbf6bbca/src/de/uni/freiburg/iig/telematik/sewol/context/constraint/ConstraintContextProperties.java#L92-L102
146,564
iig-uni-freiburg/SEWOL
src/de/uni/freiburg/iig/telematik/sewol/context/constraint/ConstraintContextProperties.java
ConstraintContextProperties.getRoutingConstraints
public Set<AbstractConstraint<?>> getRoutingConstraints(String activity) throws PropertyException{ Set<String> constraintNames = getConstraintNames(activity); Set<AbstractConstraint<?>> result = new HashSet<>(); for(String constraintName: constraintNames){ result.add(getConstraint(constraintName)); } retur...
java
public Set<AbstractConstraint<?>> getRoutingConstraints(String activity) throws PropertyException{ Set<String> constraintNames = getConstraintNames(activity); Set<AbstractConstraint<?>> result = new HashSet<>(); for(String constraintName: constraintNames){ result.add(getConstraint(constraintName)); } retur...
[ "public", "Set", "<", "AbstractConstraint", "<", "?", ">", ">", "getRoutingConstraints", "(", "String", "activity", ")", "throws", "PropertyException", "{", "Set", "<", "String", ">", "constraintNames", "=", "getConstraintNames", "(", "activity", ")", ";", "Set"...
Returns all routing constraints of the given activity in form of constraint-objects. @param activity The name of the activity whose routing constraints are requested. @return A possibly empty set of routing constraints. @throws ParameterException if the activity name is <code>null</code> or empty. @throws PropertyExce...
[ "Returns", "all", "routing", "constraints", "of", "the", "given", "activity", "in", "form", "of", "constraint", "-", "objects", "." ]
e791cb07a6e62ecf837d760d58a25f32fbf6bbca
https://github.com/iig-uni-freiburg/SEWOL/blob/e791cb07a6e62ecf837d760d58a25f32fbf6bbca/src/de/uni/freiburg/iig/telematik/sewol/context/constraint/ConstraintContextProperties.java#L225-L232
146,565
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/databinding/cellrepeater/CellRepeater.java
CellRepeater.doStartTag
public int doStartTag() throws JspException { ServletRequest request = pageContext.getRequest(); _tableRenderer = TagRenderingBase.Factory.getRendering(TagRenderingBase.TABLE_TAG, request); _trRenderer = TagRenderingBase.Factory.getRendering(TagRenderingBase.TR_TAG, request); ...
java
public int doStartTag() throws JspException { ServletRequest request = pageContext.getRequest(); _tableRenderer = TagRenderingBase.Factory.getRendering(TagRenderingBase.TABLE_TAG, request); _trRenderer = TagRenderingBase.Factory.getRendering(TagRenderingBase.TR_TAG, request); ...
[ "public", "int", "doStartTag", "(", ")", "throws", "JspException", "{", "ServletRequest", "request", "=", "pageContext", ".", "getRequest", "(", ")", ";", "_tableRenderer", "=", "TagRenderingBase", ".", "Factory", ".", "getRendering", "(", "TagRenderingBase", ".",...
Prepare to render the dataset that was specified in the dataSource attribute. The dataSource expression is evaluated and the table's dimensions are computed. If there is no data in the dataset but the rows and columns attributes were specified, an empty table of the given dimensions is rendered. @return EVAL_BODY_BU...
[ "Prepare", "to", "render", "the", "dataset", "that", "was", "specified", "in", "the", "dataSource", "attribute", ".", "The", "dataSource", "expression", "is", "evaluated", "and", "the", "table", "s", "dimensions", "are", "computed", ".", "If", "there", "is", ...
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/databinding/cellrepeater/CellRepeater.java#L418-L509
146,566
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/databinding/cellrepeater/CellRepeater.java
CellRepeater.doEndTag
public int doEndTag() throws JspException { if(hasErrors()) reportErrors(); else if(_valid) { closeTableTag(_appender); write(_sb.toString()); } return EVAL_PAGE; }
java
public int doEndTag() throws JspException { if(hasErrors()) reportErrors(); else if(_valid) { closeTableTag(_appender); write(_sb.toString()); } return EVAL_PAGE; }
[ "public", "int", "doEndTag", "(", ")", "throws", "JspException", "{", "if", "(", "hasErrors", "(", ")", ")", "reportErrors", "(", ")", ";", "else", "if", "(", "_valid", ")", "{", "closeTableTag", "(", "_appender", ")", ";", "write", "(", "_sb", ".", ...
Complete rendering the tag. If no errors have occurred, the content that the tag buffered is rendered. @return EVAL_PAGE to continue evaluating the page @throws JspException if an error occurs that can not be reported on the page
[ "Complete", "rendering", "the", "tag", ".", "If", "no", "errors", "have", "occurred", "the", "content", "that", "the", "tag", "buffered", "is", "rendered", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/databinding/cellrepeater/CellRepeater.java#L580-L590
146,567
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/databinding/cellrepeater/CellRepeater.java
CellRepeater.getCurrentMetadata
public Object getCurrentMetadata() { LocalizedUnsupportedOperationException uoe = new LocalizedUnsupportedOperationException("The " + getTagName() + "does not export metadata for its iterated items."); uoe.setLocalizedMessage(Bundle.getErrorString("Tags_DataAccessProvider_metadataUnsuppo...
java
public Object getCurrentMetadata() { LocalizedUnsupportedOperationException uoe = new LocalizedUnsupportedOperationException("The " + getTagName() + "does not export metadata for its iterated items."); uoe.setLocalizedMessage(Bundle.getErrorString("Tags_DataAccessProvider_metadataUnsuppo...
[ "public", "Object", "getCurrentMetadata", "(", ")", "{", "LocalizedUnsupportedOperationException", "uoe", "=", "new", "LocalizedUnsupportedOperationException", "(", "\"The \"", "+", "getTagName", "(", ")", "+", "\"does not export metadata for its iterated items.\"", ")", ";",...
Get the metadata for the current item. This method is not supported by this tag. @throws UnsupportedOperationException this tag does not support this method from the IDataAccessProvider interface @see org.apache.beehive.netui.script.common.IDataAccessProvider
[ "Get", "the", "metadata", "for", "the", "current", "item", ".", "This", "method", "is", "not", "supported", "by", "this", "tag", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/databinding/cellrepeater/CellRepeater.java#L644-L649
146,568
iig-uni-freiburg/SEWOL
src/de/uni/freiburg/iig/telematik/sewol/context/process/ProcessContext.java
ProcessContext.removeAttribute
public boolean removeAttribute(String attribute, boolean removeFromACModel, boolean notifyListeners) { if (!super.removeObject(attribute, false)) { return false; } if (acModel != null && removeFromACModel && acModel.getContext() != this) { ...
java
public boolean removeAttribute(String attribute, boolean removeFromACModel, boolean notifyListeners) { if (!super.removeObject(attribute, false)) { return false; } if (acModel != null && removeFromACModel && acModel.getContext() != this) { ...
[ "public", "boolean", "removeAttribute", "(", "String", "attribute", ",", "boolean", "removeFromACModel", ",", "boolean", "notifyListeners", ")", "{", "if", "(", "!", "super", ".", "removeObject", "(", "attribute", ",", "false", ")", ")", "{", "return", "false"...
Removes the given attribute from the context. @param attribute @param removeFromACModel @param notifyListeners @return
[ "Removes", "the", "given", "attribute", "from", "the", "context", "." ]
e791cb07a6e62ecf837d760d58a25f32fbf6bbca
https://github.com/iig-uni-freiburg/SEWOL/blob/e791cb07a6e62ecf837d760d58a25f32fbf6bbca/src/de/uni/freiburg/iig/telematik/sewol/context/process/ProcessContext.java#L360-L377
146,569
iig-uni-freiburg/SEWOL
src/de/uni/freiburg/iig/telematik/sewol/context/process/ProcessContext.java
ProcessContext.validateAttribute
public void validateAttribute(String attribute) throws CompatibilityException { try { super.validateObject(attribute); } catch (CompatibilityException e) { throw new CompatibilityException("Unknown attribute: " + attribute, e); ...
java
public void validateAttribute(String attribute) throws CompatibilityException { try { super.validateObject(attribute); } catch (CompatibilityException e) { throw new CompatibilityException("Unknown attribute: " + attribute, e); ...
[ "public", "void", "validateAttribute", "(", "String", "attribute", ")", "throws", "CompatibilityException", "{", "try", "{", "super", ".", "validateObject", "(", "attribute", ")", ";", "}", "catch", "(", "CompatibilityException", "e", ")", "{", "throw", "new", ...
Checks if the given attribute is known, i.e. is contained in the attribute list. @param attribute Attribute to be checked. @throws IllegalArgumentException If the given attribute is not known.
[ "Checks", "if", "the", "given", "attribute", "is", "known", "i", ".", "e", ".", "is", "contained", "in", "the", "attribute", "list", "." ]
e791cb07a6e62ecf837d760d58a25f32fbf6bbca
https://github.com/iig-uni-freiburg/SEWOL/blob/e791cb07a6e62ecf837d760d58a25f32fbf6bbca/src/de/uni/freiburg/iig/telematik/sewol/context/process/ProcessContext.java#L886-L892
146,570
iig-uni-freiburg/SEWOL
src/de/uni/freiburg/iig/telematik/sewol/context/process/ProcessContext.java
ProcessContext.validateAttributes
public void validateAttributes(Collection<String> attributes) throws CompatibilityException { Validate.notNull(attributes); for (String attribute : attributes) { validateAttribute(attribute); } }
java
public void validateAttributes(Collection<String> attributes) throws CompatibilityException { Validate.notNull(attributes); for (String attribute : attributes) { validateAttribute(attribute); } }
[ "public", "void", "validateAttributes", "(", "Collection", "<", "String", ">", "attributes", ")", "throws", "CompatibilityException", "{", "Validate", ".", "notNull", "(", "attributes", ")", ";", "for", "(", "String", "attribute", ":", "attributes", ")", "{", ...
Checks if the given attributes are known, i.e. they are all contained in the attribute list. @param attributes Attributes to be checked. @throws IllegalArgumentException If not all given attribute are known.
[ "Checks", "if", "the", "given", "attributes", "are", "known", "i", ".", "e", ".", "they", "are", "all", "contained", "in", "the", "attribute", "list", "." ]
e791cb07a6e62ecf837d760d58a25f32fbf6bbca
https://github.com/iig-uni-freiburg/SEWOL/blob/e791cb07a6e62ecf837d760d58a25f32fbf6bbca/src/de/uni/freiburg/iig/telematik/sewol/context/process/ProcessContext.java#L902-L907
146,571
iig-uni-freiburg/SEWOL
src/de/uni/freiburg/iig/telematik/sewol/context/process/ProcessContext.java
ProcessContext.createSubjectList
public static List<String> createSubjectList(int number, String stringFormat) { Validate.notNegative(number); Validate.notNull(stringFormat); List<String> result = new ArrayList<>(number); for (int i = 1; i <= number; i++) { result....
java
public static List<String> createSubjectList(int number, String stringFormat) { Validate.notNegative(number); Validate.notNull(stringFormat); List<String> result = new ArrayList<>(number); for (int i = 1; i <= number; i++) { result....
[ "public", "static", "List", "<", "String", ">", "createSubjectList", "(", "int", "number", ",", "String", "stringFormat", ")", "{", "Validate", ".", "notNegative", "(", "number", ")", ";", "Validate", ".", "notNull", "(", "stringFormat", ")", ";", "List", ...
Creates a list of subject names in the given format with the given size. @param number Number of subjects to create. @param stringFormat The format for subject names. @return A list of subject names. @throws ParameterException
[ "Creates", "a", "list", "of", "subject", "names", "in", "the", "given", "format", "with", "the", "given", "size", "." ]
e791cb07a6e62ecf837d760d58a25f32fbf6bbca
https://github.com/iig-uni-freiburg/SEWOL/blob/e791cb07a6e62ecf837d760d58a25f32fbf6bbca/src/de/uni/freiburg/iig/telematik/sewol/context/process/ProcessContext.java#L997-L1005
146,572
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/HtmlFocusBaseTag.java
HtmlFocusBaseTag.setOnBlur
public void setOnBlur(String onblur) { AbstractHtmlState tsh = getState(); tsh.registerAttribute(AbstractHtmlState.ATTR_JAVASCRIPT, ONBLUR, onblur); }
java
public void setOnBlur(String onblur) { AbstractHtmlState tsh = getState(); tsh.registerAttribute(AbstractHtmlState.ATTR_JAVASCRIPT, ONBLUR, onblur); }
[ "public", "void", "setOnBlur", "(", "String", "onblur", ")", "{", "AbstractHtmlState", "tsh", "=", "getState", "(", ")", ";", "tsh", ".", "registerAttribute", "(", "AbstractHtmlState", ".", "ATTR_JAVASCRIPT", ",", "ONBLUR", ",", "onblur", ")", ";", "}" ]
Sets the onBlur javascript event. @param onblur the onBlur event. @jsptagref.attributedescription The onBlur JavaScript event. @jsptagref.databindable false @jsptagref.attributesyntaxvalue <i>string_onBlur</i> @netui:attribute required="false" rtexprvalue="true" description="Sets the onBlur javascript event."
[ "Sets", "the", "onBlur", "javascript", "event", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/HtmlFocusBaseTag.java#L69-L73
146,573
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/HtmlFocusBaseTag.java
HtmlFocusBaseTag.setOnFocus
public void setOnFocus(String onfocus) { AbstractHtmlState tsh = getState(); tsh.registerAttribute(AbstractHtmlState.ATTR_JAVASCRIPT, ONFOCUS, onfocus); }
java
public void setOnFocus(String onfocus) { AbstractHtmlState tsh = getState(); tsh.registerAttribute(AbstractHtmlState.ATTR_JAVASCRIPT, ONFOCUS, onfocus); }
[ "public", "void", "setOnFocus", "(", "String", "onfocus", ")", "{", "AbstractHtmlState", "tsh", "=", "getState", "(", ")", ";", "tsh", ".", "registerAttribute", "(", "AbstractHtmlState", ".", "ATTR_JAVASCRIPT", ",", "ONFOCUS", ",", "onfocus", ")", ";", "}" ]
Sets the onFocus javascript event. @param onfocus the onFocus event. @jsptagref.attributedescription The onFocus JavaScript event. @jsptagref.databindable false @jsptagref.attributesyntaxvalue <i>string_onFocus</i> @netui:attribute required="false" rtexprvalue="true" description="Sets the onFocus javascript event."
[ "Sets", "the", "onFocus", "javascript", "event", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/HtmlFocusBaseTag.java#L84-L88
146,574
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/HtmlFocusBaseTag.java
HtmlFocusBaseTag.setOnChange
public void setOnChange(String onchange) { AbstractHtmlState tsh = getState(); tsh.registerAttribute(AbstractHtmlState.ATTR_JAVASCRIPT, ONCHANGE, onchange); }
java
public void setOnChange(String onchange) { AbstractHtmlState tsh = getState(); tsh.registerAttribute(AbstractHtmlState.ATTR_JAVASCRIPT, ONCHANGE, onchange); }
[ "public", "void", "setOnChange", "(", "String", "onchange", ")", "{", "AbstractHtmlState", "tsh", "=", "getState", "(", ")", ";", "tsh", ".", "registerAttribute", "(", "AbstractHtmlState", ".", "ATTR_JAVASCRIPT", ",", "ONCHANGE", ",", "onchange", ")", ";", "}"...
Sets the onChange javascript event. @param onchange the onChange event. @jsptagref.attributedescription The onChange JavaScript event. @jsptagref.databindable false @jsptagref.attributesyntaxvalue <i>string_onChange</i> @netui:attribute required="false" rtexprvalue="true" description="Sets the onChange javascript event...
[ "Sets", "the", "onChange", "javascript", "event", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/HtmlFocusBaseTag.java#L99-L103
146,575
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/HtmlFocusBaseTag.java
HtmlFocusBaseTag.setOnSelect
public void setOnSelect(String onselect) { AbstractHtmlState tsh = getState(); tsh.registerAttribute(AbstractHtmlState.ATTR_JAVASCRIPT, ONSELECT, onselect); }
java
public void setOnSelect(String onselect) { AbstractHtmlState tsh = getState(); tsh.registerAttribute(AbstractHtmlState.ATTR_JAVASCRIPT, ONSELECT, onselect); }
[ "public", "void", "setOnSelect", "(", "String", "onselect", ")", "{", "AbstractHtmlState", "tsh", "=", "getState", "(", ")", ";", "tsh", ".", "registerAttribute", "(", "AbstractHtmlState", ".", "ATTR_JAVASCRIPT", ",", "ONSELECT", ",", "onselect", ")", ";", "}"...
Sets the onSelect javascript event. @param onselect the onSelect event. @jsptagref.attributedescription The onSelect JavaScript event. @jsptagref.databindable false @jsptagref.attributesyntaxvalue <i>string_onSelect</i> @netui:attribute required="false" rtexprvalue="true" description="Sets the onSelect javascript event...
[ "Sets", "the", "onSelect", "javascript", "event", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/html/HtmlFocusBaseTag.java#L114-L118
146,576
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/internal/DefaultURLTemplatesFactory.java
DefaultURLTemplatesFactory.load
public void load( ServletContext servletContext ) { _urlTemplates = new URLTemplates(); InputStream xmlInputStream = null; InputStream xsdInputStream = null; try { xmlInputStream = servletContext.getResourceAsStream( _configFilePath ); if ( xmlInputSt...
java
public void load( ServletContext servletContext ) { _urlTemplates = new URLTemplates(); InputStream xmlInputStream = null; InputStream xsdInputStream = null; try { xmlInputStream = servletContext.getResourceAsStream( _configFilePath ); if ( xmlInputSt...
[ "public", "void", "load", "(", "ServletContext", "servletContext", ")", "{", "_urlTemplates", "=", "new", "URLTemplates", "(", ")", ";", "InputStream", "xmlInputStream", "=", "null", ";", "InputStream", "xsdInputStream", "=", "null", ";", "try", "{", "xmlInputSt...
Initialization method that parses the URL template config file to get the URL templates and template reference groups. @param servletContext the current ServletContext.
[ "Initialization", "method", "that", "parses", "the", "URL", "template", "config", "file", "to", "get", "the", "URL", "templates", "and", "template", "reference", "groups", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/internal/DefaultURLTemplatesFactory.java#L157-L236
146,577
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/internal/DefaultURLTemplatesFactory.java
DefaultURLTemplatesFactory.loadTemplates
private void loadTemplates( Element parent ) { // Load templates List templates = DomUtils.getChildElementsByName( parent, URL_TEMPLATE ); for ( int i = 0; i < templates.size(); i++ ) { Element template = ( Element ) templates.get( i ); String name = getElemen...
java
private void loadTemplates( Element parent ) { // Load templates List templates = DomUtils.getChildElementsByName( parent, URL_TEMPLATE ); for ( int i = 0; i < templates.size(); i++ ) { Element template = ( Element ) templates.get( i ); String name = getElemen...
[ "private", "void", "loadTemplates", "(", "Element", "parent", ")", "{", "// Load templates", "List", "templates", "=", "DomUtils", ".", "getChildElementsByName", "(", "parent", ",", "URL_TEMPLATE", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", ...
Loads the templates from a URL template config document. @param parent
[ "Loads", "the", "templates", "from", "a", "URL", "template", "config", "document", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/internal/DefaultURLTemplatesFactory.java#L243-L277
146,578
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/internal/DefaultURLTemplatesFactory.java
DefaultURLTemplatesFactory.loadTemplateRefGroups
private void loadTemplateRefGroups( Element parent ) { // Load template refs List templateRefGroups = DomUtils.getChildElementsByName( parent, URL_TEMPLATE_REF_GROUP );; for ( int i = 0; i < templateRefGroups.size(); i++ ) { Element refGroupElement = ( Element ) templateR...
java
private void loadTemplateRefGroups( Element parent ) { // Load template refs List templateRefGroups = DomUtils.getChildElementsByName( parent, URL_TEMPLATE_REF_GROUP );; for ( int i = 0; i < templateRefGroups.size(); i++ ) { Element refGroupElement = ( Element ) templateR...
[ "private", "void", "loadTemplateRefGroups", "(", "Element", "parent", ")", "{", "// Load template refs", "List", "templateRefGroups", "=", "DomUtils", ".", "getChildElementsByName", "(", "parent", ",", "URL_TEMPLATE_REF_GROUP", ")", ";", ";", "for", "(", "int", "i",...
Loads the template reference groups from a URL template config document. @param parent
[ "Loads", "the", "template", "reference", "groups", "from", "a", "URL", "template", "config", "document", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/internal/DefaultURLTemplatesFactory.java#L284-L333
146,579
uservoice/uservoice-java
src/main/java/com/uservoice/Client.java
Client.loginAsOwner
@SuppressWarnings("serial") public Client loginAsOwner() throws APIError { requestToken = service.getRequestToken(); JSONObject token = post("/api/v1/users/login_as_owner", new HashMap<String, Object>() { { put("request_token", requestToken.getToken()); } ...
java
@SuppressWarnings("serial") public Client loginAsOwner() throws APIError { requestToken = service.getRequestToken(); JSONObject token = post("/api/v1/users/login_as_owner", new HashMap<String, Object>() { { put("request_token", requestToken.getToken()); } ...
[ "@", "SuppressWarnings", "(", "\"serial\"", ")", "public", "Client", "loginAsOwner", "(", ")", "throws", "APIError", "{", "requestToken", "=", "service", ".", "getRequestToken", "(", ")", ";", "JSONObject", "token", "=", "post", "(", "\"/api/v1/users/login_as_owne...
Logins as the first UserVoice account owner of the subdomain. @return The client instance for making API calls as the owner @throws APIError
[ "Logins", "as", "the", "first", "UserVoice", "account", "owner", "of", "the", "subdomain", "." ]
e93cb22204b3569f9c3880c08a92bbd0107947d3
https://github.com/uservoice/uservoice-java/blob/e93cb22204b3569f9c3880c08a92bbd0107947d3/src/main/java/com/uservoice/Client.java#L85-L99
146,580
uservoice/uservoice-java
src/main/java/com/uservoice/Client.java
Client.loginWithVerifier
public Client loginWithVerifier(String verifier) { Token token = service.getAccessToken(requestToken, new Verifier(verifier)); return loginWithAccessToken(token.getToken(), token.getSecret()); }
java
public Client loginWithVerifier(String verifier) { Token token = service.getAccessToken(requestToken, new Verifier(verifier)); return loginWithAccessToken(token.getToken(), token.getSecret()); }
[ "public", "Client", "loginWithVerifier", "(", "String", "verifier", ")", "{", "Token", "token", "=", "service", ".", "getAccessToken", "(", "requestToken", ",", "new", "Verifier", "(", "verifier", ")", ")", ";", "return", "loginWithAccessToken", "(", "token", ...
Retrieve a client instance for making calls as the user who gave permission in UserVoice site. @param verifier the verifier that was passed as a GET paramter or received in Out-Of-Band fashion @return The client for making calls as the authorized and verified user
[ "Retrieve", "a", "client", "instance", "for", "making", "calls", "as", "the", "user", "who", "gave", "permission", "in", "UserVoice", "site", "." ]
e93cb22204b3569f9c3880c08a92bbd0107947d3
https://github.com/uservoice/uservoice-java/blob/e93cb22204b3569f9c3880c08a92bbd0107947d3/src/main/java/com/uservoice/Client.java#L166-L169
146,581
uservoice/uservoice-java
src/main/java/com/uservoice/Client.java
Client.get
public JSONObject get(String path) throws APIError { return request(Verb.GET, path, null); }
java
public JSONObject get(String path) throws APIError { return request(Verb.GET, path, null); }
[ "public", "JSONObject", "get", "(", "String", "path", ")", "throws", "APIError", "{", "return", "request", "(", "Verb", ".", "GET", ",", "path", ",", "null", ")", ";", "}" ]
Make a GET API call. @param path The GET path. Include the GET parameters after ? @return A JSON object. @throws APIError If an error occurs.
[ "Make", "a", "GET", "API", "call", "." ]
e93cb22204b3569f9c3880c08a92bbd0107947d3
https://github.com/uservoice/uservoice-java/blob/e93cb22204b3569f9c3880c08a92bbd0107947d3/src/main/java/com/uservoice/Client.java#L180-L182
146,582
uservoice/uservoice-java
src/main/java/com/uservoice/Client.java
Client.delete
public JSONObject delete(String path) throws APIError { return request(Verb.DELETE, path, null); }
java
public JSONObject delete(String path) throws APIError { return request(Verb.DELETE, path, null); }
[ "public", "JSONObject", "delete", "(", "String", "path", ")", "throws", "APIError", "{", "return", "request", "(", "Verb", ".", "DELETE", ",", "path", ",", "null", ")", ";", "}" ]
Make a DELETE API call. @param path The GET path. Include the GET parameters after ? @return A JSON object. @throws APIError If an error occurs.
[ "Make", "a", "DELETE", "API", "call", "." ]
e93cb22204b3569f9c3880c08a92bbd0107947d3
https://github.com/uservoice/uservoice-java/blob/e93cb22204b3569f9c3880c08a92bbd0107947d3/src/main/java/com/uservoice/Client.java#L193-L195
146,583
uservoice/uservoice-java
src/main/java/com/uservoice/Client.java
Client.post
public JSONObject post(String path, Map<String, Object> params) throws APIError { return request(Verb.POST, path, params); }
java
public JSONObject post(String path, Map<String, Object> params) throws APIError { return request(Verb.POST, path, params); }
[ "public", "JSONObject", "post", "(", "String", "path", ",", "Map", "<", "String", ",", "Object", ">", "params", ")", "throws", "APIError", "{", "return", "request", "(", "Verb", ".", "POST", ",", "path", ",", "params", ")", ";", "}" ]
Make a GET POST call. @param path The GET path. Include the GET parameters after ? @param params The parameters to be passed in the body of the call as JSON @return A JSON object. @throws APIError If an error occurs.
[ "Make", "a", "GET", "POST", "call", "." ]
e93cb22204b3569f9c3880c08a92bbd0107947d3
https://github.com/uservoice/uservoice-java/blob/e93cb22204b3569f9c3880c08a92bbd0107947d3/src/main/java/com/uservoice/Client.java#L208-L210
146,584
uservoice/uservoice-java
src/main/java/com/uservoice/Client.java
Client.put
public JSONObject put(String path, Map<String, Object> params) throws APIError { return request(Verb.PUT, path, params); }
java
public JSONObject put(String path, Map<String, Object> params) throws APIError { return request(Verb.PUT, path, params); }
[ "public", "JSONObject", "put", "(", "String", "path", ",", "Map", "<", "String", ",", "Object", ">", "params", ")", "throws", "APIError", "{", "return", "request", "(", "Verb", ".", "PUT", ",", "path", ",", "params", ")", ";", "}" ]
Make a PUT API call. @param path The GET path. Include the GET parameters after ? @param params The parameters to be passed in the body of the call as JSON @return A JSON object. @throws APIError If an error occurs.
[ "Make", "a", "PUT", "API", "call", "." ]
e93cb22204b3569f9c3880c08a92bbd0107947d3
https://github.com/uservoice/uservoice-java/blob/e93cb22204b3569f9c3880c08a92bbd0107947d3/src/main/java/com/uservoice/Client.java#L223-L225
146,585
moparisthebest/beehive
beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/ImplInitializer.java
ImplInitializer.needsReflection
static public boolean needsReflection(AptField genField) { // // Since initializers are generated into the same package as the initialized class, // only private access fields require reflection // String accessModifier = genField.getAccessModifier(); if (accessModifi...
java
static public boolean needsReflection(AptField genField) { // // Since initializers are generated into the same package as the initialized class, // only private access fields require reflection // String accessModifier = genField.getAccessModifier(); if (accessModifi...
[ "static", "public", "boolean", "needsReflection", "(", "AptField", "genField", ")", "{", "//", "// Since initializers are generated into the same package as the initialized class,", "// only private access fields require reflection", "//", "String", "accessModifier", "=", "genField",...
Returns true if the initializer will use Reflection to initialize the field, false otherwise.
[ "Returns", "true", "if", "the", "initializer", "will", "use", "Reflection", "to", "initialize", "the", "field", "false", "otherwise", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/ImplInitializer.java#L120-L131
146,586
moparisthebest/beehive
beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/EventAdaptor.java
EventAdaptor.initClassName
private String initClassName() { StringBuffer sb = new StringBuffer(); String fieldName = _eventField.getName(); String setName = _eventSet.getClassName(); sb.append(Character.toUpperCase(fieldName.charAt(0))); if (fieldName.length() > 1) sb.append(fieldName.subst...
java
private String initClassName() { StringBuffer sb = new StringBuffer(); String fieldName = _eventField.getName(); String setName = _eventSet.getClassName(); sb.append(Character.toUpperCase(fieldName.charAt(0))); if (fieldName.length() > 1) sb.append(fieldName.subst...
[ "private", "String", "initClassName", "(", ")", "{", "StringBuffer", "sb", "=", "new", "StringBuffer", "(", ")", ";", "String", "fieldName", "=", "_eventField", ".", "getName", "(", ")", ";", "String", "setName", "=", "_eventSet", ".", "getClassName", "(", ...
Computes a unique adaptor class name
[ "Computes", "a", "unique", "adaptor", "class", "name" ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/EventAdaptor.java#L45-L56
146,587
moparisthebest/beehive
beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/EventAdaptor.java
EventAdaptor.getFormalClassName
public String getFormalClassName() { StringBuffer sb = new StringBuffer(_className); sb.append(_eventSet.getFormalTypeParameters()); return sb.toString(); }
java
public String getFormalClassName() { StringBuffer sb = new StringBuffer(_className); sb.append(_eventSet.getFormalTypeParameters()); return sb.toString(); }
[ "public", "String", "getFormalClassName", "(", ")", "{", "StringBuffer", "sb", "=", "new", "StringBuffer", "(", "_className", ")", ";", "sb", ".", "append", "(", "_eventSet", ".", "getFormalTypeParameters", "(", ")", ")", ";", "return", "sb", ".", "toString"...
Returns the name of the generated class for this adaptor, including any formal type declarations from the associate event set.
[ "Returns", "the", "name", "of", "the", "generated", "class", "for", "this", "adaptor", "including", "any", "formal", "type", "declarations", "from", "the", "associate", "event", "set", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/EventAdaptor.java#L70-L75
146,588
moparisthebest/beehive
beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/EventAdaptor.java
EventAdaptor.addHandler
public void addHandler(AptEvent event, AptMethod eventHandler) { assert event.getEventSet() == _eventSet; _handlerMap.put(event, eventHandler); }
java
public void addHandler(AptEvent event, AptMethod eventHandler) { assert event.getEventSet() == _eventSet; _handlerMap.put(event, eventHandler); }
[ "public", "void", "addHandler", "(", "AptEvent", "event", ",", "AptMethod", "eventHandler", ")", "{", "assert", "event", ".", "getEventSet", "(", ")", "==", "_eventSet", ";", "_handlerMap", ".", "put", "(", "event", ",", "eventHandler", ")", ";", "}" ]
Adds a new EventHandler for a Event to the EventAdaptor
[ "Adds", "a", "new", "EventHandler", "for", "a", "Event", "to", "the", "EventAdaptor" ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/EventAdaptor.java#L90-L94
146,589
moparisthebest/beehive
beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/EventAdaptor.java
EventAdaptor.getEventSetBinding
public String getEventSetBinding() { // Get the type bindings for the associated event field. HashMap<String,TypeMirror> typeBinding = _eventField.getTypeBindingMap(); StringBuffer sb = new StringBuffer(); boolean isFirst = true; for (TypeParameterDeclaration tpd : ...
java
public String getEventSetBinding() { // Get the type bindings for the associated event field. HashMap<String,TypeMirror> typeBinding = _eventField.getTypeBindingMap(); StringBuffer sb = new StringBuffer(); boolean isFirst = true; for (TypeParameterDeclaration tpd : ...
[ "public", "String", "getEventSetBinding", "(", ")", "{", "// Get the type bindings for the associated event field.", "HashMap", "<", "String", ",", "TypeMirror", ">", "typeBinding", "=", "_eventField", ".", "getTypeBindingMap", "(", ")", ";", "StringBuffer", "sb", "=", ...
Returns any formal type parameter declaration for EventSet interface associated with the adaptor class. This will bind the formal types of the interface based on any type binding from the event field declaration
[ "Returns", "any", "formal", "type", "parameter", "declaration", "for", "EventSet", "interface", "associated", "with", "the", "adaptor", "class", ".", "This", "will", "bind", "the", "formal", "types", "of", "the", "interface", "based", "on", "any", "type", "bin...
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-controls/src/main/java/org/apache/beehive/controls/runtime/generator/EventAdaptor.java#L117-L148
146,590
moparisthebest/beehive
beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/TreePropertyOverride.java
TreePropertyOverride.doTag
public void doTag() throws JspException { Object o = getParent(); assert (o != null); if (!(o instanceof TreeItem)) { logger.error("Invalid Parent (expected a TreeItem):" + o.getClass().getName()); return; } // assign the value to the pare...
java
public void doTag() throws JspException { Object o = getParent(); assert (o != null); if (!(o instanceof TreeItem)) { logger.error("Invalid Parent (expected a TreeItem):" + o.getClass().getName()); return; } // assign the value to the pare...
[ "public", "void", "doTag", "(", ")", "throws", "JspException", "{", "Object", "o", "=", "getParent", "(", ")", ";", "assert", "(", "o", "!=", "null", ")", ";", "if", "(", "!", "(", "o", "instanceof", "TreeItem", ")", ")", "{", "logger", ".", "error...
Render this Tree control. @throws JspException if a processing error occurs
[ "Render", "this", "Tree", "control", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-tags/src/main/java/org/apache/beehive/netui/tags/tree/TreePropertyOverride.java#L259-L272
146,591
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/AutoRegisterActionServlet.java
AutoRegisterActionServlet.getModuleConfPath
public String getModuleConfPath( String modulePath ) { if ( _moduleConfigLocators != null ) { for ( int i = 0; i < _moduleConfigLocators.length; ++i ) { ModuleConfigLocator locator = _moduleConfigLocators[i]; String moduleConfigPath = locator.g...
java
public String getModuleConfPath( String modulePath ) { if ( _moduleConfigLocators != null ) { for ( int i = 0; i < _moduleConfigLocators.length; ++i ) { ModuleConfigLocator locator = _moduleConfigLocators[i]; String moduleConfigPath = locator.g...
[ "public", "String", "getModuleConfPath", "(", "String", "modulePath", ")", "{", "if", "(", "_moduleConfigLocators", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "_moduleConfigLocators", ".", "length", ";", "++", "i", ")", "{",...
Get the webapp-relative path to the Struts module configration file for a given module path, based on registered ModuleConfigLocators. @param modulePath the Struts module path. @return a String that is the path to the Struts configuration file, relative to the web application root, or <code>null</code> if no appropria...
[ "Get", "the", "webapp", "-", "relative", "path", "to", "the", "Struts", "module", "configration", "file", "for", "a", "given", "module", "path", "based", "on", "registered", "ModuleConfigLocators", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/AutoRegisterActionServlet.java#L229-L251
146,592
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/AutoRegisterActionServlet.java
AutoRegisterActionServlet.readObject
private void readObject( ObjectInputStream stream ) throws IOException, ClassNotFoundException { if ( _log.isInfoEnabled() ) _log.info( "deserializing ActionServlet " + this ); _configParams = ( Map ) stream.readObject(); }
java
private void readObject( ObjectInputStream stream ) throws IOException, ClassNotFoundException { if ( _log.isInfoEnabled() ) _log.info( "deserializing ActionServlet " + this ); _configParams = ( Map ) stream.readObject(); }
[ "private", "void", "readObject", "(", "ObjectInputStream", "stream", ")", "throws", "IOException", ",", "ClassNotFoundException", "{", "if", "(", "_log", ".", "isInfoEnabled", "(", ")", ")", "_log", ".", "info", "(", "\"deserializing ActionServlet \"", "+", "this"...
See comments on writeObject.
[ "See", "comments", "on", "writeObject", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/AutoRegisterActionServlet.java#L301-L306
146,593
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/AutoRegisterActionServlet.java
AutoRegisterActionServlet.getConfigResource
protected URL getConfigResource( String path ) throws MalformedURLException { URL resource = getServletContext().getResource( path ); if ( resource != null ) return resource; if ( path.startsWith( "/" ) ) path = path.substring( 1 ); return _rch.getResource( path ); }
java
protected URL getConfigResource( String path ) throws MalformedURLException { URL resource = getServletContext().getResource( path ); if ( resource != null ) return resource; if ( path.startsWith( "/" ) ) path = path.substring( 1 ); return _rch.getResource( path ); }
[ "protected", "URL", "getConfigResource", "(", "String", "path", ")", "throws", "MalformedURLException", "{", "URL", "resource", "=", "getServletContext", "(", ")", ".", "getResource", "(", "path", ")", ";", "if", "(", "resource", "!=", "null", ")", "return", ...
Get a resource URL for a module configuration file. By default, this looks in the ServletContext and in the context classloader. @param path the path to the resource. @return an URL for the resource, or <code>null</code> if the resource is not found. @throws MalformedURLException
[ "Get", "a", "resource", "URL", "for", "a", "module", "configuration", "file", ".", "By", "default", "this", "looks", "in", "the", "ServletContext", "and", "in", "the", "context", "classloader", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/AutoRegisterActionServlet.java#L507-L514
146,594
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/AutoRegisterActionServlet.java
AutoRegisterActionServlet.getConfigResourceAsStream
protected InputStream getConfigResourceAsStream( String path ) { InputStream stream = getServletContext().getResourceAsStream( path ); if ( stream != null ) return stream; if ( path.startsWith( "/" ) ) path = path.substring( 1 ); return _rch.getResourceAsStream( path ); }
java
protected InputStream getConfigResourceAsStream( String path ) { InputStream stream = getServletContext().getResourceAsStream( path ); if ( stream != null ) return stream; if ( path.startsWith( "/" ) ) path = path.substring( 1 ); return _rch.getResourceAsStream( path ); }
[ "protected", "InputStream", "getConfigResourceAsStream", "(", "String", "path", ")", "{", "InputStream", "stream", "=", "getServletContext", "(", ")", ".", "getResourceAsStream", "(", "path", ")", ";", "if", "(", "stream", "!=", "null", ")", "return", "stream", ...
Get a resource stream for a module configuration file. By default, this looks in the ServletContext and in the context classloader. @param path the path to the resource. @return an InputStream for the resource, or <code>null</code> if the resource is not found.
[ "Get", "a", "resource", "stream", "for", "a", "module", "configuration", "file", ".", "By", "default", "this", "looks", "in", "the", "ServletContext", "and", "in", "the", "context", "classloader", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/AutoRegisterActionServlet.java#L523-L529
146,595
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/AutoRegisterActionServlet.java
AutoRegisterActionServlet.registerModule
protected synchronized ModuleConfig registerModule( String modulePath, String configFilePath ) throws ServletException { if ( _log.isInfoEnabled() ) { _log.info( "Dynamically registering module " + modulePath + ", config XML " + configFilePath ); } if ( _...
java
protected synchronized ModuleConfig registerModule( String modulePath, String configFilePath ) throws ServletException { if ( _log.isInfoEnabled() ) { _log.info( "Dynamically registering module " + modulePath + ", config XML " + configFilePath ); } if ( _...
[ "protected", "synchronized", "ModuleConfig", "registerModule", "(", "String", "modulePath", ",", "String", "configFilePath", ")", "throws", "ServletException", "{", "if", "(", "_log", ".", "isInfoEnabled", "(", ")", ")", "{", "_log", ".", "info", "(", "\"Dynamic...
Register a Struts module, initialized by the given configuration file. @param modulePath the module path, starting at the webapp root, e.g., "/info/help". @param configFilePath the path, starting at the webapp root, to the module configuration file (e.g., "/WEB-INF/my-generated-struts-config-info-help.xml"). @return t...
[ "Register", "a", "Struts", "module", "initialized", "by", "the", "given", "configuration", "file", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/AutoRegisterActionServlet.java#L539-L584
146,596
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/AutoRegisterActionServlet.java
AutoRegisterActionServlet.clearRegisteredModules
public void clearRegisteredModules() { ServletContext servletContext = getServletContext(); for ( Iterator ii = _registeredModules.keySet().iterator(); ii.hasNext(); ) { String modulePrefix = ( String ) ii.next(); servletContext.removeAttribute( Globals.MOD...
java
public void clearRegisteredModules() { ServletContext servletContext = getServletContext(); for ( Iterator ii = _registeredModules.keySet().iterator(); ii.hasNext(); ) { String modulePrefix = ( String ) ii.next(); servletContext.removeAttribute( Globals.MOD...
[ "public", "void", "clearRegisteredModules", "(", ")", "{", "ServletContext", "servletContext", "=", "getServletContext", "(", ")", ";", "for", "(", "Iterator", "ii", "=", "_registeredModules", ".", "keySet", "(", ")", ".", "iterator", "(", ")", ";", "ii", "....
Clear the internal map of registered modules. @exclude
[ "Clear", "the", "internal", "map", "of", "registered", "modules", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/AutoRegisterActionServlet.java#L925-L937
146,597
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/internal/DefaultActionForwardHandler.java
DefaultActionForwardHandler.doReturnToPage
public ActionForward doReturnToPage( FlowControllerHandlerContext context, PreviousPageInfo prevPageInfo, PageFlowController currentPageFlow, ActionForm currentForm, String actionName, Forward pageFlowFwd ) { assert context.ge...
java
public ActionForward doReturnToPage( FlowControllerHandlerContext context, PreviousPageInfo prevPageInfo, PageFlowController currentPageFlow, ActionForm currentForm, String actionName, Forward pageFlowFwd ) { assert context.ge...
[ "public", "ActionForward", "doReturnToPage", "(", "FlowControllerHandlerContext", "context", ",", "PreviousPageInfo", "prevPageInfo", ",", "PageFlowController", "currentPageFlow", ",", "ActionForm", "currentForm", ",", "String", "actionName", ",", "Forward", "pageFlowFwd", ...
Get an ActionForward to the original page that was visible before the previous action.
[ "Get", "an", "ActionForward", "to", "the", "original", "page", "that", "was", "visible", "before", "the", "previous", "action", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/internal/DefaultActionForwardHandler.java#L305-L412
146,598
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/scoping/internal/ScopedResponseImpl.java
ScopedResponseImpl.getCookie
public Cookie getCookie( String cookieName ) { List cookies = getHeaders(SET_COOKIE); if(cookies != null){ // start looking from the back (ie. the last cookie set) for(int i = cookies.size(); --i > -1;) { Cookie cookie = (Cookie)cookies.get(i); ...
java
public Cookie getCookie( String cookieName ) { List cookies = getHeaders(SET_COOKIE); if(cookies != null){ // start looking from the back (ie. the last cookie set) for(int i = cookies.size(); --i > -1;) { Cookie cookie = (Cookie)cookies.get(i); ...
[ "public", "Cookie", "getCookie", "(", "String", "cookieName", ")", "{", "List", "cookies", "=", "getHeaders", "(", "SET_COOKIE", ")", ";", "if", "(", "cookies", "!=", "null", ")", "{", "// start looking from the back (ie. the last cookie set)", "for", "(", "int", ...
Gets a cookie that was added to the response.
[ "Gets", "a", "cookie", "that", "was", "added", "to", "the", "response", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/scoping/internal/ScopedResponseImpl.java#L135-L149
146,599
moparisthebest/beehive
beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/scoping/internal/ScopedResponseImpl.java
ScopedResponseImpl.getCookies
public Cookie[] getCookies() { List cookies = (List)_headers.get(SET_COOKIE); return cookies != null ? ( Cookie[] ) cookies.toArray( new Cookie[cookies.size()] ) : NO_COOKIES; }
java
public Cookie[] getCookies() { List cookies = (List)_headers.get(SET_COOKIE); return cookies != null ? ( Cookie[] ) cookies.toArray( new Cookie[cookies.size()] ) : NO_COOKIES; }
[ "public", "Cookie", "[", "]", "getCookies", "(", ")", "{", "List", "cookies", "=", "(", "List", ")", "_headers", ".", "get", "(", "SET_COOKIE", ")", ";", "return", "cookies", "!=", "null", "?", "(", "Cookie", "[", "]", ")", "cookies", ".", "toArray",...
Gets all Cookies that were added to the response.
[ "Gets", "all", "Cookies", "that", "were", "added", "to", "the", "response", "." ]
4246a0cc40ce3c05f1a02c2da2653ac622703d77
https://github.com/moparisthebest/beehive/blob/4246a0cc40ce3c05f1a02c2da2653ac622703d77/beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/scoping/internal/ScopedResponseImpl.java#L154-L158