code
stringlengths
10
174k
nl
stringlengths
3
129k
public LayoutLensSupport(VisualizationViewer<V,E> vv,LensTransformer lensTransformer,ModalGraphMouse lensGraphMouse){ super(vv,lensGraphMouse); this.lensTransformer=lensTransformer; this.pickSupport=vv.getPickSupport(); Dimension d=vv.getSize(); if (d.width <= 0 || d.height <= 0) { d=vv.getPreferredSize()...
Create an instance with the specified parameters.
public static void integerAxes(final JFreeChart chart){ integerXAxis(chart); integerYAxis(chart); }
Sets the X and the Y axes of an XYPlot to use integer values.
public Object invokeMethod(String name,Object args){ throw new NullPointerException("Cannot invoke method " + name + "() on null object"); }
Tries to invoke a method on null, which will always fail
public static void refreshExportMask(DbClient dbClient,VPlexStorageViewInfo storageView,ExportMask exportMask,Map<String,String> targetPortToPwwnMap,NetworkDeviceController networkDeviceController){ refreshExportMask(dbClient,storageView,exportMask,targetPortToPwwnMap,networkDeviceController,false); }
Refreshes the given ExportMask with the latest export information from the VPLEX. This method follows the same basic logic as VmaxExportOperations.refreshExportMask, but adjusted for VPLEX storage views and other concepts.
public void pvChanged(PvChangeEvent event){ if (isDisplayable()) { Component edit=(Component)fields.get(event.getKey()); Object value=event.getValue(); if (edit != null) { edit.setBackground(event.getType() == PvChangeEvent.PV_MANUAL_MOD ? changedColor : unchangedColor); if (edit instanceof JT...
handler for process variable changes update dialog element from process variable
private void unrollConditions(Block block){ if (visitedBlocks.contains(block)) return; visitedBlocks.add(block); visitingSuccs.add(block); Iterator succsIt=block.getSuccs().iterator(); while (succsIt.hasNext()) { Block succ=(Block)succsIt.next(); if (visitedBlocks.contains(succ)) { if (succ !=...
recursively searches for back-edges. if the found block is a condition-block makes a clone and redirects the back-edge.
public void fillData(int leftResId,int stringResId){ fillData(leftResId,getResources().getString(stringResId),false); }
Set the left drawable icon, the text to display using the plus icon by default.
public String invertSelectionTipText(){ return "Invert matching sense."; }
Returns the tip text for this property
protected void illegalMessageReceived(OFMessage m){ String msg=getSwitchStateMessage(m,"Switch should never send this message in the current state"); throw new SwitchStateException(msg); }
We have an OFMessage we didn't expect given the current state and we want to treat this as an error. We currently throw an exception that will terminate the connection However, we could be more forgiving
@Override public boolean equals(Object that){ if (that == null) { return false; } if (that instanceof SimpleTrigger) { return this.equals((SimpleTrigger)that); } return false; }
Description: <br>
public void log(Level level,String msg){ if (isLoggable(level)) { delegate.log(level,msg); } }
Logs a message at a given level, if that level is loggable according to the log level configured by this instance.
public static double cosh(double x){ if (x != x) { return x; } if (x > 20) { if (x >= LOG_MAX_VALUE) { final double t=exp(0.5 * x); return (0.5 * t) * t; } else { return 0.5 * exp(x); } } else if (x < -20) { if (x <= -LOG_MAX_VALUE) { final double t=exp(-0.5 * x);...
Compute the hyperbolic cosine of a number.
private static HashSet<Object> cloneAndCheckIssuerNames(Collection<?> names) throws IOException { HashSet<Object> namesCopy=new HashSet<Object>(); Iterator<?> i=names.iterator(); while (i.hasNext()) { Object nameObject=i.next(); if (!(nameObject instanceof byte[]) && !(nameObject instanceof String)) t...
Clone and check an argument of the form passed to setIssuerNames. Throw an IOException if the argument is malformed.
@Override public void filesDropped(File[] files){ if (files == null) { return; } if (files.length == 0) { return; } File dest=files[0]; if (dropFolder != null) { dest=new File(dropFolder + File.separatorChar + files[0].getName()); if (files[0].getParent().compareTo(dest.getParent()) != 0) { ...
Callback for the dnd listener
public SimulationPaneCtrl(List<Parameter> params,List<ComboBox<String>> paramCombos,Runnable initMethod,Runnable simMethod,Button simBtn,Label statusLabel){ this.params=params; this.paramCombos=paramCombos; this.initMethod=initMethod; this.simMethod=simMethod; this.simBtn=simBtn; this.statusLabel=statusLabe...
Should only be called by the SimulationPaneBuilder.
private void clearRemoteNotifications(){ Log.v(TAG,ACTION_CLEAR_REMOTE_NOTIFICATIONS); GoogleApiClient googleApiClient=new GoogleApiClient.Builder(this).addApi(Wearable.API).build(); ConnectionResult connectionResult=googleApiClient.blockingConnect(Constants.GOOGLE_API_CLIENT_TIMEOUT_S,TimeUnit.SECONDS); if (co...
Clears remote device notifications using the Wearable message API
public SerializationInputOutputFormat(String description,String fileExtension,Drawing prototype){ this.description=description; this.fileExtension=fileExtension; this.mimeType=DataFlavor.javaSerializedObjectMimeType; this.prototype=prototype; this.dataFlavor=new DataFlavor(prototype.getClass(),description); }...
Creates a new instance using the specified parameters.
private void showFeedback(String message){ if (myHost != null) { myHost.showFeedback(message); } else { System.out.println(message); } }
Used to communicate feedback pop-up messages between a plugin tool and the main Whitebox user-interface.
public Vector2i negate(Vector2i dest){ dest.x=-x; dest.y=-y; return dest; }
Negate this vector and store the result in <code>dest</code>.
@Override public void updateScreen(){ commandBox.updateCursorCounter(); }
Called from the main game loop to update the screen.
@DSSource({DSSourceKind.SENSITIVE_UNCATEGORIZED}) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:59:44.754 -0500",hash_original_method="6BC73F7388CF8F913A045B88BC2AD5D8",hash_generated_method="02D1E84EDD88A1B1D8D962D865C80497") public byte[] readByteArray(int bits) throws AccessExc...
Read data in bulk into a byte array and increment the current position.
private void writeAttribute(java.lang.String namespace,java.lang.String attName,java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { if (namespace.equals("")) { xmlWriter.writeAttribute(attName,attValue); } else { registerPrefix(xmlWriter,namesp...
Util method to write an attribute without the ns prefix
public String line(boolean includeNewLine){ int start=myPosition; while (!isEol()) { myPosition++; } int end; if (includeNewLine) { nextLine(); end=myPosition; } else { end=myPosition; nextLine(); } return myText.substring(start,end); }
Get text from the current position until the end of the line. After return, the current position is the start of the next line.
public Object clone() throws CloneNotSupportedException { Account account=(Account)super.clone(); return account; }
Method clone.
@DSSafe(DSCat.SAFE_OTHERS) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:59:48.746 -0500",hash_original_method="ECB16241B0AB765E13051ACDAE33A02C",hash_generated_method="1F56D9702D0332A1D17344B96D52752A") public TypedProperties(){ super(); }
Creates an empty TypedProperties instance.
public void errorHandling(Exception error,CoordinatorLayout coordinatorLayout){ showSpinner(false); error.printStackTrace(); String errorMessage=mDomoticz.getErrorMessage(error); if (mPhoneConnectionUtil == null) mPhoneConnectionUtil=new PhoneConnectionUtil(getContext()); if (mPhoneConnectionUtil.isNetworkA...
Handles the error messages
public void flushMessages(){ if (sLogger.isActivated()) { sLogger.info("Request messages flush"); } if (mTxPendingMessageIds.isEmpty()) { onMessagesFlushed(); } else { mFlushRequested=true; } }
Flush messages
public void updateEcmList(){ Map<Coords,Color> newECMHexes=new HashMap<Coords,Color>(); Map<Coords,Color> newECMCenters=new HashMap<Coords,Color>(); Map<Coords,Color> newECCMHexes=new HashMap<Coords,Color>(); Map<Coords,Color> newECCMCenters=new HashMap<Coords,Color>(); final List<ECMInfo> allEcmInfo=ComputeE...
Updates maps that determine how to shade hexes affected by E(C)CM. This is expensive, so precalculate only when entity changes occur
public void paintCurrentValueBackground(Graphics g,Rectangle bounds,boolean hasFocus){ if (MetalLookAndFeel.usingOcean()) { g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawRect(bounds.x,bounds.y,bounds.width,bounds.height - 1); g.setColor(MetalLookAndFeel.getControlShadow()); g.drawRect(bou...
If necessary paints the background of the currently selected item.
public static Predicate<Job> withBranchTriggerRepo(final String repo){ return new WithBranchTriggerRepo(repo); }
Checks against repo extracted from BranchTrigger.
@Override public int hashCode(){ int hashCode=this.operator.toString().hashCode(); if (operator == QueryOp.LEAF) { hashCode=hashCode ^ this.leaf.hashCode(); } return hashCode; }
This returns a GramBooleanQuery's hash code. <br> It won't traverse the whole tree, instead, it only calculates the hashcode of direct leafs. <br>
public TraceEndRunCycleItemProvider(AdapterFactory adapterFactory){ super(adapterFactory); }
This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
public static AndroidHttpClient newInstance(String userAgent){ HttpParams params=new BasicHttpParams(); HttpConnectionParams.setStaleCheckingEnabled(params,false); HttpConnectionParams.setConnectionTimeout(params,20 * 1000); HttpConnectionParams.setSoTimeout(params,20 * 1000); HttpConnectionParams.setSocketBu...
Create a new HttpClient with reasonable defaults (which you can update).
public ColladaTechnique(String ns){ super(ns); }
Construct an instance.
public void testBug16791() throws Exception { MysqlDataSource myDs=new MysqlDataSource(); myDs.setUrl(dbUrl); Reference asRef=myDs.getReference(); System.out.println(asRef); removeFromRef(asRef,"port"); removeFromRef(asRef,NonRegisteringDriver.USER_PROPERTY_KEY); removeFromRef(asRef,NonRegisteringDriver.P...
Tests fix for BUG#16791 - NullPointerException in MysqlDataSourceFactory due to Reference containing RefAddrs with null content.
public PlainSaslAuthenticatorFactory(final Vertx vertx){ this.vertx=Objects.requireNonNull(vertx); }
Creates a new factory for a Vertx environment.
@Override public void removeOne(String id){ }
Description: <br>
void checkRemoved(int expected){ checkEventCount(expected,removedListenerFiredCount); }
Checks the removeded count: expected vs actual
public static OrientedBoundingBox computeOrientedBoundingBox(float[] originalPoints){ int size=originalPoints.length; float[] points=new float[size]; for (int i=0; i < size; i++) { points[i]=originalPoints[i]; } float[] meanVector=computeCentroid(points); return computeOrientedBoundingBox(points,meanVec...
Computes an oriented, minimum bounding box of a set of points.
public boolean remove(int val){ Integer v=val; boolean flag=list.contains(v); list.remove(v); return flag; }
Removes a value from the collection. Returns true if the collection contained the specified element.
public void accept(final AnnotationVisitor av){ if (av != null) { if (values != null) { for (int i=0; i < values.size(); i+=2) { String name=(String)values.get(i); Object value=values.get(i + 1); accept(av,name,value); } } av.visitEnd(); } }
Makes the given visitor visit this annotation.
public void writeParameter(int num,String wrapperName,String id,PartitionSubstitutionModel model,XMLWriter writer){ writer.writeOpenTag(wrapperName); writeParameter(num,id,model,writer); writer.writeCloseTag(wrapperName); }
write a parameter
@Override public void run(){ amIActive=true; String inputHeader=null; String outputHeader=null; int col; int row; int numCols; int numRows; int a; int i; float progress; int range; boolean blnTextOutput=false; double z; if (args.length <= 0) { showFeedback("Plugin parameters have not bee...
Used to execute this plugin tool.
public void update(String baseColor){ this.baseColor=baseColor; updated(); }
Sets a new base color and updates the preview.
public static void print(double x){ out.print(x); out.flush(); }
Print a double to standard output and flush standard output.
public final boolean sendEmptyMessageAtTime(int what,long uptimeMillis){ return mExec.sendEmptyMessageAtTime(what,uptimeMillis); }
Sends a Message containing only the what value, to be delivered at a specific time.
void draw(final Graphics g,final int scale,final Color color,final Color outline){ final int rx=worldToCanvas(x,scale); final int ry=worldToCanvas(y,scale); final int rwidth=width * scale; final int rheight=height * scale; g.setColor(color); g.fillRect(rx,ry,rwidth,rheight); if (outline != null) { g.s...
Draw the entity
public TextCallbackHandler(){ }
<p>Creates a callback handler that prompts and reads from the command line for answers to authentication questions. This can be used by JAAS applications to instantiate a CallbackHandler.
public DiscreteVariable(String name,List<String> categories){ super(name); setCategories(categories.toArray(new String[categories.size()])); setCategoryNamesDisplayed(true); }
Builds a qualitative variable with the given name and array of possible categories.
public static byte[] responseData(byte[] response){ return Arrays.copyOfRange(response,0,response.length - 2); }
Extracts the data payload of a response APDU: everything except the last two status bytes
@Override public void onExceededDatabaseQuota(String url,String databaseIdentifier,long currentQuota,long estimatedSize,long totalUsedQuota,AmazonWebStorage.QuotaUpdater quotaUpdater){ LOG.d(LOG_TAG,"onExceededDatabaseQuota estimatedSize: %d currentQuota: %d totalUsedQuota: %d",estimatedSize,currentQuota,totalUsedQ...
Handle database quota exceeded notification.
public static String toString(Object object) throws JSONException { return toString(object,null); }
Convert a JSONObject into a well-formed, element-normal XML string.
public static void populateSeries(StrategyData strategyData,List<Candle> candles){ strategyData.clearBaseCandleDataset(); for ( Candle candle : candles) { strategyData.buildCandle(candle.getStartPeriod(),candle.getOpen().doubleValue(),candle.getHigh().doubleValue(),candle.getLow().doubleValue(),candle.getClose...
Method populateSeries.
public Builder userName(final String user_name){ this.userName=user_name; return this; }
Set user name.
protected void renderPageNumbers(int mouseX,int mouseY,float partialTicks){ if (this.currentCategory != null) { int leftPageStrWidth=this.fontRendererObj.getStringWidth(String.valueOf(this.currentCategory.getCurrentPage())); GlStateManager.enableBlend(); this.fontRendererObj.drawString(String.valueOf(this...
Renders the default page numbers.
private String mapDateProperty(String value){ if (StringUtils.isNotEmpty(value)) { try { return tryParseDate(value); } catch ( Exception e) { LOG.error("Error on mapping date property: [" + value + "]",e); } } return value; }
Parses a date which is represented as milliseconds in string form.
public int size(){ return permutation.length; }
Returns the number of elements in this permutation.
protected void sequence_TypeRefWithModifiers_UnionTypeExpressionOLD(ISerializationContext context,UnionTypeExpression semanticObject){ genericSequencer.createSequence(context,semanticObject); }
Contexts: BogusTypeRef returns UnionTypeExpression TypeRefWithModifiers returns UnionTypeExpression Constraint: (typeRefs+=TypeRefWithoutModifiers typeRefs+=TypeRefWithoutModifiers* undefModifier=UndefModifierToken?)
private ContentValues makeRawContact(int starred){ ContentValues values=new ContentValues(); values.put(RawContacts.ACCOUNT_TYPE,getArgs().getOps().getAccountType()); values.put(RawContacts.ACCOUNT_NAME,getArgs().getOps().getAccountName()); values.put(Contacts.STARRED,starred); return values; }
Factory method that creates a ContentValues containing the RawContact associated with the account type/name.
@POST @Path("/{id}/deactivate") @Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON}) @CheckPermission(roles={Role.TENANT_ADMIN}) public Response deactivateCatalogService(@PathParam("id") URI id) throws DatabaseException { CatalogService catalogService=queryResource(id); ArgValidator.checkEntity(catalog...
Deactivates the catalog service
public boolean isProcessing(){ Object oo=get_Value(COLUMNNAME_Processing); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; }
Get Process Now.
public boolean isTypeImage(){ return getPrintFormatType().equals(PRINTFORMATTYPE_Image); }
Type Image
private void cleanUpLabels(){ int id=0; for (Iterator<Label> i=labels.iterator(); i.hasNext(); ) { Label label=i.next(); if (label.isEmpty()) { i.remove(); } else { label.compact(); label.id=id++; } } }
Removes empty labels and assigns IDs to non-empty labels.
public TabbedPaneLeftTabState(){ super("Left"); }
Creates a new TabbedPaneLeftTabState object.
public static boolean isNumber(String s){ if (s.length() == 0) { return false; } for ( char c : s.toCharArray()) { if (!Character.isDigit(c)) { return false; } } return true; }
Check if this string is a decimal number.
public boolean requiresAuthentication(){ return username != null; }
If a username was provided, we will need to authenticate with the proxy.
public Line2D toLine2DWithPointAtDistance(float dist){ return new Line2D(this,getPointAtDistance(dist)); }
Converts the ray into a 2D Line segment with its start point coinciding with the ray origin and its other end point at the given distance along the ray.
public void removeElementAt(final int index){ entries.remove(index); }
Remove an element of the row represented by its index
public static String hashpw(String password,String salt){ BCrypt B; String real_salt; byte passwordb[], saltb[], hashed[]; char minor=(char)0; int rounds, off=0; StringBuffer rs=new StringBuffer(); if (salt.charAt(0) != '$' || salt.charAt(1) != '2') { throw new IllegalArgumentException("Invalid salt v...
Hash a password using the OpenBSD bcrypt scheme.
public void enableFiltering(Approximator a){ mFilterData=true; }
Enables data filtering for the chart data, filtering will use the user customized Approximator handed over to this method.
public JSONArray optJSONArray(String key){ Object o=this.opt(key); return o instanceof JSONArray ? (JSONArray)o : null; }
Get an optional JSONArray associated with a key. It returns null if there is no such key, or if its value is not a JSONArray.
public boolean isElementSelectable(Object element){ return element != null; }
Answers whether the given element is a valid selection in the filtered tree. For example, if a tree has items that are categorized, the category itself may not be a valid selection since it is used merely to organize the elements.
static void verifyApplicationDomainMatchesTargetId(DomainApplication application,String targetId) throws EppException { if (!application.getFullyQualifiedDomainName().equals(targetId)) { throw new ApplicationDomainNameMismatchException(); } }
Verifies that an application's domain name matches the target id (from a command).
public boolean lessThan(RegisterPriority other){ return ordinal() < other.ordinal(); }
Determines if this priority is lower than a given priority.
public static int countOfOffsetOthers(int[] otherSourcesToDestOffsets,int j,boolean removeDest){ int countOfOthers=0; for (int index=0; index < otherSourcesToDestOffsets.length; index++) { if ((otherSourcesToDestOffsets[index] != j) && ((otherSourcesToDestOffsets[index] != 0) || !removeDest)) { countOfOth...
Counts the unique information contributors to this node which are not equal to the source at offset j from the destination, or the node itself (offset 0, node itself not included only when removeDest is set to true). <p>This is primarily intended for use inside the method, but made public as a utility.</p>
public Point chartToScreenCoord(int x,int y){ x+=getAbsoluteX(); y+=getAbsoluteY(); if (currentTransform != null) { float[] pt=currentTransform.transformPoint(new float[]{x,y,0}); x=(int)pt[0]; y=(int)pt[1]; } return new Point(x,y); }
Returns the screen position from a chart coordinate
public ExecutorDelivery(Executor executor){ mResponsePoster=executor; }
Creates a new response delivery interface, mockable version for testing.
@Override public void drawItem(Graphics2D g2,CategoryItemRendererState state,Rectangle2D dataArea,CategoryPlot plot,CategoryAxis domainAxis,ValueAxis rangeAxis,CategoryDataset dataset,int row,int column,int pass){ if (!getItemVisible(row,column)) { return; } if (!(dataset instanceof StatisticalCategoryDataset...
Draw a single data item.
private void paintMinimizePressed(Graphics2D g,JComponent c,int width,int height){ iconifyPainter.paintPressed(g,c,width,height); }
Paint the foreground minimize button pressed state.
private void addRightOnlyOccurence(List<AttributeSource> originalAttributeSources,List<Attribute> unionAttributeList,MemoryExampleTable unionTable,Example rightExample,Attribute[] leftKeyAttributes,Attribute[] rightKeyAttributes,boolean keepBoth,boolean removeDoubleAttributes){ double[] unionDataRow=new double[unionA...
Creates an example and adds it to unionTable. The example contains all attributes from rightExample, which are also in originalAttributeSources, and NaN for all attributes which should normally be taken from a left example. Exception: if key attributes would be taken from left example and only one id attribute is kept,...
public JdbcTransactionalResource(String serverName,XADataSource xads){ super(serverName); Assert.notNull("XADataSource must not be null",xads); this.xaDataSource=xads; this.xaConnection=null; }
Constructs a new instance with a given name and XADataSource.
public void next(int frames,boolean broadcast) throws IOException { if (mInputStream != null) { byte[] buffer=new byte[mBytesPerFrame * frames]; int samplesRead=mInputStream.read(buffer); mFrameCounter+=samplesRead; broadcast(mFrameCounter); if (broadcast && mListener != null) { if (samplesR...
Reads the number of frames and optionally sends the buffer to the listener
public void closeAllConnections(){ this.pcClient.closeAllConnections(); }
Close all peer connections. Send a PubNub hangup signal as well.
public Faculty(String name,String address,String phone,String email,int office,double salary,String officeHours,String rank){ super(name,address,phone,email,office,salary); this.officeHours=officeHours; this.rank=rank; }
Construct a Faculty object with specified name, address, phone number, email address, office, salary, office hours and rank
public void addMenuKeyListener(MenuKeyListener l){ listenerList.add(MenuKeyListener.class,l); }
Adds a <code>MenuKeyListener</code> to the popup menu.
public void toggleQuality() throws IOException { print("toggleQuality",null); }
Description of the Method
public void log(Date time,String message){ try { PrintWriter w=new PrintWriter(new FileWriter(filename,true)); w.println("\n\u001b[32m" + format.format(time) + "\u001b[0m "+ message); w.close(); } catch ( IOException e) { } }
Emits a message to the log, timestamped with the specified time.
public boolean toDestroying(){ return toNextState(DESTROYING); }
Changes to the destroying state.
public EntryPointSpec createEntryPointSpec(){ EntryPointSpecImpl entryPointSpec=new EntryPointSpecImpl(); return entryPointSpec; }
<!-- begin-user-doc --> <!-- end-user-doc -->
FileSetting(Properties defaultProps,Properties props,String key,File defaultFile){ super(defaultProps,props,key,defaultFile.getAbsolutePath()); setPrivate(true); }
Creates a new <tt>SettingBool</tt> instance with the specified key and default value.
private String _serializeDateTime(DateTime dateTime){ return goIn() + JSONDateFormat.format(dateTime,null); }
serialize a DateTime
public static void main(String[] arg){ try { String filename=arg[arg.length - 1]; boolean use_default_md5=false; boolean use_native_lib=true; for (int i=0; i < arg.length - 1; i++) { if (arg[i].equals("--use-default-md5")) { use_default_md5=true; } else if (arg[i].equals("--...
This method is here for testing purposes only - do not rely on it being here.
public TestParams excludeTypeCheck(String field){ mExcludeTypeCheck.add(field); return this; }
Add a param that doesn't have the same type in builder
private void mergeCollapse(){ while (stackSize > 1) { int n=stackSize - 2; if (n > 0 && runLen[n - 1] <= runLen[n] + runLen[n + 1]) { if (runLen[n - 1] < runLen[n + 1]) n--; mergeAt(n); } else if (runLen[n] <= runLen[n + 1]) { mergeAt(n); } else { break; } } }...
Examines the stack of runs waiting to be merged and merges adjacent runs until the stack invariants are reestablished: 1. runLen[i - 3] > runLen[i - 2] + runLen[i - 1] 2. runLen[i - 2] > runLen[i - 1] This method is called each time a new run is pushed onto the stack, so the invariants are guaranteed to hold for i < st...
StringVector processSTRINGLIST(StylesheetHandler handler,String uri,String name,String rawName,String value){ StringTokenizer tokenizer=new StringTokenizer(value," \t\n\r\f"); int nStrings=tokenizer.countTokens(); StringVector strings=new StringVector(nStrings); for (int i=0; i < nStrings; i++) { strings.ad...
Process an attribute string of type T_STRINGLIST into a vector of XPath match patterns.
protected void internalError(String s) throws Error { throw new Error("RE internal error: " + s); }
Throws an Error representing an internal error condition probably resulting from a bug in the regular expression compiler (or possibly data corruption). In practice, this should be very rare.
@Override public boolean isReadOnly(){ return (mSetter == null && mField == null); }
Returns false if there is no setter or public field underlying this Property.
public void gotoLine(int line){ Element element=getDocument().getDefaultRootElement().getElement(line); if (element == null) { return; } int pos=element.getStartOffset(); setCaretPosition(pos); }
Move the cursor to the specified line if exception occur cursor not change
public boolean isCanceled(){ return cancelled; }
Gets the cancel state.
public SampleVcpcRunner(DataWrapper dataWrapper,Parameters params){ super(dataWrapper,params,null); }
Constructs a wrapper for the given DataWrapper. The DataWrapper must contain a DataSet that is either a DataSet or a DataSet or a DataList containing either a DataSet or a DataSet as its selected model.