signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class RecoverableUnitIdTable { /** * Returns the next available id , starting from 1 , and associates * it with the given object . This method should be used during * the creation of a new recoverable object . * @ param obj The object to be associated with the id * @ return The next available recoverable...
if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "nextId" , obj ) ; long id = _idCount ++ ; // Keep incrementing the id until we // find one that hasn ' t been reserved . while ( _idMap . get ( id ) != null ) { id = _idCount ++ ; } // Add the new id to the map associating // it with the given object . _idMap . put ( id...
public class Jar { /** * Adds the contents of the zip / JAR contained in the given byte array to this JAR . * @ param path the path within the JAR where the root of the zip will be placed , or { @ code null } for the JAR ' s root * @ param zip the contents of the zip / JAR file * @ return { @ code this } */ publi...
return addEntries ( path , zip , null ) ;
public class PHSCoverLetterV1_2Generator { /** * This method is used to get PHSCoverLetter12Document attachment from the * narrative attachments . * @ return phsCoverLetter12Document { @ link XmlObject } of type * PHS398CoverLetterDocument . */ private PHSCoverLetter12Document getPHSCoverLetter ( ) { } }
PHSCoverLetter12Document phsCoverLetterDocument = PHSCoverLetter12Document . Factory . newInstance ( ) ; PHSCoverLetter12 phsCoverLetter = PHSCoverLetter12 . Factory . newInstance ( ) ; CoverLetterFile coverLetterFile = CoverLetterFile . Factory . newInstance ( ) ; phsCoverLetter . setFormVersion ( FormVersion . v1_2 ....
public class SCM { /** * Calculates the { @ link SCMRevisionState } that represents the state of the workspace of the given build . * The returned object is then fed into the * { @ link # compareRemoteRevisionWith ( AbstractProject , Launcher , FilePath , TaskListener , SCMRevisionState ) } method * as the baseli...
if ( build instanceof AbstractBuild && Util . isOverridden ( SCM . class , getClass ( ) , "calcRevisionsFromBuild" , AbstractBuild . class , Launcher . class , TaskListener . class ) ) { return calcRevisionsFromBuild ( ( AbstractBuild ) build , launcher , listener ) ; } else { throw new AbstractMethodError ( "you must ...
public class Flow { /** * Updates the history such that the given key is at the top and dispatches the updated * history . * If newTopKey is already at the top of the history , the history will be unchanged , but it will * be dispatched with direction { @ link Direction # REPLACE } . * If newTopKey is already o...
move ( new PendingTraversal ( ) { @ Override void doExecute ( ) { if ( newTopKey . equals ( history . top ( ) ) ) { dispatch ( history , Direction . REPLACE ) ; return ; } History . Builder builder = history . buildUpon ( ) ; int count = 0 ; // Search backward to see if we already have newTop on the stack Object preser...
public class JcrQueryManager { /** * Creates a new JCR { @ link Query } by specifying the query expression itself , the language in which the query is stated , the * { @ link QueryCommand } representation and , optionally , the node from which the query was loaded . The language must be a * string from among those ...
session . checkLive ( ) ; // Look for a parser for the specified language . . . QueryParsers queryParsers = session . repository ( ) . runningState ( ) . queryParsers ( ) ; QueryParser parser = queryParsers . getParserFor ( language ) ; if ( parser == null ) { Set < String > languages = queryParsers . getLanguages ( ) ...
public class XmlExtractor { /** * { @ inheritDoc } */ public String extract ( Object target ) { } }
if ( target == null ) { return null ; } Document sourceDoc = ( Document ) target ; Element sourceElement = sourceDoc . getDocumentElement ( ) ; String nsUri = namespace == null ? sourceElement . getNamespaceURI ( ) : namespace ; if ( sourceElement . hasAttributeNS ( nsUri , nodeName ) ) { return sourceElement . getAttr...
public class ModifyCapacityReservationRequest { /** * This method is intended for internal use only . Returns the marshaled request configured with additional * parameters to enable operation dry - run . */ @ Override public Request < ModifyCapacityReservationRequest > getDryRunRequest ( ) { } }
Request < ModifyCapacityReservationRequest > request = new ModifyCapacityReservationRequestMarshaller ( ) . marshall ( this ) ; request . addParameter ( "DryRun" , Boolean . toString ( true ) ) ; return request ;
public class CPRuleAssetCategoryRelPersistenceImpl { /** * Returns the first cp rule asset category rel in the ordered set where CPRuleId = & # 63 ; . * @ param CPRuleId the cp rule ID * @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > ) * @ return the first match...
CPRuleAssetCategoryRel cpRuleAssetCategoryRel = fetchByCPRuleId_First ( CPRuleId , orderByComparator ) ; if ( cpRuleAssetCategoryRel != null ) { return cpRuleAssetCategoryRel ; } StringBundler msg = new StringBundler ( 4 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "CPRuleId=" ) ; msg . append ( CPRul...
public class MapTileCollisionRendererModel { /** * Create the function draw to buffer . * @ param collision The collision reference . * @ param tw The tile width . * @ param th The tile height . * @ return The created collision representation buffer . */ public static ImageBuffer createFunctionDraw ( CollisionF...
final ImageBuffer buffer = Graphics . createImageBuffer ( tw , th , ColorRgba . TRANSPARENT ) ; final Graphic g = buffer . createGraphic ( ) ; g . setColor ( ColorRgba . PURPLE ) ; createFunctionDraw ( g , collision , tw , th ) ; g . dispose ( ) ; return buffer ;
public class Benchmark { /** * Rosenbrock ' s function */ static public double rosenbrock ( double [ ] x ) { } }
double sum = 0.0 ; for ( int i = 0 ; i < ( x . length - 1 ) ; i ++ ) { double temp1 = ( x [ i ] * x [ i ] ) - x [ i + 1 ] ; double temp2 = x [ i ] - 1.0 ; sum += ( 100.0 * temp1 * temp1 ) + ( temp2 * temp2 ) ; } return ( sum ) ;
public class WktConversionUtils { /** * If the old value is a geometry or a Well - Known Text , convert it to the * appropriate new value . Otherwise , this method returns the old value . * @ param oldValue * the old value . * @ param database * the database instance . * @ param generator * the SQL genera...
Object newValue = oldValue ; if ( oldValue instanceof Geometry ) { final Geometry geometry = ( Geometry ) oldValue ; final String wkt = geometry . toText ( ) ; String sridString = null ; if ( geometry . getSRID ( ) > 0 ) { sridString = String . valueOf ( geometry . getSRID ( ) ) ; } newValue = generator . convertToFunc...
public class ScopeHandler { /** * The parameter must never be null * @ param queryParameters */ public void init ( final MultivaluedMap < String , String > queryParameters ) { } }
final String scopeCompileParam = queryParameters . getFirst ( ServerAPI . SCOPE_COMPILE_PARAM ) ; if ( scopeCompileParam != null ) { this . scopeComp = Boolean . valueOf ( scopeCompileParam ) ; } final String scopeProvidedParam = queryParameters . getFirst ( ServerAPI . SCOPE_PROVIDED_PARAM ) ; if ( scopeProvidedParam ...
public class HSQLInterface { /** * Modify the current schema with a SQL DDL command and get the * diff which represents the changes . * Note that you have to be consistent WRT case for the expected names . * @ param expectedTableAffected The name of the table affected by this DDL * or null if unknown * @ para...
// name of the table we ' re going to have to diff ( if any ) String expectedTableAffected = null ; // If we fail to pre - process a statement , then we want to fail , but we ' re // still going to run the statement through HSQL to get its error message . // This variable helps us make sure we don ' t fail to preproces...
public class WeightedDirectedMultigraph { /** * { @ inheritDoc } */ public IntSet predecessors ( int vertex ) { } }
SparseWeightedDirectedTypedEdgeSet < T > edges = vertexToEdges . get ( vertex ) ; return ( edges == null ) ? PrimitiveCollections . emptyIntSet ( ) : PrimitiveCollections . unmodifiableSet ( edges . predecessors ( ) ) ;
public class QQPlot { /** * Create a plot canvas with the two sample Q - Q plot . * The x - axis is the quantiles of x and the y - axis is the quantiles of y . * @ param x a sample set . * @ param y a sample set . */ public static PlotCanvas plot ( double [ ] x , double [ ] y ) { } }
double [ ] lowerBound = { Math . min ( x ) , Math . min ( y ) } ; double [ ] upperBound = { Math . max ( x ) , Math . max ( y ) } ; PlotCanvas canvas = new PlotCanvas ( lowerBound , upperBound ) ; canvas . add ( new QQPlot ( x , y ) ) ; return canvas ;
public class LongMultiset { /** * The implementation is equivalent to performing the following steps for this LongMultiset : * < pre > * final long oldValue = get ( key ) ; * final long newValue = remappingFunction . apply ( key , oldValue ) ; * if ( newValue > 0 ) { * set ( key , newValue ) ; * } else { ...
N . checkArgNotNull ( remappingFunction ) ; final long oldValue = get ( key ) ; final long newValue = remappingFunction . apply ( key , oldValue ) ; if ( newValue > 0 ) { set ( key , newValue ) ; } else { if ( oldValue > 0 ) { remove ( key ) ; } } return newValue ;
public class XMPPTCPConnection { /** * Initializes the connection by creating a stanza reader and writer and opening a * XMPP stream to the server . * @ throws XMPPException if establishing a connection to the server fails . * @ throws SmackException if the server fails to respond back or if there is anther error...
compressionHandler = null ; // Set the reader and writer instance variables initReaderAndWriter ( ) ; int availableReaderWriterSemaphorePermits = readerWriterSemaphore . availablePermits ( ) ; if ( availableReaderWriterSemaphorePermits < 2 ) { Object [ ] logObjects = new Object [ ] { this , availableReaderWriterSemapho...
public class SysFileExtensionEditorPanel { /** * GEN - LAST : event _ buttonResetActionPerformed */ private void buttonAddLineActionPerformed ( java . awt . event . ActionEvent evt ) { } }
// GEN - FIRST : event _ buttonAddLineActionPerformed ( ( DefaultTableModel ) this . tableExtensions . getModel ( ) ) . addRow ( new String [ ] { "" } ) ;
public class OtpErlangLong { /** * Get this number as a byte . * @ return the byte value of this number . * @ exception OtpErlangRangeException * if the value is too large to be represented as a byte . */ public byte byteValue ( ) throws OtpErlangRangeException { } }
final long l = longValue ( ) ; final byte i = ( byte ) l ; if ( i != l ) { throw new OtpErlangRangeException ( "Value too large for byte: " + val ) ; } return i ;
public class DefaultDeleteResolver { /** * { @ inheritDoc } */ @ NonNull @ Override public DeleteResult performDelete ( @ NonNull StorIOContentResolver storIOContentResolver , @ NonNull T object ) { } }
final DeleteQuery deleteQuery = mapToDeleteQuery ( object ) ; final int numberOfRowsDeleted = storIOContentResolver . lowLevel ( ) . delete ( deleteQuery ) ; return DeleteResult . newInstance ( numberOfRowsDeleted , deleteQuery . uri ( ) ) ;
public class Async { /** * Invokes the asynchronous function immediately , surfacing the result through an Observable and waits on * the specified Scheduler . * < img width = " 640 " src = " https : / / raw . github . com / wiki / ReactiveX / RxJava / images / rx - operators / startFuture . s . png " alt = " " > ...
return OperatorStartFuture . startFuture ( functionAsync , scheduler ) ;
public class MergeConverter { /** * Get the Current converter . * @ return The current converter depending on the current table in the merge table . */ public Converter getNextConverter ( ) { } }
BaseTable currentTable = m_MergeRecord . getTable ( ) . getCurrentTable ( ) ; if ( currentTable == null ) return null ; if ( m_FieldSeq != - 1 ) { if ( m_strLinkedRecord == null ) return currentTable . getRecord ( ) . getField ( m_FieldSeq ) ; // Get the current field else return currentTable . getRecord ( ) . getField...
public class OAuth2AuthenticationProvider { /** * Performs authentication with the same contract as { @ link * org . springframework . security . authentication . AuthenticationManager # authenticate ( org . springframework . security . core . Authentication ) } . * @ param authentication the authentication request...
if ( ! supports ( authentication . getClass ( ) ) ) { return null ; } LOGGER . debug ( "OAuth2Authentication authentication request: " + authentication ) ; if ( authentication . getCredentials ( ) == null ) { LOGGER . debug ( "No credentials found in request." ) ; if ( throwExceptionWhenTokenRejected ) { throw new BadC...
public class Output { /** * - - code context */ public void openCode ( Code code ) { } }
if ( context != null ) { throw new RuntimeException ( "nested code attribute" ) ; } context = code ; codeStart = getGlobalOfs ( ) ;
public class ClientCnxn { /** * Shutdown the send / event threads . This method should not be called * directly - rather it should be called as part of close operation . This * method is primarily here to allow the tests to verify disconnection * behavior . */ public void disconnect ( ) { } }
if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( "Disconnecting client for session: 0x" + Long . toHexString ( getSessionId ( ) ) ) ; } sendThread . close ( ) ; eventThread . queueEventOfDeath ( ) ;
public class SecureAction { /** * Returns a ZipFile . Same as calling * new ZipFile ( file ) * @ param file the file to get a ZipFile for * @ return a ZipFile * @ throws IOException if an error occured */ public ZipFile getZipFile ( final File file ) throws IOException { } }
try { if ( System . getSecurityManager ( ) == null ) return new ZipFile ( file ) ; try { return AccessController . doPrivileged ( new PrivilegedExceptionAction < ZipFile > ( ) { @ Override public ZipFile run ( ) throws IOException { return new ZipFile ( file ) ; } } , controlContext ) ; } catch ( PrivilegedActionExcept...
public class ListenersImpl { /** * Returns all < code > listener < / code > elements * @ return list of < code > listener < / code > */ public List < Listener < Listeners < T > > > getAllListener ( ) { } }
List < Listener < Listeners < T > > > list = new ArrayList < Listener < Listeners < T > > > ( ) ; List < Node > nodeList = childNode . get ( "listener" ) ; for ( Node node : nodeList ) { Listener < Listeners < T > > type = new ListenerImpl < Listeners < T > > ( this , "listener" , childNode , node ) ; list . add ( type...
public class GrailsHibernateTemplate { /** * Prepare the given Query object , applying cache settings and / or a * transaction timeout . * @ param query the Query object to prepare */ protected void prepareQuery ( org . hibernate . query . Query query ) { } }
if ( cacheQueries ) { query . setCacheable ( true ) ; } if ( shouldPassReadOnlyToHibernate ( ) ) { query . setReadOnly ( true ) ; } SessionHolder sessionHolder = ( SessionHolder ) TransactionSynchronizationManager . getResource ( sessionFactory ) ; if ( sessionHolder != null && sessionHolder . hasTimeout ( ) ) { query ...
public class GEIMGImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public void eUnset ( int featureID ) { } }
switch ( featureID ) { case AfplibPackage . GEIMG__DATA : setDATA ( DATA_EDEFAULT ) ; return ; } super . eUnset ( featureID ) ;
public class BaseJdbcBufferedInserter { /** * Submits the user defined { @ link # insertBatch ( PreparedStatement ) } call to the { @ link Retryer } which takes care * of resubmitting the records according to { @ link # WRITER _ JDBC _ INSERT _ RETRY _ TIMEOUT } and { @ link # WRITER _ JDBC _ INSERT _ RETRY _ MAX _ A...
try { // Need a Callable interface to be wrapped by Retryer . this . retryer . wrap ( new Callable < Boolean > ( ) { @ Override public Boolean call ( ) throws Exception { return insertBatch ( pstmt ) ; } } ) . call ( ) ; } catch ( Exception e ) { throw new RuntimeException ( "Failed to insert." , e ) ; } resetBatch ( )...
public class BatchResources { /** * Returns a batch by its ID * @ param req HTTPServlet request . Cannot be null . * @ param batchId The batch ID to retrieve . * @ return The corresponding batch * @ throws WebApplicationException If an error occurs . */ @ GET @ Produces ( MediaType . APPLICATION_JSON ) @ Path (...
_validateBatchId ( batchId ) ; PrincipalUser currentOwner = validateAndGetOwner ( req , null ) ; BatchMetricQuery batch = batchService . findBatchById ( batchId ) ; if ( batch != null ) { PrincipalUser actualOwner = userService . findUserByUsername ( batch . getOwnerName ( ) ) ; validateResourceAuthorization ( req , ac...
public class InnerNodeImpl { /** * Returns true if { @ code pattern } equals either " * " or { @ code s } . Pattern * may be { @ code null } . */ private static boolean matchesNameOrWildcard ( String pattern , String s ) { } }
return "*" . equals ( pattern ) || Objects . equal ( pattern , s ) ;
public class PlacedPlayerSessionMarshaller { /** * Marshall the given parameter object . */ public void marshall ( PlacedPlayerSession placedPlayerSession , ProtocolMarshaller protocolMarshaller ) { } }
if ( placedPlayerSession == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( placedPlayerSession . getPlayerId ( ) , PLAYERID_BINDING ) ; protocolMarshaller . marshall ( placedPlayerSession . getPlayerSessionId ( ) , PLAYERSESSIONID_BINDING )...
public class StandardMultipartResolver { /** * Determine the encoding for the given request . * < p > The default implementation checks the request encoding , falling back to the default encoding specified for * this resolver . * @ param request current request * @ return the encoding for the request . */ @ Non...
MediaType mimeType = request . getContentType ( ) ; if ( mimeType == null ) return Charsets . UTF_8 . name ( ) ; Charset charset = mimeType . getCharset ( ) ; return charset == null ? Charsets . UTF_8 . name ( ) : charset . name ( ) ;
public class BsElevateWordCA { public void filter ( String name , EsAbstractConditionQuery . OperatorCall < BsElevateWordCQ > queryLambda , ConditionOptionCall < FilterAggregationBuilder > opLambda , OperatorCall < BsElevateWordCA > aggsLambda ) { } }
ElevateWordCQ cq = new ElevateWordCQ ( ) ; if ( queryLambda != null ) { queryLambda . callback ( cq ) ; } FilterAggregationBuilder builder = regFilterA ( name , cq . getQuery ( ) ) ; if ( opLambda != null ) { opLambda . callback ( builder ) ; } if ( aggsLambda != null ) { ElevateWordCA ca = new ElevateWordCA ( ) ; aggs...
public class Iso8601UtilLimitedImpl { /** * @ see # formatTime ( Date , boolean , Appendable ) * @ param hours are the { @ link java . util . Calendar # HOUR _ OF _ DAY hours } . * @ param minutes are the { @ link java . util . Calendar # MINUTE minutes } . * @ param seconds are the { @ link java . util . Calenda...
try { // append hours String hour = String . valueOf ( hours ) ; if ( hour . length ( ) < 2 ) { buffer . append ( '0' ) ; } buffer . append ( hour ) ; if ( extended ) { buffer . append ( ':' ) ; } String minute = String . valueOf ( minutes ) ; // append minutes if ( minute . length ( ) < 2 ) { buffer . append ( '0' ) ;...
public class TargetsMngrImpl { /** * Private methods */ private void saveAssociation ( AbstractApplication app , String targetId , String instancePathOrComponentName , boolean add ) throws IOException { } }
// Association means an exact mapping between an application instance // and a target ID . InstanceContext key = new InstanceContext ( app , instancePathOrComponentName ) ; // Remove the old association , always . if ( instancePathOrComponentName != null ) { String oldTargetId = this . instanceToCachedId . remove ( key...
public class IPv6AddressSection { /** * Merges this with the list of sections to produce the smallest array of sequential block subnets , going from smallest to largest * @ param sections the sections to merge with this * @ return */ public IPv6AddressSection [ ] mergeToSequentialBlocks ( IPv6AddressSection ... sec...
List < IPAddressSegmentSeries > blocks = getMergedSequentialBlocks ( this , sections , true , createSeriesCreator ( getAddressCreator ( ) , getMaxSegmentValue ( ) ) ) ; return blocks . toArray ( new IPv6AddressSection [ blocks . size ( ) ] ) ;
public class AbstractComponent { /** * { @ inheritDoc } */ @ Override public final < WB extends WaveBean > Wave returnData ( final Class < ? extends Service > serviceClass , final WaveType waveType , final WB waveBean ) { } }
return sendWaveIntoJit ( createWave ( WaveGroup . RETURN_DATA , waveType , serviceClass , waveBean ) ) ;
public class MoneyAmountStyle { /** * Returns a { @ code MoneyAmountStyle } instance configured for the specified locale . * This method will return a new instance where each field that was defined * to be localized ( by being set to { @ code null } ) is filled in . * If this instance is fully defined ( with all ...
MoneyFormatter . checkNotNull ( locale , "Locale must not be null" ) ; MoneyAmountStyle result = this ; MoneyAmountStyle protoStyle = null ; if ( zeroCharacter < 0 ) { protoStyle = getLocalizedStyle ( locale ) ; result = result . withZeroCharacter ( protoStyle . getZeroCharacter ( ) ) ; } if ( positiveCharacter < 0 ) {...
public class ControllerRunner { /** * Injects controller with dependencies from Guice module . */ private void injectController ( AppController controller ) { } }
Injector injector = Configuration . getInjector ( ) ; if ( injector != null ) { injector . injectMembers ( controller ) ; }
public class CCEncoder { /** * Returns the best at - most - one encoder for a given number of variables . The valuation is based on theoretical and * practical observations . For < = 10 the pure encoding without introduction of new variables is used , otherwise * the product encoding is chosen . * @ param n the n...
if ( n <= 10 ) { if ( this . amoPure == null ) this . amoPure = new CCAMOPure ( ) ; return this . amoPure ; } else { if ( this . amoProduct == null ) this . amoProduct = new CCAMOProduct ( this . config ( ) . productRecursiveBound ) ; return this . amoProduct ; }
public class SqlLoaderImpl { /** * SQL名作成 < br > * @ param packageName パッケージ名 * @ param filePath ルートパスからの相対パス * @ return */ private String makeSqlName ( final StringBuilder packageName , final String filePath ) { } }
if ( packageName . length ( ) == 0 ) { return trimSqlExtension ( filePath ) ; } else { return new StringBuilder ( packageName ) . append ( PATH_SEPARATOR ) . append ( trimSqlExtension ( filePath ) ) . toString ( ) ; }
public class FnNumber { /** * Determines whether the result of executing the specified function * on the target object is greater than the specified object parameter * in value , this is , whether < tt > functionResult . compareTo ( object ) > 0 < / tt > . Both * the target and the specified object have to implem...
return FnObject . greaterThanBy ( by , object ) ;
public class mail_profile { /** * < pre > * Use this operation to modify mail profile . . * < / pre > */ public static mail_profile update ( nitro_service client , mail_profile resource ) throws Exception { } }
resource . validate ( "modify" ) ; return ( ( mail_profile [ ] ) resource . update_resource ( client ) ) [ 0 ] ;
public class CachesEndpoint { /** * Invalidates the cache . * @ param name The name of the cache to invalidate * @ return A maybe that emits a boolean if the operation was successful */ @ Delete public Maybe < Boolean > invalidateCache ( @ NotBlank @ Selector String name ) { } }
try { final SyncCache < Object > cache = cacheManager . getCache ( name ) ; return Maybe . create ( emitter -> cache . async ( ) . invalidateAll ( ) . whenComplete ( ( aBoolean , throwable ) -> { if ( throwable != null ) { emitter . onError ( throwable ) ; } else { emitter . onSuccess ( aBoolean ) ; emitter . onComplet...
public class ApiOvhTelephony { /** * Move a service of billing account . Source and destination nics should be the same . * REST : POST / telephony / { billingAccount } / service / { serviceName } / changeOfBillingAccount * @ param billingAccountDestination [ required ] Billing account destination target * @ para...
String qPath = "/telephony/{billingAccount}/service/{serviceName}/changeOfBillingAccount" ; StringBuilder sb = path ( qPath , billingAccount , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "billingAccountDestination" , billingAccountDestination ) ; exec ( qPath , "P...
public class MessageBirdClient { /** * Request a Lookup HLR ( lookup ) * @ param phoneNumber phone number is for request hlr * @ param reference reference for request hlr * @ return lookupHlr * @ throws UnauthorizedException if client is unauthorized * @ throws GeneralException general exception */ public Loo...
if ( phoneNumber == null ) { throw new IllegalArgumentException ( "Phonenumber must be specified." ) ; } if ( reference == null ) { throw new IllegalArgumentException ( "Reference must be specified." ) ; } final LookupHlr lookupHlr = new LookupHlr ( ) ; lookupHlr . setPhoneNumber ( phoneNumber ) ; lookupHlr . setRefere...
public class PrometheusMetricsServlet { /** * Gets the { @ link ServletContextHandler } of the metrics servlet . * @ return the { @ link ServletContextHandler } object */ public ServletContextHandler getHandler ( ) { } }
ServletContextHandler contextHandler = new ServletContextHandler ( ) ; contextHandler . setContextPath ( SERVLET_PATH ) ; contextHandler . addServlet ( new ServletHolder ( new MetricsServlet ( mCollectorRegistry ) ) , "/" ) ; return contextHandler ;
public class JustifiedTextView { /** * Verifies if word to be added will fit into the sentence * @ param word Word to be added * @ param sentence Sentence that will receive the new word * @ param addSpaces Specifies weather we should add spaces to validation or not * @ return True if word fits , false otherwise...
String stringSentence = getSentenceFromList ( sentence , addSpaces ) ; stringSentence += word ; float sentenceWidth = getPaint ( ) . measureText ( stringSentence ) ; return sentenceWidth < viewWidth ;
public class SoapServerActionBuilder { /** * Generic response builder for sending SOAP fault messages to client . * @ return */ public SoapServerFaultResponseActionBuilder sendFault ( ) { } }
SoapServerFaultResponseActionBuilder soapServerResponseActionBuilder = new SoapServerFaultResponseActionBuilder ( action , soapServer ) . withApplicationContext ( applicationContext ) ; return soapServerResponseActionBuilder ;
public class Postfach { /** * Liefert die Postfach - Nummer als normale Zahl . Da die Nummer optional * sein kann , wird sie als { @ link Optional } zurueckgeliefert . * @ return z . B . 815 */ public Optional < BigInteger > getNummer ( ) { } }
if ( nummer == null ) { return Optional . empty ( ) ; } else { return Optional . of ( nummer ) ; }
public class StringBasedAnnotationHandler { /** * replace any placeholder from the given strings * @ param strs strings to replace the placeholders from * @ return same string with the placeholders merged * @ see org . codegist . crest . CRest # placeholder ( String , String ) */ protected String [ ] ph ( String ...
String [ ] res = new String [ strs . length ] ; for ( int i = 0 ; i < res . length ; i ++ ) { res [ i ] = ph ( strs [ i ] ) ; } return res ;
public class MoreGraphs { /** * Actual content of the topological sort . This is a breadth - first search based approach . * @ param graph the graph to be sorted * @ param type the sort type * @ param < T > the node type * @ return the sorted list * @ throws CyclePresentException if the graph has cycles * @...
checkArgument ( graph . isDirected ( ) , "the graph must be directed" ) ; checkArgument ( ! graph . allowsSelfLoops ( ) , "the graph cannot allow self loops" ) ; final Map < T , Integer > requiredCounts = new HashMap < > ( ) ; for ( final T node : graph . nodes ( ) ) { for ( final T successor : graph . successors ( nod...
public class DescribeDeploymentsResult { /** * An array of < code > Deployment < / code > objects that describe the deployments . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setDeployments ( java . util . Collection ) } or { @ link # withDeployments ( jav...
if ( this . deployments == null ) { setDeployments ( new com . amazonaws . internal . SdkInternalList < Deployment > ( deployments . length ) ) ; } for ( Deployment ele : deployments ) { this . deployments . add ( ele ) ; } return this ;
public class HelpFormatter { /** * Print the specified text to the specified PrintWriter . * @ param pw The printWriter to write the help to * @ param width The number of characters to display per line * @ param nextLineTabStop The position on the next line for the first tab . * @ param text The text to be writ...
StringBuffer sb = new StringBuffer ( text . length ( ) ) ; renderWrappedTextBlock ( sb , width , nextLineTabStop , text ) ; pw . println ( sb . toString ( ) ) ;
public class sslfipskey { /** * Use this API to Import sslfipskey resources . */ public static base_responses Import ( nitro_service client , sslfipskey resources [ ] ) throws Exception { } }
base_responses result = null ; if ( resources != null && resources . length > 0 ) { sslfipskey Importresources [ ] = new sslfipskey [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { Importresources [ i ] = new sslfipskey ( ) ; Importresources [ i ] . fipskeyname = resources [ i ] . fipskeynam...
public class CommerceOrderPersistenceImpl { /** * Returns a range of all the commerce orders where userId = & # 63 ; and createDate & lt ; & # 63 ; and orderStatus = & # 63 ; . * Useful when paginating results . Returns a maximum of < code > end - start < / code > instances . < code > start < / code > and < code > en...
return findByU_LtC_O ( userId , createDate , orderStatus , start , end , null ) ;
public class DesignDocument { /** * Creates a new { @ link DesignDocument } . * @ param name the name of the design document . * @ param views all views it contains . * @ return a new { @ link DesignDocument } . */ public static DesignDocument create ( final String name , final List < View > views ) { } }
return create ( name , views , new HashMap < Option , Long > ( ) ) ;
public class OptionsHandler { /** * Build the representation for the given resource . * @ param builder a response builder * @ return the response builder */ public ResponseBuilder ldpOptions ( final ResponseBuilder builder ) { } }
LOGGER . debug ( "OPTIONS request for {}" , getIdentifier ( ) ) ; ldpResourceTypes ( getResource ( ) . getInteractionModel ( ) ) . forEach ( type -> builder . link ( type . getIRIString ( ) , "type" ) ) ; if ( isMemento || TIMEMAP . equals ( getRequest ( ) . getExt ( ) ) ) { // Mementos and TimeMaps are read - only bui...
public class VFSUtils { /** * Copy all the children from the original { @ link VirtualFile } the target recursively . * @ param original the file to copy children from * @ param target the file to copy the children to * @ throws IOException if any problems occur copying the files */ public static void copyChildre...
if ( original == null ) { throw MESSAGES . nullArgument ( "Original VirtualFile" ) ; } if ( target == null ) { throw MESSAGES . nullArgument ( "Target VirtualFile" ) ; } List < VirtualFile > children = original . getChildren ( ) ; for ( VirtualFile child : children ) { VirtualFile targetChild = target . getChild ( chil...
public class ConcurrentCacheAtom { /** * { @ inheritDoc } */ @ Override public void set ( V value ) { } }
writeLock ( ) ; V oldValue = setValueInsideWriteLock ( value ) ; writeUnlock ( ) ; releaseOldValue ( oldValue ) ; // release the old value - outside of lock
public class MetricContext { /** * Submit { @ link org . apache . gobblin . metrics . GobblinTrackingEvent } to all notification listeners attached to this or any * ancestor { @ link org . apache . gobblin . metrics . MetricContext } s . The argument for this method is mutated by the method , so it * should not be ...
nonReusableEvent . setTimestamp ( System . currentTimeMillis ( ) ) ; injectTagsToEvent ( nonReusableEvent ) ; EventNotification notification = new EventNotification ( nonReusableEvent ) ; sendNotification ( notification ) ;
public class EventArgument { /** * setter for refid - sets * @ generated * @ param v value to set into the feature */ public void setRefid ( String v ) { } }
if ( EventArgument_Type . featOkTst && ( ( EventArgument_Type ) jcasType ) . casFeat_refid == null ) jcasType . jcas . throwFeatMissing ( "refid" , "de.julielab.jules.types.ace.EventArgument" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( EventArgument_Type ) jcasType ) . casFeatCode_refid , v ) ;
public class NextClient { /** * CLIENT PARAMS AND HEADERS */ public String getParam ( final String key ) { } }
AssertUtils . notEmpty ( key , "key must not be null or empty." ) ; return mParams . get ( key ) ;
public class Platform { /** * Starts level 3 and 4 */ private void startLevel34Containers ( ) { } }
level3 = start ( new PlatformLevel3 ( level2 ) ) ; level4 = start ( new PlatformLevel4 ( level3 , level4AddedComponents ) ) ;
public class DualDecomposition { /** * Perform a single subgradient step , updating { @ code factors } and * { @ code unaryFactors } with the computed subgradient . * @ param factors * @ param unaryFactors * @ param stepSize * @ return */ private int gradientUpdate ( List < TensorBuilder > factors , List < Te...
// The best assignment , as computed from only the unary factors . int [ ] variableNums = new int [ unaryFactors . size ( ) ] ; int [ ] variableSizes = new int [ unaryFactors . size ( ) ] ; int [ ] variableValues = new int [ unaryFactors . size ( ) ] ; locallyDecodeFactors ( unaryFactors , variableNums , variableSizes ...
public class DefaultMessageTranslator { /** * Visit function for compound constraints like And / Or / XOr . * < p > syntax : < code > CONSTRAINT MESSAGE { code } CONSTRAINT < / code > < / p > * @ param compoundConstraint */ protected void visit ( CompoundConstraint compoundConstraint ) { } }
Iterator it = compoundConstraint . iterator ( ) ; String compoundMessage = getMessageCode ( compoundConstraint ) ; while ( it . hasNext ( ) ) { Constraint p = ( Constraint ) it . next ( ) ; visitorSupport . invokeVisit ( this , p ) ; if ( it . hasNext ( ) ) { add ( compoundMessage , null , compoundMessage ) ; } }
public class SVNLogFileParser { /** * Internal method used for XML parsing */ @ Override public void startElement ( String uri , String localName , String qName , Attributes attributes ) throws SAXException { } }
if ( localName . equals ( TAG_LOG_ENTRY ) ) { if ( currentTags != null ) { throw new IllegalStateException ( "Should not have tags when a config starts in the XML, but had: " + currentTags ) ; } currentTags = new LogEntry ( ) ; if ( attributes . getValue ( TAG_REVISION ) != null ) { currentTags . revision = Long . pars...
public class GlobalUsersInner { /** * Stops an environment by stopping all resources inside the environment This operation can take a while to complete . * @ param userName The name of the user . * @ param environmentId The resourceId of the environment * @ throws IllegalArgumentException thrown if parameters fai...
stopEnvironmentWithServiceResponseAsync ( userName , environmentId ) . toBlocking ( ) . last ( ) . body ( ) ;
public class RLSControllerImpl { /** * Cancels the corresponding suspend operation , identified by the supplied token byte array . * If there are no outstanding suspend operation , then resumes i / o to the recovery log files . * @ param tokenBytes a byte array representation of the RLSSuspendToken , identifying th...
if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "resume" , RLSUtils . toHexString ( tokenBytes ) ) ; if ( Configuration . isZOS ( ) ) { if ( tc . isEventEnabled ( ) ) Tr . event ( tc , "Operation not supported on ZOS - throwing UnsupportedOperationException" ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "resume"...
public class ParameterSerializer { /** * Serialize a java object to a SFSObject * @ param value value to parse * @ param method structure of getter method * @ param sfsObject the SFSObject */ @ SuppressWarnings ( "rawtypes" ) protected void parseMethod ( Object value , GetterMethodCover method , ISFSObject sfsObj...
Object answer = value ; if ( method . isColection ( ) ) { answer = parseCollection ( method , ( Collection ) value ) ; } else if ( method . isTwoDimensionsArray ( ) ) { answer = parseTwoDimensionsArray ( method , value ) ; } else if ( method . isArray ( ) ) { answer = parseArray ( method , value ) ; } else if ( method ...
public class Reflecter { /** * Determines whether the delegate has a default constructor */ public boolean hasDefaultConstructor ( ) { } }
if ( ! delegate . isPresent ( ) ) { return false ; } final Constructor < ? > [ ] constructors = delegateClass ( ) . getConstructors ( ) ; for ( final Constructor < ? > constructor : constructors ) { if ( constructor . getParameterTypes ( ) . length == 0 ) { return true ; } } return false ;
public class DefaultStateMachineConfigCache { /** * See also DefaultTenantUserApi - we use the same conventions as the main XML cache ( so we can re - use the invalidation code ) */ private String getCacheKeyName ( final String pluginName , final InternalTenantContext internalContext ) { } }
final StringBuilder tenantKey = new StringBuilder ( TenantKey . PLUGIN_PAYMENT_STATE_MACHINE_ . toString ( ) ) ; tenantKey . append ( pluginName ) ; tenantKey . append ( CacheControllerDispatcher . CACHE_KEY_SEPARATOR ) ; tenantKey . append ( internalContext . getTenantRecordId ( ) ) ; return tenantKey . toString ( ) ;
public class BasicSchemaSpecification { /** * Determines if the policy is satisfied by the supplied LdapAttributes object . * @ throws NamingException */ public boolean isSatisfiedBy ( LdapAttributes record ) throws NamingException { } }
if ( record != null ) { // DN is required . LdapName dn = record . getName ( ) ; if ( dn != null ) { // objectClass definition is required . if ( record . get ( "objectClass" ) != null ) { // Naming attribute is required . Rdn rdn = dn . getRdn ( dn . size ( ) - 1 ) ; if ( record . get ( rdn . getType ( ) ) != null ) {...
public class ReadStream { /** * Close the stream . */ @ Override public final void close ( ) { } }
try { TempBufferData tempBuffer = _tempRead ; if ( tempBuffer != null && ! _isReuseBuffer ) { _tempRead = null ; _readBuffer = null ; tempBuffer . free ( ) ; } if ( _source != null ) { StreamImpl s = _source ; _source = null ; s . close ( ) ; } } catch ( IOException e ) { log . log ( Level . FINE , e . toString ( ) , e...
public class EigenPowerMethod_DDRM { /** * Computes the most dominant eigen vector of A using a shifted matrix . * The shifted matrix is defined as < b > B = A - & alpha ; I < / b > and can converge faster * if & alpha ; is chosen wisely . In general it is easier to choose a value for & alpha ; * that will conver...
SpecializedOps_DDRM . addIdentity ( A , B , - alpha ) ; return computeDirect ( B ) ;
public class ArrayMath { /** * Takes a pair of arrays , A and B , which represent corresponding * outcomes of a pair of random variables : say , results for two different * classifiers on a sequence of inputs . Returns the estimated * probability that the difference between the means of A and B is not * signifi...
if ( A . length == 0 ) throw new IllegalArgumentException ( "Input arrays must not be empty!" ) ; if ( A . length != B . length ) throw new IllegalArgumentException ( "Input arrays must have equal length!" ) ; if ( iterations <= 0 ) throw new IllegalArgumentException ( "Number of iterations must be positive!" ) ; doubl...
public class TimestampInequalityRule { /** * { @ inheritDoc } */ public boolean evaluate ( final LoggingEvent event , Map matches ) { } }
String eventTimeStampString = RESOLVER . getValue ( LoggingEventFieldResolver . TIMESTAMP_FIELD , event ) . toString ( ) ; long eventTimeStamp = Long . parseLong ( eventTimeStampString ) / 1000 * 1000 ; boolean result = false ; long first = eventTimeStamp ; long second = timeStamp ; if ( "<" . equals ( inequalitySymbol...
public class UnmodifiableSortedSet { /** * This method will take a MutableSortedSet and wrap it directly in a UnmodifiableSortedSet . It will * take any other non - GS - SortedSet and first adapt it will a SortedSetAdapter , and then return a * UnmodifiableSortedSet that wraps the adapter . */ public static < E , S...
if ( set == null ) { throw new IllegalArgumentException ( "cannot create an UnmodifiableSortedSet for null" ) ; } return new UnmodifiableSortedSet < E > ( SortedSetAdapter . adapt ( set ) ) ;
public class ArchiveExtractor { /** * extract image layers */ public void extractDockerImageLayers ( File imageTarFile , File imageExtractionDir , Boolean deleteTarFiles ) { } }
FilesScanner filesScanner = new FilesScanner ( ) ; boolean success = false ; // docker layers are saved as TAR file ( we save it as TAR ) if ( imageTarFile . getName ( ) . endsWith ( TAR_SUFFIX ) ) { success = unTar ( imageTarFile . getName ( ) . toLowerCase ( ) , imageExtractionDir . getAbsolutePath ( ) , imageTarFile...
public class WebGL10 { /** * < p > { @ code glBlendFuncSeparate } defines the operation of blending when it is enabled . { @ code srcRGB } specifies * which method is used to scale the source RGB - color components . { @ code dstRGB } specifies which method is used to * scale the destination RGB - color components ...
checkContextCompatibility ( ) ; nglBlendFuncSeparate ( srcRGB , dstRGB , srcAlpha , dstAlpha ) ;
public class WebAuthenticatorProxy { /** * { @ inheritDoc } */ @ Override public AuthenticationResult authenticate ( WebRequest webRequest ) { } }
AuthenticationResult authResult = providerAuthenticatorProxy . authenticate ( webRequest ) ; authResult . setTargetRealm ( authResult . realm ) ; String authType = webRequest . getLoginConfig ( ) . getAuthenticationMethod ( ) ; if ( ( authResult . getStatus ( ) == AuthResult . CONTINUE ) && ( ! webRequest . isContinueA...
public class RobotoTypefaces { /** * Obtain typeface . * @ param context The Context the widget is running in , through which it can access the current theme , resources , etc . * @ param fontFamily The value of " robotoFontFamily " attribute * @ param textWeight The value of " robotoTextWeight " attribute * @ ...
@ RobotoTypeface int typeface ; if ( fontFamily == FONT_FAMILY_ROBOTO ) { if ( textStyle == TEXT_STYLE_NORMAL ) { switch ( textWeight ) { case TEXT_WEIGHT_NORMAL : typeface = TYPEFACE_ROBOTO_REGULAR ; break ; case TEXT_WEIGHT_THIN : typeface = TYPEFACE_ROBOTO_THIN ; break ; case TEXT_WEIGHT_LIGHT : typeface = TYPEFACE_...
public class JdbcClient { @ Override public void cancelJob ( int idJob ) { } }
jqmlogger . trace ( "Job instance number " + idJob + " will be cancelled" ) ; DbConn cnx = null ; try { cnx = getDbSession ( ) ; QueryResult res = cnx . runUpdate ( "jj_update_cancel_by_id" , idJob ) ; if ( res . nbUpdated != 1 ) { throw new JqmClientException ( "the job is already running, has already finished or neve...
public class WTable { /** * Calculate the row ids of a row ' s children . * @ param rows the list of row ids * @ param row the current row * @ param model the table model * @ param parent the row ' s parent * @ param expanded the set of expanded rows * @ param mode the table expand mode * @ param forUpdat...
// Add row rows . add ( row ) ; // Add to parent if ( parent != null ) { parent . addChild ( row ) ; } List < Integer > rowIndex = row . getRowIndex ( ) ; // If row has a renderer , then dont need to process its children ( should not have any anyway as it is a " leaf " ) if ( model . getRendererClass ( rowIndex ) != nu...
public class JCompositeRowsSelectorPanel { /** * GEN - LAST : event _ jButtonRemoveActionPerformed */ private void jTreeGraph1MouseClicked ( java . awt . event . MouseEvent evt ) // GEN - FIRST : event _ jTreeGraph1MouseClicked { } }
// GEN - HEADEREND : event _ jTreeGraph1MouseClicked if ( evt . getClickCount ( ) == 2 ) { TreePath [ ] paths = jTreeGraph1 . getSelectionPaths ( ) ; if ( paths != null && paths . length == 1 ) { if ( paths [ 0 ] . getPath ( ) . length == 3 ) { addItemsToComposite ( paths ) ; } } }
public class vpntrafficaction { /** * Use this API to update vpntrafficaction . */ public static base_response update ( nitro_service client , vpntrafficaction resource ) throws Exception { } }
vpntrafficaction updateresource = new vpntrafficaction ( ) ; updateresource . name = resource . name ; updateresource . apptimeout = resource . apptimeout ; updateresource . sso = resource . sso ; updateresource . formssoaction = resource . formssoaction ; updateresource . fta = resource . fta ; updateresource . wansca...
public class AbstractParentCommandNode { /** * Returns the template ' s first child node that matches the given condition . */ @ Nullable public SoyNode firstChildThatMatches ( Predicate < SoyNode > condition ) { } }
int firstChildIndex = 0 ; while ( firstChildIndex < numChildren ( ) && ! condition . test ( getChild ( firstChildIndex ) ) ) { firstChildIndex ++ ; } if ( firstChildIndex < numChildren ( ) ) { return getChild ( firstChildIndex ) ; } return null ;
public class ApiErrorExtractor { /** * Determine if a given Throwable is caused by an IO error . * Recursively checks getCause ( ) if outer exception isn ' t an instance of the * correct class . * @ param throwable The Throwable to check . * @ return True if the Throwable is a result of an IO error . */ public ...
if ( throwable instanceof IOException || throwable instanceof IOError ) { return true ; } return throwable . getCause ( ) != null && ioError ( throwable . getCause ( ) ) ;
public class Composite { /** * Add a { @ link Paintable } to this composite . * @ param p * the < code > Paintable < / code > to add to this composite */ public void addChild ( Paintable p ) { } }
if ( null == p ) { throw new IllegalArgumentException ( "Please provide a paintable." ) ; } if ( this . equals ( p ) ) { throw new IllegalArgumentException ( "Cannot add itself as a child." ) ; } if ( children . contains ( p ) ) { return ; } // nothing changes , no exception if ( p instanceof Composite && ( ( Composite...
public class DBAdapter { /** * Adds a JSON string to the DB . * @ param obj the JSON to record * @ param table the table to insert into * @ return the number of rows in the table , or DB _ OUT _ OF _ MEMORY _ ERROR / DB _ UPDATE _ ERROR */ synchronized int storeObject ( JSONObject obj , Table table ) { } }
if ( ! this . belowMemThreshold ( ) ) { Logger . v ( "There is not enough space left on the device to store data, data discarded" ) ; return DB_OUT_OF_MEMORY_ERROR ; } final String tableName = table . getName ( ) ; Cursor cursor = null ; int count = DB_UPDATE_ERROR ; // noinspection TryFinallyCanBeTryWithResources try ...
public class NaetherImpl { /** * / * ( non - Javadoc ) * @ see com . tobedevoured . naether . api . Naether # getDependenciesNotation ( ) */ public Set < String > getDependenciesNotation ( ) { } }
Set < String > notations = new HashSet < String > ( ) ; for ( Dependency dependency : currentDependencies ( ) ) { notations . add ( Notation . generate ( dependency ) ) ; } return notations ;
public class SessionImpl { /** * { @ inheritDoc } */ public String getNamespaceURI ( String prefix ) throws NamespaceException , RepositoryException { } }
String uri = null ; // look in session first if ( namespaces . size ( ) > 0 ) { uri = namespaces . get ( prefix ) ; if ( uri != null ) { return uri ; } } return workspace . getNamespaceRegistry ( ) . getURI ( prefix ) ;
public class Http { /** * Executes a PATCH request . * @ param uri url of resource . * @ param content content to be posted . * @ return { @ link Patch } object . */ public static Patch patch ( String uri , String content ) { } }
return patch ( uri , content . getBytes ( ) , CONNECTION_TIMEOUT , READ_TIMEOUT ) ;
public class JDK8TriggerBuilder { /** * Use a < code > TriggerKey < / code > with the given name and default group to * identify the Trigger . * If none of the ' withIdentity ' methods are set on the JDK8TriggerBuilder , * then a random , unique TriggerKey will be generated . * @ param name * the name element...
m_aTriggerKey = new TriggerKey ( name , null ) ; return this ;
public class DateRangeValidationMatcher { /** * Converts the supplied date to it ' s calendar representation . The { @ code datePattern } is * used for parsing the date . * @ param date the date to parse * @ param datePattern the date format to use when parsing the date * @ return the calendar representation */...
SimpleDateFormat dateFormat = new SimpleDateFormat ( datePattern ) ; Calendar cal = Calendar . getInstance ( ) ; try { cal . setTime ( dateFormat . parse ( date ) ) ; } catch ( ParseException e ) { throw new CitrusRuntimeException ( String . format ( "Error parsing date '%s' using pattern '%s'" , date , datePattern ) ,...
public class CsvProcessor { /** * Build and return a header string made up of quoted column names . * @ param appendLineTermination * Set to true to add the newline to the end of the line . */ public String buildHeaderLine ( boolean appendLineTermination ) { } }
checkEntityConfig ( ) ; StringBuilder sb = new StringBuilder ( ) ; boolean first = true ; for ( ColumnInfo < ? > columnInfo : allColumnInfos ) { if ( first ) { first = false ; } else { sb . append ( columnSeparator ) ; } String header = columnInfo . getColumnName ( ) ; // need to protect the column if it contains a quo...
public class CmsDriverManager { /** * Helper method for finding the ' best ' URL name to use for a new URL name mapping . < p > * Since the name given as a parameter may be already used , this method will try to append numeric suffixes * to the name to find a mapping name which is not used . < p > * @ param dbc t...
List < CmsUrlNameMappingEntry > entriesStartingWithName = getVfsDriver ( dbc ) . readUrlNameMappingEntries ( dbc , false , CmsUrlNameMappingFilter . ALL . filterNamePattern ( name + "%" ) . filterRejectStructureId ( structureId ) ) ; Set < String > usedNames = new HashSet < String > ( ) ; for ( CmsUrlNameMappingEntry e...