Input: Returns a mapping of ranges in the coarser granularity to the sub - ranges in finer granularity [CODESPLIT] public static Map < Range , Iterable < Range > > mapFinerRanges ( Granularity g , Range range ) throws GranularityException { if ( range . getStart ( ) >= range . getStop ( ) ) throw new IllegalArgumentException ( "start cannot be greater than end. Start: " + range . getStart ( ) + " Stop:" + range . getStop ( ) ) ; final long snappedStartMillis = g . snapMillis ( range . getStart ( ) ) ; final long snappedStopMillis = g . snapMillis ( range . getStop ( ) + g . milliseconds ( ) ) ; HashMap < Range , Iterable < Range > > rangeMap = new HashMap < Range , Iterable < Range > > ( ) ; long tempStartMillis = snappedStartMillis ; int numberOfMillis = g . milliseconds ( ) ; while ( tempStartMillis <= ( snappedStopMillis - numberOfMillis ) ) { Range slotRange = new Range ( tempStartMillis , tempStartMillis + numberOfMillis ) ; rangeMap . put ( slotRange , new IntervalRangeIterator ( g . finer ( ) , slotRange . start , slotRange . stop ) ) ; tempStartMillis = tempStartMillis + numberOfMillis ; } return rangeMap ; }


Input: return the Ranges for an interval at this granularity [CODESPLIT] public static Iterable < Range > rangesForInterval ( Granularity g , final long from , final long to ) { if ( g == Granularity . FULL ) { return Arrays . asList ( new Range ( from , to ) ) ; } final long snappedStartMillis = g . snapMillis ( from ) ; final long snappedStopMillis = g . snapMillis ( to + g . milliseconds ( ) ) ; return new IntervalRangeIterator ( g , snappedStartMillis , snappedStopMillis ) ; }


Input: single column updates ) . [CODESPLIT] public void insertFull ( Collection < ? extends IMetric > metrics , boolean isRecordingDelayedMetrics , Clock clock ) throws ConnectionException { Timer . Context ctx = Instrumentation . getWriteTimerContext ( CassandraModel . CF_METRICS_FULL_NAME ) ; try { MutationBatch mutationBatch = keyspace . prepareMutationBatch ( ) ; for ( IMetric metric : metrics ) { final Locator locator = metric . getLocator ( ) ; // key = shard // col = locator (acct + entity + check + dimension.metric) // value = <nothing> if ( ! LocatorCache . getInstance ( ) . isLocatorCurrentInBatchLayer ( locator ) ) { if ( mutationBatch != null ) insertLocator ( locator , mutationBatch ) ; LocatorCache . getInstance ( ) . setLocatorCurrentInBatchLayer ( locator ) ; } if ( isRecordingDelayedMetrics ) { //retaining the same conditional logic that was used to insertLocator(locator, batch) above. if ( mutationBatch != null ) { insertLocatorIfDelayed ( metric , mutationBatch , clock ) ; } } insertMetric ( metric , mutationBatch ) ; Instrumentation . markFullResMetricWritten ( ) ; } // insert it try { mutationBatch . execute ( ) ; } catch ( ConnectionException e ) { Instrumentation . markWriteError ( e ) ; log . error ( "Connection exception during insertFull" , e ) ; throw e ; } } finally { ctx . stop ( ) ; } }


Input: This method inserts the locator into the metric_delayed_locator column family if the metric is delayed . [CODESPLIT] private void insertLocatorIfDelayed ( IMetric metric , MutationBatch mutationBatch , Clock clock ) { Locator locator = metric . getLocator ( ) ; long delay = clock . now ( ) . getMillis ( ) - metric . getCollectionTime ( ) ; if ( delay > MAX_AGE_ALLOWED ) { //track locator for configured granularity level. to re-roll only the delayed locator's for that slot int slot = DELAYED_METRICS_STORAGE_GRANULARITY . slot ( metric . getCollectionTime ( ) ) ; if ( ! LocatorCache . getInstance ( ) . isDelayedLocatorForASlotCurrent ( slot , locator ) ) { insertDelayedLocator ( DELAYED_METRICS_STORAGE_GRANULARITY , slot , locator , mutationBatch ) ; LocatorCache . getInstance ( ) . setDelayedLocatorForASlotCurrent ( slot , locator ) ; } } }


Input: numeric only! [CODESPLIT] public final void insertLocator ( Locator locator , MutationBatch mutationBatch ) { mutationBatch . withRow ( CassandraModel . CF_METRICS_LOCATOR , ( long ) Util . getShard ( locator . toString ( ) ) ) . putEmptyColumn ( locator , TenantTtlProvider . LOCATOR_TTL ) ; }


Input: numeric only! [CODESPLIT] public final void insertDelayedLocator ( Granularity g , int slot , Locator locator , MutationBatch mutationBatch ) { int shard = Util . getShard ( locator . toString ( ) ) ; mutationBatch . withRow ( CassandraModel . CF_METRICS_DELAYED_LOCATOR , SlotKey . of ( g , slot , shard ) ) . putEmptyColumn ( locator , TenantTtlProvider . DELAYED_LOCATOR_TTL ) ; }


Input: generic IMetric insertion . All other metric insertion methods could use this one . [CODESPLIT] public void insertMetrics ( Collection < IMetric > metrics , ColumnFamily cf , boolean isRecordingDelayedMetrics , Clock clock ) throws ConnectionException { Timer . Context ctx = Instrumentation . getWriteTimerContext ( cf . getName ( ) ) ; Multimap < Locator , IMetric > map = asMultimap ( metrics ) ; MutationBatch batch = keyspace . prepareMutationBatch ( ) ; try { for ( Locator locator : map . keySet ( ) ) { ColumnListMutation < Long > mutation = batch . withRow ( cf , locator ) ; for ( IMetric metric : map . get ( locator ) ) { mutation . putColumn ( metric . getCollectionTime ( ) , metric . getMetricValue ( ) , ( AbstractSerializer ) ( Serializers . serializerFor ( metric . getMetricValue ( ) . getClass ( ) ) ) , metric . getTtlInSeconds ( ) ) ; if ( cf . getName ( ) . equals ( CassandraModel . CF_METRICS_PREAGGREGATED_FULL_NAME ) ) { Instrumentation . markFullResPreaggregatedMetricWritten ( ) ; } if ( isRecordingDelayedMetrics ) { //retaining the same conditional logic that was used to perform insertLocator(locator, batch). insertLocatorIfDelayed ( metric , batch , clock ) ; } } if ( ! LocatorCache . getInstance ( ) . isLocatorCurrentInBatchLayer ( locator ) ) { insertLocator ( locator , batch ) ; LocatorCache . getInstance ( ) . setLocatorCurrentInBatchLayer ( locator ) ; } } try { batch . execute ( ) ; } catch ( ConnectionException e ) { Instrumentation . markWriteError ( e ) ; log . error ( "Connection exception persisting data" , e ) ; throw e ; } } finally { ctx . stop ( ) ; } }


Input: This method inserts a collection of { @link com . rackspacecloud . blueflood . service . SingleRollupWriteContext } objects to the appropriate Cassandra column family . [CODESPLIT] @ Override public void insertRollups ( List < SingleRollupWriteContext > writeContexts ) { if ( writeContexts . size ( ) == 0 ) { return ; } Timer . Context ctx = Instrumentation . getWriteTimerContext ( writeContexts . get ( 0 ) . getDestinationCF ( ) . getName ( ) ) ; try { BatchStatement batch = new BatchStatement ( BatchStatement . Type . UNLOGGED ) ; for ( SingleRollupWriteContext writeContext : writeContexts ) { Rollup rollup = writeContext . getRollup ( ) ; Locator locator = writeContext . getLocator ( ) ; Granularity granularity = writeContext . getGranularity ( ) ; int ttl = getTtl ( locator , rollup . getRollupType ( ) , granularity ) ; // lookup the right writer RollupType rollupType = writeContext . getRollup ( ) . getRollupType ( ) ; DAbstractMetricIO io = getIO ( rollupType . name ( ) . toLowerCase ( ) , granularity ) ; Statement statement = io . createStatement ( locator , writeContext . getTimestamp ( ) , rollup , writeContext . getGranularity ( ) , ttl ) ; batch . add ( statement ) ; } Session session = DatastaxIO . getSession ( ) ; session . execute ( batch ) ; } catch ( Exception ex ) { Instrumentation . markWriteError ( ) ; LOG . error ( String . format ( "error writing locator batch of size %s, granularity %s" , writeContexts . size ( ) , writeContexts . get ( 0 ) . getGranularity ( ) ) , ex ) ; } finally { ctx . stop ( ) ; } }


Input: Fetches { @link com . rackspacecloud . blueflood . outputs . formats . MetricData } objects for the specified { @link com . rackspacecloud . blueflood . types . Locator } and { @link com . rackspacecloud . blueflood . types . Range } from the specified column family [CODESPLIT] @ Override public MetricData getDatapointsForRange ( final Locator locator , Range range , Granularity granularity ) { Map < Locator , MetricData > result = getDatapointsForRange ( new ArrayList < Locator > ( ) { { add ( locator ) ; } } , range , granularity ) ; return result . get ( locator ) ; }


Input: Fetches { @link com . rackspacecloud . blueflood . outputs . formats . MetricData } objects for the specified { @link com . rackspacecloud . blueflood . types . Locator } and { @link com . rackspacecloud . blueflood . types . Range } from the specified column family [CODESPLIT] public Map < Locator , MetricData > getDatapointsForRange ( List < Locator > locators , Range range , String columnFamily , Granularity granularity ) { Timer . Context ctx = Instrumentation . getReadTimerContext ( columnFamily ) ; try { MetadataCache metadataCache = MetadataCache . getInstance ( ) ; // in this loop, we will fire all the executeAsync() of // various select statements, the collect all of the // ResultSetFutures Map < Locator , List < ResultSetFuture > > locatorToFuturesMap = new HashMap < Locator , List < ResultSetFuture > > ( ) ; Map < Locator , DAbstractMetricIO > locatorIOMap = new HashMap < Locator , DAbstractMetricIO > ( ) ; for ( Locator locator : locators ) { try { String rType = metadataCache . get ( locator , MetricMetadata . ROLLUP_TYPE . name ( ) . toLowerCase ( ) ) ; DAbstractMetricIO io = getIO ( rType , granularity ) ; // put everything in a map of locator -> io so // we can use em up later locatorIOMap . put ( locator , io ) ; // do the query List < ResultSetFuture > selectFutures = io . selectForLocatorAndRange ( columnFamily , locator , range ) ; // add all ResultSetFutures for a particular locator together List < ResultSetFuture > existing = locatorToFuturesMap . get ( locator ) ; if ( existing == null ) { existing = new ArrayList < ResultSetFuture > ( ) ; locatorToFuturesMap . put ( locator , existing ) ; } existing . addAll ( selectFutures ) ; } catch ( CacheException ex ) { Instrumentation . markReadError ( ) ; LOG . error ( String . format ( "Error looking up locator %s in cache" , locator ) , ex ) ; } } return resultSetsToMetricData ( locatorToFuturesMap , locatorIOMap , columnFamily , range ) ; } finally { ctx . stop ( ) ; } }


Input: Fetches a { @link com . rackspacecloud . blueflood . types . Points } object for a particular locator and rollupType from the specified column family and range [CODESPLIT] @ Override public Points getDataToRollup ( final Locator locator , RollupType rollupType , Range range , String columnFamilyName ) throws IOException { Timer . Context ctx = Instrumentation . getReadTimerContext ( columnFamilyName ) ; try { // read the rollup object from the proper IO class DAbstractMetricIO io = getIO ( rollupType . name ( ) . toLowerCase ( ) , CassandraModel . getGranularity ( columnFamilyName ) ) ; Table < Locator , Long , Object > locatorTimestampRollup = io . getRollupsForLocator ( locator , columnFamilyName , range ) ; Points points = new Points ( ) ; for ( Table . Cell < Locator , Long , Object > cell : locatorTimestampRollup . cellSet ( ) ) { points . add ( createPoint ( cell . getColumnKey ( ) , cell . getValue ( ) ) ) ; } return points ; } catch ( Exception e ) { Instrumentation . markReadError ( ) ; LOG . error ( String . format ( "Unable to read locator=%s rolluptype=%s columnFamilyName=%s for rollup" , locator , rollupType . name ( ) , columnFamilyName ) , e ) ; throw new IOException ( e ) ; } finally { ctx . stop ( ) ; } }


Input: Converts a list of { @link com . datastax . driver . core . ResultSetFuture } for each { @link com . rackspacecloud . blueflood . types . Locator } to { @link com . rackspacecloud . blueflood . outputs . formats . MetricData } object . [CODESPLIT] protected Map < Locator , MetricData > resultSetsToMetricData ( Map < Locator , List < ResultSetFuture > > resultSets , Map < Locator , DAbstractMetricIO > locatorIO , String columnFamily , Range range ) { MetadataCache metadataCache = MetadataCache . getInstance ( ) ; // iterate through all ResultSetFuture Map < Locator , MetricData > locatorMetricDataMap = new HashMap < Locator , MetricData > ( ) ; for ( Map . Entry < Locator , List < ResultSetFuture > > entry : resultSets . entrySet ( ) ) { Locator locator = entry . getKey ( ) ; List < ResultSetFuture > futures = entry . getValue ( ) ; DAbstractMetricIO io = locatorIO . get ( locator ) ; // get ResultSets to a Table of locator, timestamp, rollup Table < Locator , Long , Object > locatorTimestampRollup = io . toLocatorTimestampValue ( futures , locator , columnFamily , range ) ; Map < Long , Object > tsRollupMap = locatorTimestampRollup . row ( locator ) ; // convert to Points and MetricData Points points = convertToPoints ( tsRollupMap ) ; // create MetricData MetricData metricData = new MetricData ( points , metadataCache . getUnitString ( locator ) ) ; locatorMetricDataMap . put ( locator , metricData ) ; } return locatorMetricDataMap ; }


Input: Given a map of timestamps - > Rollups / SimpleNumbers return RollupType or null if not a Rollup . [CODESPLIT] private RollupType getRollupType ( Map < Long , Object > tsRollupMap ) { if ( tsRollupMap . isEmpty ( ) ) return null ; else { Object value = tsRollupMap . values ( ) . iterator ( ) . next ( ) ; return value instanceof Rollup ? ( ( Rollup ) value ) . getRollupType ( ) : null ; } }


Input: Determines if the metric is considered delayed or not [CODESPLIT] protected boolean isDelayed ( IMetric metric ) { long delay = clock . now ( ) . getMillis ( ) - metric . getCollectionTime ( ) ; return delay > MAX_AGE_ALLOWED ; }


Input: This method inserts the locator into the metric_delayed_locator column family if the metric is delayed . [CODESPLIT] protected void insertLocatorIfDelayed ( IMetric metric ) throws IOException { Locator locator = metric . getLocator ( ) ; if ( isDelayed ( metric ) ) { int slot = getDelayedSlot ( metric ) ; if ( ! LocatorCache . getInstance ( ) . isDelayedLocatorForASlotCurrent ( slot , locator ) ) { delayedLocatorIO . insertLocator ( DELAYED_METRICS_STORAGE_GRANULARITY , slot , locator ) ; LocatorCache . getInstance ( ) . setDelayedLocatorForASlotCurrent ( slot , locator ) ; } } }


Input: Returns a BoundStatement if a metric needs to be inserted to the metrics_delayed_locator Column Family . Returns null otherwise . [CODESPLIT] protected BoundStatement getBoundStatementForMetricIfDelayed ( IMetric metric ) { Locator locator = metric . getLocator ( ) ; if ( isDelayed ( metric ) ) { int slot = getDelayedSlot ( metric ) ; if ( ! LocatorCache . getInstance ( ) . isDelayedLocatorForASlotCurrent ( slot , locator ) ) { LocatorCache . getInstance ( ) . setDelayedLocatorForASlotCurrent ( slot , locator ) ; return delayedLocatorIO . getBoundStatementForLocator ( DELAYED_METRICS_STORAGE_GRANULARITY , slot , locator ) ; } } return null ; }


Input: This method queries elasticsearch for a given glob query and returns list of { @link MetricName } s . [CODESPLIT] private List < MetricName > searchESByIndexes ( String tenantId , String query , String [ ] indexes ) { if ( StringUtils . isEmpty ( query ) ) return new ArrayList <> ( ) ; Timer . Context timerCtx = esMetricNamesQueryTimer . time ( ) ; try { String response = elasticsearchRestHelper . fetchTokenDocuments ( indexes , tenantId , query ) ; List < MetricName > metricNames = getMetricNames ( response ) ; Set < MetricName > uniqueMetricNames = new HashSet <> ( metricNames ) ; return new ArrayList <> ( uniqueMetricNames ) ; } catch ( IOException e ) { log . error ( "IOException: Elasticsearch token query failed for tenantId {}. {}" , tenantId , e . getMessage ( ) ) ; throw new RuntimeException ( String . format ( "searchESByIndexes failed with message: %s" , e . getMessage ( ) ) , e ) ; } catch ( Exception e ) { log . error ( "Exception: Elasticsearch token query failed for tenantId {}. {}" , tenantId , e . getMessage ( ) ) ; throw new RuntimeException ( String . format ( "searchESByIndexes failed with message: %s" , e . getMessage ( ) ) , e ) ; } finally { timerCtx . stop ( ) ; } }


Input: Method that returns all metadata for a given locator as a map . [CODESPLIT] public Map < String , String > getMetadataValues ( Locator locator ) { Timer . Context ctx = Instrumentation . getReadTimerContext ( CassandraModel . CF_METRICS_METADATA_NAME ) ; try { final ColumnList < String > results = keyspace . prepareQuery ( CassandraModel . CF_METRICS_METADATA ) . getKey ( locator ) . execute ( ) . getResult ( ) ; return new HashMap < String , String > ( ) { { for ( Column < String > result : results ) { put ( result . getName ( ) , result . getValue ( StringMetadataSerializer . get ( ) ) ) ; } } } ; } catch ( NotFoundException ex ) { Instrumentation . markNotFound ( CassandraModel . CF_METRICS_METADATA_NAME ) ; return null ; } catch ( ConnectionException e ) { log . error ( "Error reading metadata value" , e ) ; Instrumentation . markReadError ( e ) ; throw new RuntimeException ( e ) ; } finally { ctx . stop ( ) ; } }


Input: todo : A better interface may be to pass the serializer in instead of the class type . [CODESPLIT] public < T extends Rollup > Points < T > getDataToRoll ( Class < T > type , final Locator locator , Range range , ColumnFamily < Locator , Long > cf ) throws IOException { AbstractSerializer serializer = Serializers . serializerFor ( type ) ; // special cases. :( the problem here is that the normal full res serializer returns Number instances instead of // SimpleNumber instances. // todo: this logic will only become more complicated. It needs to be in its own method and the serializer needs // to be known before we ever get to this method (see above comment). if ( cf == CassandraModel . CF_METRICS_FULL ) { serializer = Serializers . simpleNumberSerializer ; } else if ( cf == CassandraModel . CF_METRICS_PREAGGREGATED_FULL ) { // consider a method for this.  getSerializer(CF, TYPE); if ( type . equals ( BluefloodTimerRollup . class ) ) { serializer = Serializers . timerRollupInstance ; } else if ( type . equals ( BluefloodSetRollup . class ) ) { serializer = Serializers . setRollupInstance ; } else if ( type . equals ( BluefloodGaugeRollup . class ) ) { serializer = Serializers . gaugeRollupInstance ; } else if ( type . equals ( BluefloodCounterRollup . class ) ) { serializer = Serializers . counterRollupInstance ; } else { serializer = Serializers . simpleNumberSerializer ; } } ColumnList < Long > cols = getColumnsFromDB ( locator , cf , range ) ; Points < T > points = new Points < T > ( ) ; try { for ( Column < Long > col : cols ) { points . add ( new Points . Point < T > ( col . getName ( ) , ( T ) col . getValue ( serializer ) ) ) ; } // we only want to count the number of points we // get when we're querying the metrics_full // we don't do for aggregated or other granularities if ( cf == CassandraModel . CF_METRICS_FULL ) { Instrumentation . getRawPointsIn5MinHistogram ( ) . update ( points . getPoints ( ) . size ( ) ) ; } } catch ( RuntimeException ex ) { log . error ( "Problem deserializing data for " + locator + " (" + range + ") from " + cf . getName ( ) , ex ) ; throw new IOException ( ex ) ; } return points ; }


Input: Get data points for a particular { @link Locator } { @link Range } and { @link Granularity } . [CODESPLIT] public MetricData getDatapointsForRange ( Locator locator , Range range , Granularity gran ) { RollupType rollupType = RollupType . BF_BASIC ; String rollupTypeStr = metaCache . safeGet ( locator , rollupTypeCacheKey ) ; if ( rollupTypeStr != null ) { rollupType = RollupType . fromString ( rollupTypeStr ) ; } return getNumericMetricDataForRange ( locator , range , gran , rollupType ) ; }


Input: Get data points for multiple { @link Locator } for the specified { @link Range } and { @link Granularity } . [CODESPLIT] public Map < Locator , MetricData > getDatapointsForRange ( List < Locator > locators , Range range , Granularity gran ) { ListMultimap < ColumnFamily , Locator > locatorsByCF = ArrayListMultimap . create ( ) ; Map < Locator , MetricData > results = new HashMap < Locator , MetricData > ( ) ; for ( Locator locator : locators ) { try { RollupType rollupType = RollupType . fromString ( metaCache . get ( locator , MetricMetadata . ROLLUP_TYPE . name ( ) . toLowerCase ( ) ) ) ; ColumnFamily cf = CassandraModel . getColumnFamily ( rollupType , gran ) ; List < Locator > locs = locatorsByCF . get ( cf ) ; locs . add ( locator ) ; } catch ( Exception e ) { // pass for now. need metric to figure this stuff out. log . error ( String . format ( "error getting datapoints for locator %s, range %s, granularity %s" , locator , range . toString ( ) , gran . toString ( ) ) , e ) ; } } for ( ColumnFamily CF : locatorsByCF . keySet ( ) ) { List < Locator > locs = locatorsByCF . get ( CF ) ; results . putAll ( getNumericDataForRangeLocatorList ( range , gran , CF , locs ) ) ; } return results ; }


Input: Fetches a { @link com . rackspacecloud . blueflood . types . Points } object for a particular locator and rollupType from the specified column family and range [CODESPLIT] @ Override public Points < BasicRollup > getDataToRollup ( final Locator locator , RollupType rollupType , Range range , String columnFamilyName ) throws IOException { return AstyanaxReader . getInstance ( ) . getDataToRoll ( BasicRollup . class , locator , range , CassandraModel . getColumnFamily ( columnFamilyName ) ) ; }


Input: return a serializer for a specific type [CODESPLIT] public static < T > AbstractSerializer < T > serializerFor ( Class < T > type ) { if ( type == null ) throw new RuntimeException ( "serializable type cannot be null" , new SerializationException ( "serializable type cannot be null" ) ) ; else if ( type . equals ( String . class ) ) throw new RuntimeException ( "We don't serialize strings anymore" , new SerializationException ( "We don't serialize strings anymore" ) ) ; if ( type . equals ( BasicRollup . class ) ) return ( AbstractSerializer < T > ) basicRollupInstance ; else if ( type . equals ( BluefloodTimerRollup . class ) ) return ( AbstractSerializer < T > ) timerRollupInstance ; else if ( type . equals ( BluefloodCounterRollup . class ) ) return ( AbstractSerializer < T > ) counterRollupInstance ; else if ( type . equals ( BluefloodGaugeRollup . class ) ) return ( AbstractSerializer < T > ) gaugeRollupInstance ; else if ( type . equals ( BluefloodSetRollup . class ) ) return ( AbstractSerializer < T > ) setRollupInstance ; else if ( type . equals ( SimpleNumber . class ) ) return ( AbstractSerializer < T > ) fullInstance ; else if ( type . equals ( Integer . class ) ) return ( AbstractSerializer < T > ) fullInstance ; else if ( type . equals ( Long . class ) ) return ( AbstractSerializer < T > ) fullInstance ; else if ( type . equals ( Double . class ) ) return ( AbstractSerializer < T > ) fullInstance ; else if ( type . equals ( Float . class ) ) return ( AbstractSerializer < T > ) fullInstance ; else if ( type . equals ( byte [ ] . class ) ) return ( AbstractSerializer < T > ) fullInstance ; else if ( type . equals ( Object . class ) ) return ( AbstractSerializer < T > ) fullInstance ; else return ( AbstractSerializer < T > ) fullInstance ; }


Input: Checks the Content - Type header to see if clients specify the right media type [CODESPLIT] public boolean isContentTypeValid ( HttpHeaders headers ) { String contentType = headers . get ( HttpHeaders . Names . CONTENT_TYPE ) ; // if we get no Content-Type or we get application/json, then it's valid // any other, it's invalid return ( Strings . isNullOrEmpty ( contentType ) || contentType . toLowerCase ( ) . contains ( MEDIA_TYPE_APPLICATION_JSON ) ) ; }


Input: Checks the Accept header to see if clients accept the correct media type [CODESPLIT] public boolean isAcceptValid ( HttpHeaders headers ) { String accept = headers . get ( HttpHeaders . Names . ACCEPT ) ; // if we get no Accept (which means */*), or */*, // or application/json, then it's valid return ( Strings . isNullOrEmpty ( accept ) || accept . contains ( ACCEPT_ALL ) || accept . toLowerCase ( ) . contains ( MEDIA_TYPE_APPLICATION_JSON ) ) ; }


Input: REST call to index into ES [CODESPLIT] public void insertDiscovery ( List < IMetric > batch ) throws IOException { batchHistogram . update ( batch . size ( ) ) ; if ( batch . size ( ) == 0 ) { log . debug ( "ElasticIO: batch size for insertDiscovery is zero, so skip calling Elasticsearch ingest." ) ; return ; } Timer . Context ctx = writeTimer . time ( ) ; try { for ( Object obj : batch ) { if ( ! ( obj instanceof IMetric ) ) { classCastExceptionMeter . mark ( ) ; continue ; } } elasticsearchRestHelper . indexMetrics ( batch ) ; } finally { ctx . stop ( ) ; } }


Input: This method is invoked by the validator automatically [CODESPLIT] @ AssertTrue ( message = "At least one of the aggregated metrics(gauges, counters, timers, sets) are expected" ) private boolean isValid ( ) { boolean isGaugePresent = gauges != null && gauges . length > 0 ; boolean isCounterPresent = counters != null && counters . length > 0 ; boolean isTimerPresent = timers != null && timers . length > 0 ; boolean isSetPresent = sets != null && sets . length > 0 ; return ( isGaugePresent || isCounterPresent || isTimerPresent || isSetPresent ) ; }


Input: Marks / instruments our internal metrics that we have received short or delayed metrics [CODESPLIT] public void markDelayMetricsReceived ( long ingestTime ) { long delay = getDelayTime ( ingestTime ) ; if ( delay > MAX_AGE_ALLOWED ) { if ( delay <= SHORT_DELAY ) { Instrumentation . markMetricsWithShortDelayReceived ( ) ; } else { Instrumentation . markMetricsWithLongDelayReceived ( ) ; } } }


Input: gets run by the thread . [CODESPLIT] private void doCheck ( ) { if ( ! running ) return ; if ( fileManager == null ) return ; if ( unexpectedErrors > MAX_UNEXPECTED_ERRORS ) { log . info ( "Terminating because of errors" ) ; terminate ( false ) ; return ; } Timer . Context waitTimerContext = waitingTimer . time ( ) ; // Possible infinite thread sleep? This will make sure we fire downloading only when are the files are consumed/merged while ( downloadDir . listFiles ( ) . length != 0 ) { log . debug ( "Waiting for files in download directory to clear up. Sleeping for 1 min. If you see this persistently, it means the downloaded files are not getting merged properly/timely" ) ; try { Thread . sleep ( 60000 ) ; } catch ( Exception ex ) { } } waitTimerContext . stop ( ) ; if ( downloadLock . tryLock ( ) ) { try { if ( fileManager . hasNewFiles ( ) ) { fileManager . downloadNewFiles ( downloadDir ) ; } } catch ( Throwable unexpected ) { unexpectedErrors += 1 ; log . error ( "UNEXPECTED; WILL TRY TO RECOVER" ) ; log . error ( unexpected . getMessage ( ) , unexpected ) ; // sleep for a minute? if ( Thread . interrupted ( ) ) { try { thread . sleep ( 60000 ) ; } catch ( Exception ex ) { log . error ( ex . getMessage ( ) , ex ) ; } } } finally { downloadLock . unlock ( ) ; } } else { log . debug ( "Download in progress" ) ; } }


Input: Inserts a collection of rolled up metrics to the metrics_preaggregated_ { granularity } column family . Only our tests should call this method . Services should call either insertMetrics ( Collection metrics ) or insertRollups () [CODESPLIT] @ VisibleForTesting @ Override public void insertMetrics ( Collection < IMetric > metrics , Granularity granularity ) throws IOException { Timer . Context ctx = Instrumentation . getWriteTimerContext ( CassandraModel . getPreaggregatedColumnFamilyName ( granularity ) ) ; try { Multimap < Locator , IMetric > map = asMultimap ( metrics ) ; if ( isBatchIngestEnabled ) { insertMetricsInBatch ( map , granularity ) ; } else { insertMetricsIndividually ( map , granularity ) ; } } finally { ctx . stop ( ) ; } }


Input: Fetches { @link com . rackspacecloud . blueflood . outputs . formats . MetricData } objects for the specified list of { @link com . rackspacecloud . blueflood . types . Locator } and { @link com . rackspacecloud . blueflood . types . Range } from the specified column family [CODESPLIT] @ Override public Map < Locator , MetricData > getDatapointsForRange ( List < Locator > locators , Range range , Granularity granularity ) /*throws IOException*/ { String columnFamily = CassandraModel . getPreaggregatedColumnFamilyName ( granularity ) ; return getDatapointsForRange ( locators , range , columnFamily , granularity ) ; }


Input: Return the appropriate IO object which interacts with the Cassandra database . [CODESPLIT] @ Override public DAbstractMetricIO getIO ( String rollupType , Granularity granularity ) { // find out the rollupType for this locator RollupType rType = RollupType . fromString ( rollupType ) ; // get the right PreaggregatedIO class that can process // this rollupType DAbstractMetricIO io = rollupTypeToIO . get ( rType ) ; if ( io == null ) { throw new InvalidDataException ( String . format ( "getIO: unsupported rollupType=%s" , rollupType ) ) ; } return io ; }


Input: @return an available port assigned at random by the OS . [CODESPLIT] public int get ( ) throws IllegalStateException { ServerSocket socket = null ; try { socket = this . severSocketFactory . createServerSocket ( 0 ) ; socket . setReuseAddress ( false ) ; return socket . getLocalPort ( ) ; } catch ( IOException e ) { throw new IllegalStateException ( "Could not determine random port to assign." , e ) ; } finally { if ( socket != null ) { try { socket . close ( ) ; } catch ( IOException e ) { LOGGER . debug ( "Couldn't close socket that was temporarily opened to determine random port." , e ) ; } } } }


Input: Returns an Extractor instance appropriate based on the given configuration . [CODESPLIT] public Extractor getNewInstance ( ) { Extractor extractor = new BasicExtractor ( config ) ; if ( config . shouldCachedDownload ( ) ) { extractor = new CachedExtractor ( extractor , config ) ; } return extractor ; }


Input: Decides if the operating system matches . [CODESPLIT] private static boolean getOSMatches ( final String osNamePrefix , final String osVersionPrefix ) { return isOSMatch ( OS_NAME , OS_VERSION , osNamePrefix , osVersionPrefix ) ; }


Input: <p > Gets a System property defaulting to { @code null } if the property cannot be read . < / p > <p > If a { @code SecurityException } is caught the return value is { @code null } and a message is written to { @code System . err } . < / p > [CODESPLIT] private static String getSystemProperty ( final String property ) { try { return System . getProperty ( property ) ; } catch ( final SecurityException ex ) { // we are not allowed to look at this property System . err . println ( "Caught a SecurityException reading the system property '" + property + "'; the SystemUtils property value will default to null." ) ; return null ; } }


Input: <p > Decides if the Java version matches . < / p > <p > This method is package private instead of private to support unit test invocation . < / p > [CODESPLIT] static boolean isJavaVersionMatch ( final String version , final String versionPrefix ) { if ( version == null ) { return false ; } return version . startsWith ( versionPrefix ) ; }


Input: Decides if the operating system matches . <p > This method is package private instead of private to support unit test invocation . < / p > [CODESPLIT] static boolean isOSMatch ( final String osName , final String osVersion , final String osNamePrefix , final String osVersionPrefix ) { if ( osName == null || osVersion == null ) { return false ; } return isOSNameMatch ( osName , osNamePrefix ) && isOSVersionMatch ( osVersion , osVersionPrefix ) ; }


Input: Decides if the operating system version matches . <p > This method is package private instead of private to support unit test invocation . < / p > [CODESPLIT] static boolean isOSVersionMatch ( final String osVersion , final String osVersionPrefix ) { if ( osVersion == null || osVersion . trim ( ) . isEmpty ( ) ) { return false ; } // Compare parts of the version string instead of using String.startsWith(String) because otherwise // osVersionPrefix 10.1 would also match osVersion 10.10 String [ ] versionPrefixParts = osVersionPrefix . split ( "\\." ) ; String [ ] versionParts = osVersion . split ( "\\." ) ; for ( int i = 0 ; i < Math . min ( versionPrefixParts . length , versionParts . length ) ; i ++ ) { if ( ! versionPrefixParts [ i ] . equals ( versionParts [ i ] ) ) { return false ; } } return true ; }


Input: Returns the RabbitMQ node port as defined by the { [CODESPLIT] public int getRabbitMqPort ( ) { String portValue = this . envVars . get ( RabbitMqEnvVar . NODE_PORT . getEnvVarName ( ) ) ; if ( portValue == null ) { return RabbitMqEnvVar . DEFAULT_NODE_PORT ; } else { return Integer . parseInt ( portValue ) ; } }


Input: Starts the RabbitMQ server process and blocks the current thread until the initialization is completed . [CODESPLIT] public void start ( ) throws ErlangVersionException , DownloadException , ExtractionException , StartupException { if ( rabbitMqProcess != null ) { throw new IllegalStateException ( "Start shouldn't be called more than once unless stop() has been called before." ) ; } check ( ) ; download ( ) ; extract ( ) ; run ( ) ; }


Input: Submits the command to stop RabbitMQ and blocks the current thread until the shutdown is completed . [CODESPLIT] public void stop ( ) throws ShutDownException { if ( rabbitMqProcess == null ) { throw new IllegalStateException ( "Stop shouldn't be called unless 'start()' was successful." ) ; } new ShutdownHelper ( config , rabbitMqProcess ) . run ( ) ; rabbitMqProcess = null ; }


Input: <p > Start the stopwatch . < / p > [CODESPLIT] public void start ( ) { if ( this . runningState == State . STOPPED ) { throw new IllegalStateException ( "Stopwatch must be reset before being restarted. " ) ; } if ( this . runningState != State . UNSTARTED ) { throw new IllegalStateException ( "Stopwatch already started. " ) ; } this . startTime = System . nanoTime ( ) ; this . startTimeMillis = System . currentTimeMillis ( ) ; this . runningState = State . RUNNING ; }


Input: <p > Stop the stopwatch . < / p > [CODESPLIT] public void stop ( ) { if ( this . runningState != State . RUNNING && this . runningState != State . SUSPENDED ) { throw new IllegalStateException ( "Stopwatch is not running. " ) ; } if ( this . runningState == State . RUNNING ) { this . stopTime = System . nanoTime ( ) ; } this . runningState = State . STOPPED ; }


Input: <p > Split the time . < / p > [CODESPLIT] public void split ( ) { if ( this . runningState != State . RUNNING ) { throw new IllegalStateException ( "Stopwatch is not running. " ) ; } this . stopTime = System . nanoTime ( ) ; this . splitState = SplitState . SPLIT ; }


Input: <p > Suspend the stopwatch for later resumption . < / p > [CODESPLIT] public void suspend ( ) { if ( this . runningState != State . RUNNING ) { throw new IllegalStateException ( "Stopwatch must be running to suspend. " ) ; } this . stopTime = System . nanoTime ( ) ; this . runningState = State . SUSPENDED ; }


Input: <p > Resume the stopwatch after a suspend . < / p > [CODESPLIT] public void resume ( ) { if ( this . runningState != State . SUSPENDED ) { throw new IllegalStateException ( "Stopwatch must be suspended to resume. " ) ; } this . startTime += System . nanoTime ( ) - this . stopTime ; this . runningState = State . RUNNING ; }


Input: <p > Get the time on the stopwatch in nanoseconds . < / p > [CODESPLIT] public long getNanoTime ( ) { if ( this . runningState == State . STOPPED || this . runningState == State . SUSPENDED ) { return this . stopTime - this . startTime ; } else if ( this . runningState == State . UNSTARTED ) { return 0 ; } else if ( this . runningState == State . RUNNING ) { return System . nanoTime ( ) - this . startTime ; } throw new RuntimeException ( "Illegal running state has occurred." ) ; }


Input: Joins the elements of the provided collection into a single String containing the provided list of elements . <p > No delimiter is added before or after the list . <p > Empty collections return an empty String . [CODESPLIT] public static < T > String join ( Collection < T > collection , CharSequence joinedBy ) { if ( collection . isEmpty ( ) ) { return "" ; } StringBuilder stringBuilder = new StringBuilder ( 256 ) ; for ( T t : collection ) { stringBuilder . append ( t . toString ( ) ) . append ( joinedBy ) ; } return stringBuilder . substring ( 0 , stringBuilder . length ( ) - joinedBy . length ( ) ) ; }


Input: Retrieves the current system s Erlang version to compare it to the minimum required version . <p > The system s Erlang version is always retrieved but the comparison might be skipped if the RabbitMQ version doesn t specify a minimum required version . [CODESPLIT] public void check ( ) throws ErlangVersionException { String erlangVersion ; try { erlangVersion = erlangShell . getErlangVersion ( ) ; LOGGER . debug ( "Erlang version installed in this system: {}" , erlangVersion ) ; } catch ( ErlangShellException e ) { throw new ErlangVersionException ( "Could not determine Erlang version. Ensure Erlang is correctly installed." , e ) ; } if ( minErlangVersion == null ) { LOGGER . debug ( "RabbitMQ version to execute doesn't specify a minimum Erlang version. Will skip this check." ) ; return ; } else { LOGGER . debug ( "RabbitMQ version to execute requires Erlang version {} or above." , minErlangVersion ) ; } int [ ] expected ; int [ ] actual ; try { expected = parse ( minErlangVersion ) ; actual = parse ( erlangVersion ) ; } catch ( RuntimeException e ) { LOGGER . warn ( "Error parsing Erlang version: " + minErlangVersion + " or " + erlangVersion + ". Ignoring check..." ) ; return ; } for ( int i = 0 ; i < actual . length ; i ++ ) { if ( actual [ i ] > expected [ i ] ) { break ; } if ( actual [ i ] < expected [ i ] ) { throw new ErlangVersionException ( String . format ( "Minimum required Erlang version not found. Expected '%s' or higher. Actual is: '%s'" , minErlangVersion , erlangVersion ) ) ; } } }


Input: This method exposes a way to invoke { @value EXECUTABLE } command with any arguments . This is useful when the class methods don t expose the desired functionality . <p > For example : <pre > <code > RabbitMqPlugins command = new RabbitMqPlugins ( config ) ; command . execute ( list - v management ) ; < / code > < / pre > [CODESPLIT] public Future < ProcessResult > execute ( String ... arguments ) throws RabbitMqCommandException { return new RabbitMqCommand ( config , EXECUTABLE , arguments ) . call ( ) . getFuture ( ) ; }


Input: Same as { [CODESPLIT] public Map < Plugin . State , Set < Plugin > > groupedList ( ) throws RabbitMqCommandException { Collection < Plugin > plugins = list ( ) . values ( ) ; return groupPluginsByState ( plugins ) ; }


Input: Executes the { @code rabbitmq - plugins list } command [CODESPLIT] public Map < String , Plugin > list ( ) { String [ ] args = { LIST_COMMAND } ; String executionErrorMessage = String . format ( "Error executing: %s %s" , EXECUTABLE , LIST_COMMAND ) ; String unexpectedExitCodeMessage = "Listing of plugins failed with exit code: " ; ProcessResult processResult = getProcessResult ( args , executionErrorMessage , unexpectedExitCodeMessage ) ; List < Plugin > plugins = parseListOutput ( processResult ) ; Map < String , Plugin > result = mapPluginsByName ( plugins ) ; return result ; }


Input: Executes the command { @code rabbitmq - plugins enable { plugin }} and blocks until the call finishes . [CODESPLIT] public void enable ( String plugin ) throws RabbitMqCommandException { String [ ] args = { "enable" , plugin } ; String executionErrorMessage = "Error while enabling plugin '" + plugin + "'" ; String unexpectedExitCodeMessage = "Enabling of plugin '" + plugin + "' failed with exit code: " ; getProcessResult ( args , executionErrorMessage , unexpectedExitCodeMessage ) ; }


Input: Disables the given plugin by executing { @code rabbitmq - plugins disable { plugin }} and blocks until the call is finished . [CODESPLIT] public void disable ( String plugin ) throws RabbitMqCommandException { String [ ] args = { "disable" , plugin } ; String executionErrorMessage = "Error while disabling plugin '" + plugin + "'" ; String unexpectedExitCodeMessage = "Disabling of plugin '" + plugin + "' failed with exit code: " ; getProcessResult ( args , executionErrorMessage , unexpectedExitCodeMessage ) ; }


Input: Copies bytes from the URL <code > source< / code > to a file <code > destination< / code > . The directories up to <code > destination< / code > will be created if they don t already exist . <code > destination< / code > will be overwritten if it already exists . [CODESPLIT] public static void copyURLToFile ( URL source , File destination , int connectionTimeout , int readTimeout ) throws IOException { copyUrlToFile ( source , destination , connectionTimeout , readTimeout , null ) ; }


Input: Copies bytes from the URL <code > source< / code > to a file <code > destination< / code > . The directories up to <code > destination< / code > will be created if they don t already exist . <code > destination< / code > will be overwritten if it already exists . [CODESPLIT] public static void copyUrlToFile ( URL source , File destination , int connectionTimeout , int readTimeout , Proxy proxy ) throws IOException { URLConnection connection ; if ( proxy == null ) { connection = source . openConnection ( ) ; } else { connection = source . openConnection ( proxy ) ; } connection . setConnectTimeout ( connectionTimeout ) ; connection . setReadTimeout ( readTimeout ) ; InputStream input = connection . getInputStream ( ) ; copyInputStreamToFile ( input , destination ) ; }


Input: Copies bytes from an { @link InputStream } <code > source< / code > to a file <code > destination< / code > . The directories up to <code > destination< / code > will be created if they don t already exist . <code > destination< / code > will be overwritten if it already exists . [CODESPLIT] public static void copyInputStreamToFile ( InputStream source , File destination ) throws IOException { try { FileOutputStream output = openOutputStream ( destination ) ; try { copy ( source , output ) ; output . close ( ) ; // don't swallow close Exception if copy completes normally } finally { closeQuietly ( output ) ; } } finally { closeQuietly ( source ) ; } }


Input: Starts the RabbitMQ Server and blocks the current thread until the server is confirmed to have started . <p > This is useful to ensure no other interactions happen with the RabbitMQ Server until it s safe to do so [CODESPLIT] @ Override public Future < ProcessResult > call ( ) throws StartupException { PatternFinderOutputStream initializationWatcher = new PatternFinderOutputStream ( BROKER_STARTUP_COMPLETED ) ; // Inform the initializationWatcher if the process ends before the expected output is produced. PublishingProcessListener rabbitMqProcessListener = new PublishingProcessListener ( ) ; rabbitMqProcessListener . addSubscriber ( initializationWatcher ) ; Future < ProcessResult > resultFuture = startProcess ( initializationWatcher , rabbitMqProcessListener ) ; waitForConfirmation ( initializationWatcher ) ; return resultFuture ; }


Input: @param outputLine as generated by the command line { @code rabbitmq - plugins groupedList } [CODESPLIT] public static Plugin fromString ( String outputLine ) { Matcher matcher = LIST_OUTPUT_PATTERN . matcher ( outputLine ) ; if ( ! matcher . matches ( ) ) { return null ; } String state = matcher . group ( 1 ) ; String pluginName = matcher . group ( 2 ) ; String version = matcher . group ( 3 ) ; return new Plugin ( pluginName , State . fromString ( state ) , version ) ; }


Input: The default parameters for media constraints . Might have to tweak in future . [CODESPLIT] public static PnSignalingParams defaultInstance ( ) { MediaConstraints pcConstraints = PnSignalingParams . defaultPcConstraints ( ) ; MediaConstraints videoConstraints = PnSignalingParams . defaultVideoConstraints ( ) ; MediaConstraints audioConstraints = PnSignalingParams . defaultAudioConstraints ( ) ; List < PeerConnection . IceServer > iceServers = PnSignalingParams . defaultIceServers ( ) ; return new PnSignalingParams ( iceServers , pcConstraints , videoConstraints , audioConstraints ) ; }


Input: Append default servers to the end of given list and set as iceServers instance variable [CODESPLIT] public void addIceServers ( List < PeerConnection . IceServer > iceServers ) { if ( this . iceServers != null ) { iceServers . addAll ( this . iceServers ) ; } this . iceServers = iceServers ; }


Input: Instantiate iceServers if they are not already and add Ice Server to beginning of list . [CODESPLIT] public void addIceServers ( PeerConnection . IceServer iceServers ) { if ( this . iceServers == null ) { this . iceServers = new ArrayList < PeerConnection . IceServer > ( ) ; } this . iceServers . add ( 0 , iceServers ) ; }


Input: TODO : Add a max user threshold . Connect with another user by their ID . [CODESPLIT] boolean connect ( String userId ) { if ( ! peers . containsKey ( userId ) ) { // Prevents duplicate dials. if ( peers . size ( ) < MAX_CONNECTIONS ) { PnPeer peer = addPeer ( userId ) ; peer . pc . addStream ( this . localMediaStream ) ; try { actionMap . get ( CreateOfferAction . TRIGGER ) . execute ( userId , new JSONObject ( ) ) ; } catch ( JSONException e ) { e . printStackTrace ( ) ; return false ; } return true ; } } this . mRtcListener . onDebug ( new PnRTCMessage ( "CONNECT FAILED. Duplicate dial or max peer " + "connections exceeded. Max: " + MAX_CONNECTIONS + " Current: " + this . peers . size ( ) ) ) ; return false ; }


Input: Close connection ( hangup ) no a certain peer . [CODESPLIT] public void closeConnection ( String id ) { JSONObject packet = new JSONObject ( ) ; try { if ( ! this . peers . containsKey ( id ) ) return ; PnPeer peer = this . peers . get ( id ) ; peer . hangup ( ) ; packet . put ( PnRTCMessage . JSON_HANGUP , true ) ; transmitMessage ( id , packet ) ; mRtcListener . onPeerConnectionClosed ( peer ) ; } catch ( JSONException e ) { e . printStackTrace ( ) ; } }


Input: Close connections ( hangup ) on all open connections . [CODESPLIT] public void closeAllConnections ( ) { Iterator < String > peerIds = this . peers . keySet ( ) . iterator ( ) ; while ( peerIds . hasNext ( ) ) { closeConnection ( peerIds . next ( ) ) ; } }


Input: Send SDP Offers / Answers nd ICE candidates to peers . [CODESPLIT] void transmitMessage ( String toID , JSONObject packet ) { if ( this . id == null ) { // Not logged in. Put an error in the debug cb. mRtcListener . onDebug ( new PnRTCMessage ( "Cannot transmit before calling Client.connect" ) ) ; } try { JSONObject message = new JSONObject ( ) ; message . put ( PnRTCMessage . JSON_PACKET , packet ) ; message . put ( PnRTCMessage . JSON_ID , "" ) ; //Todo: session id, unused in js SDK? message . put ( PnRTCMessage . JSON_NUMBER , this . id ) ; this . mPubNub . publish ( toID , message , new Callback ( ) { // Todo: reconsider callback. @ Override public void successCallback ( String channel , Object message , String timetoken ) { mRtcListener . onDebug ( new PnRTCMessage ( ( JSONObject ) message ) ) ; } @ Override public void errorCallback ( String channel , PubnubError error ) { mRtcListener . onDebug ( new PnRTCMessage ( error . errorObject ) ) ; } } ) ; } catch ( JSONException e ) { e . printStackTrace ( ) ; } }


Input: Static method to generate the proper JSON for a user message . Use this when you don t have a { [CODESPLIT] public static JSONObject generateUserMessage ( String userId , JSONObject message ) { JSONObject json = new JSONObject ( ) ; try { JSONObject packet = new JSONObject ( ) ; packet . put ( PnRTCMessage . JSON_USERMSG , message ) ; json . put ( PnRTCMessage . JSON_PACKET , packet ) ; json . put ( PnRTCMessage . JSON_ID , "" ) ; //Todo: session id, unused in js SDK? json . put ( PnRTCMessage . JSON_NUMBER , userId ) ; } catch ( JSONException e ) { e . printStackTrace ( ) ; } return json ; }


Input: Send a custom JSONObject user message to a single peer . [CODESPLIT] public void transmit ( String userId , JSONObject message ) { JSONObject usrMsgJson = new JSONObject ( ) ; try { usrMsgJson . put ( PnRTCMessage . JSON_USERMSG , message ) ; this . pcClient . transmitMessage ( userId , usrMsgJson ) ; } catch ( JSONException e ) { e . printStackTrace ( ) ; } }


Input: Send a custom JSONObject user message to all peers . [CODESPLIT] public void transmitAll ( JSONObject message ) { List < PnPeer > peerList = this . pcClient . getPeers ( ) ; for ( PnPeer p : peerList ) { transmit ( p . getId ( ) , message ) ; } }


Input: Gets the value of the weitereAdresse property . [CODESPLIT] @ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:50:55+02:00" , comments = "JAXB RI v2.2.11" ) public List < WeitereAdresse > getWeitereAdresse ( ) { if ( weitereAdresse == null ) { weitereAdresse = new ArrayList < WeitereAdresse > ( ) ; } return this . weitereAdresse ; }


Input: Gets the value of the userDefinedSimplefield property . [CODESPLIT] @ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:50:55+02:00" , comments = "JAXB RI v2.2.11" ) public List < UserDefinedSimplefield > getUserDefinedSimplefield ( ) { if ( userDefinedSimplefield == null ) { userDefinedSimplefield = new ArrayList < UserDefinedSimplefield > ( ) ; } return this . userDefinedSimplefield ; }


Input: Gets the value of the userDefinedAnyfield property . [CODESPLIT] @ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:50:55+02:00" , comments = "JAXB RI v2.2.11" ) public List < UserDefinedAnyfield > getUserDefinedAnyfield ( ) { if ( userDefinedAnyfield == null ) { userDefinedAnyfield = new ArrayList < UserDefinedAnyfield > ( ) ; } return this . userDefinedAnyfield ; }


Input: Sets the value of the apiSuchfelder property . [CODESPLIT] @ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public void setApiSuchfelder ( JAXBElement < ApiSuchfelderTyp > value ) { this . apiSuchfelder = value ; }


Input: Gets the value of the multimediaAnhang property . [CODESPLIT] @ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public List < MultimediaAnhangTyp > getMultimediaAnhang ( ) { if ( multimediaAnhang == null ) { multimediaAnhang = new ArrayList < MultimediaAnhangTyp > ( ) ; } return this . multimediaAnhang ; }


Input: Gets the value of the statusVBM property . [CODESPLIT] @ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public StatusTyp getStatusVBM ( ) { if ( statusVBM == null ) { return StatusTyp . AKTIV ; } else { return statusVBM ; } }


Input: Gets the value of the statusIS24 property . [CODESPLIT] @ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public StatusTyp getStatusIS24 ( ) { if ( statusIS24 == null ) { return StatusTyp . AKTIV ; } else { return statusIS24 ; } }


Input: Gets the value of the statusHP property . [CODESPLIT] @ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public StatusTyp getStatusHP ( ) { if ( statusHP == null ) { return StatusTyp . AKTIV ; } else { return statusHP ; } }


Input: Gets the value of the importmodus property . [CODESPLIT] @ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public AktionsTyp getImportmodus ( ) { if ( importmodus == null ) { return AktionsTyp . IMPORTIEREN ; } else { return importmodus ; } }


Input: Gets the value of the adressdruck property . [CODESPLIT] @ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public Boolean getAdressdruck ( ) { if ( adressdruck == null ) { return false ; } else { return adressdruck ; } }


Input: Gets the value of the waehrung property . [CODESPLIT] @ Generated ( value = "com.sun.tools.xjc.Driver" , date = "2018-10-12T02:52:47+02:00" , comments = "JAXB RI v2.2.11" ) public WaehrungTyp getWaehrung ( ) { if ( waehrung == null ) { return WaehrungTyp . EUR ; } else { return waehrung ; } }


Input: Start the example application . [CODESPLIT] @ SuppressWarnings ( "Duplicates" ) public static void main ( String [ ] args ) { // init logging PropertyConfigurator . configure ( TrovitWritingExample . class . getResource ( PACKAGE + "/log4j.properties" ) ) ; // create a Trovit object with some example data // this object corresponds to the <trovit> element in XML Trovit trovit = FACTORY . createTrovit ( ) ; // append some example ads to the transfer trovit . getAd ( ) . add ( createAd ( ) ) ; trovit . getAd ( ) . add ( createAd ( ) ) ; trovit . getAd ( ) . add ( createAd ( ) ) ; // convert the Trovit object into a XML document TrovitDocument doc = null ; try { doc = TrovitDocument . newDocument ( trovit ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't create XML document!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; System . exit ( 1 ) ; } // write XML document into a java.io.File try { write ( doc , File . createTempFile ( "output-" , ".xml" ) ) ; } catch ( IOException ex ) { LOGGER . error ( "Can't create temporary file!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; System . exit ( 1 ) ; } // write XML document into a java.io.OutputStream write ( doc , new NullOutputStream ( ) ) ; // write XML document into a java.io.Writer write ( doc , new NullWriter ( ) ) ; // write XML document into a string and send it to the console writeToConsole ( doc ) ; }


Input: Create an { @link AdType } with some example data . [CODESPLIT] @ SuppressWarnings ( "CatchMayIgnoreException" ) protected static AdType createAd ( ) { // create an example real estate AdType ad = FACTORY . createAdType ( ) ; ad . setAddress ( "object address" ) ; ad . setAgency ( "name of the agency" ) ; ad . setBathrooms ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 0 , 5 ) ) ) ; ad . setByOwner ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; ad . setCity ( "name of the city" ) ; ad . setCityArea ( "name of the district" ) ; ad . setCondition ( "some notes about the condition" ) ; ad . setContactEmail ( "test@mywebsite.org" ) ; ad . setContactName ( "John Smith" ) ; ad . setContactTelephone ( "0049301234567" ) ; ad . setContent ( "some more descriptions" ) ; ad . setCountry ( "DE" ) ; ad . setDate ( Calendar . getInstance ( ) ) ; ad . setEcoScore ( "A" ) ; ad . setExpirationDate ( Calendar . getInstance ( ) ) ; ad . setFloorNumber ( "number of floors" ) ; ad . setForeclosure ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; ad . setForeclosureType ( ForeclosureTypeValue . values ( ) [ RandomUtils . nextInt ( 0 , ForeclosureTypeValue . values ( ) . length ) ] ) ; ad . setId ( RandomStringUtils . random ( 5 ) ) ; ad . setIsFurnished ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; ad . setIsNew ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; ad . setIsRentToOwn ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; ad . setLatitude ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 0 , 180 ) - 90 ) ) ; ad . setLongitude ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 0 , 360 ) - 180 ) ) ; ad . setMlsDatabase ( "notes about mls database" ) ; ad . setNeighborhood ( "notes about the neighborhood" ) ; ad . setOrientation ( OrientationValue . values ( ) [ RandomUtils . nextInt ( 0 , OrientationValue . values ( ) . length ) ] ) ; ad . setParking ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; ad . setPostcode ( "postcode" ) ; ad . setPropertyType ( "notes about the property type" ) ; ad . setRegion ( "notes about the region" ) ; ad . setRooms ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 1 , 10 ) ) ) ; ad . setTitle ( "title of the object" ) ; ad . setType ( TypeValue . values ( ) [ RandomUtils . nextInt ( 0 , TypeValue . values ( ) . length ) ] ) ; ad . setYear ( BigInteger . valueOf ( RandomUtils . nextInt ( 1700 , 2017 ) ) ) ; ad . setFloorArea ( FACTORY . createFloorAreaType ( ) ) ; ad . getFloorArea ( ) . setUnit ( AreaUnitValue . values ( ) [ RandomUtils . nextInt ( 0 , AreaUnitValue . values ( ) . length ) ] ) ; ad . getFloorArea ( ) . setValue ( BigInteger . valueOf ( RandomUtils . nextInt ( 10 , 10000 ) ) ) ; ad . setPictures ( FACTORY . createAdTypePictures ( ) ) ; ad . getPictures ( ) . getPicture ( ) . add ( createPicture ( 0 ) ) ; ad . getPictures ( ) . getPicture ( ) . add ( createPicture ( 1 ) ) ; ad . getPictures ( ) . getPicture ( ) . add ( createPicture ( 2 ) ) ; ad . setPlotArea ( FACTORY . createPlotAreaType ( ) ) ; ad . getPlotArea ( ) . setUnit ( AreaUnitValue . values ( ) [ RandomUtils . nextInt ( 0 , AreaUnitValue . values ( ) . length ) ] ) ; ad . getPlotArea ( ) . setValue ( BigInteger . valueOf ( RandomUtils . nextInt ( 10 , 10000 ) ) ) ; ad . setPrice ( FACTORY . createPriceType ( ) ) ; ad . getPrice ( ) . setPeriod ( PricePeriodValue . values ( ) [ RandomUtils . nextInt ( 0 , PricePeriodValue . values ( ) . length ) ] ) ; ad . getPrice ( ) . setValue ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 100 , 2000 ) ) . setScale ( 2 , RoundingMode . HALF_EVEN ) ) ; try { ad . setUrl ( new URI ( "http://mywebsite.org/" ) ) ; ad . setMobileUrl ( new URI ( "http://mobile.mywebsite.org/" ) ) ; ad . setVirtualTour ( new URI ( "http://tour.mywebsite.org/" ) ) ; } catch ( URISyntaxException ex ) { } return ad ; }


Input: Create a { @link PictureType } with some example data . [CODESPLIT] protected static PictureType createPicture ( int pos ) { try { PictureType pic = FACTORY . createPictureType ( ) ; pic . setPictureTitle ( "some descriptive title" ) ; pic . setPictureUrl ( new URI ( "http://mywebsite.org/image" + pos + ".jpg" ) ) ; pic . setFeatured ( pos == 0 ) ; return pic ; } catch ( URISyntaxException ex ) { return null ; } }


Input: Start the example application . [CODESPLIT] @ SuppressWarnings ( "Duplicates" ) public static void main ( String [ ] args ) { // init logging PropertyConfigurator . configure ( KyeroWritingExample . class . getResource ( PACKAGE + "/log4j.properties" ) ) ; // create a Root object with some example data // this object corresponds to the <root> element in XML Root root = FACTORY . createRoot ( ) ; root . setKyero ( createKyero ( ) ) ; root . setAgent ( createAgent ( ) ) ; root . getProperty ( ) . add ( createProperty ( ) ) ; root . getProperty ( ) . add ( createProperty ( ) ) ; root . getProperty ( ) . add ( createProperty ( ) ) ; // convert the Root object into a XML document KyeroDocument doc = null ; try { doc = KyeroDocument . newDocument ( root ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't create XML document!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; System . exit ( 1 ) ; } // write XML document into a java.io.File try { write ( doc , File . createTempFile ( "output-" , ".xml" ) ) ; } catch ( IOException ex ) { LOGGER . error ( "Can't create temporary file!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; System . exit ( 1 ) ; } // write XML document into a java.io.OutputStream write ( doc , new NullOutputStream ( ) ) ; // write XML document into a java.io.Writer write ( doc , new NullWriter ( ) ) ; // write XML document into a string and send it to the console writeToConsole ( doc ) ; // downgrade XML document to an earlier version // and write it to the console doc . downgrade ( KyeroVersion . V2_1 ) ; writeToConsole ( doc ) ; }


Input: Create an { @link Agent } object with some example data . [CODESPLIT] protected static Agent createAgent ( ) { Agent agent = FACTORY . createRootAgent ( ) ; agent . setAddr1 ( "first address line" ) ; agent . setAddr2 ( "second address line" ) ; agent . setCountry ( "Germany" ) ; agent . setEmail ( "test@test.org" ) ; agent . setFax ( "030/123456" ) ; agent . setId ( BigInteger . valueOf ( RandomUtils . nextLong ( 1 , 10000 ) ) ) ; agent . setMob ( "030/123457" ) ; agent . setName ( "name of the company" ) ; agent . setPostcode ( "12345" ) ; agent . setRegion ( "Berlin" ) ; agent . setTel ( "030/123458" ) ; agent . setTown ( "Berlin" ) ; return agent ; }


Input: Create a { @link KyeroType } object with some example data . [CODESPLIT] protected static KyeroType createKyero ( ) { KyeroType kyero = FACTORY . createKyeroType ( ) ; kyero . setFeedGenerated ( Calendar . getInstance ( ) ) ; kyero . setFeedVersion ( KyeroUtils . VERSION . toXmlVersion ( ) ) ; return kyero ; }


Input: Create a { @link PropertyType } object with some example data . [CODESPLIT] @ SuppressWarnings ( "CatchMayIgnoreException" ) protected static PropertyType createProperty ( ) { final String id = RandomStringUtils . random ( 5 ) ; int imageCount = 0 ; // create an example real estate PropertyType obj = FACTORY . createPropertyType ( ) ; obj . setBaths ( BigInteger . valueOf ( RandomUtils . nextLong ( 0 , 5 ) ) ) ; obj . setBeds ( BigInteger . valueOf ( RandomUtils . nextLong ( 0 , 5 ) ) ) ; obj . setCountry ( "Germany" ) ; obj . setCurrency ( CurrencyType . EUR ) ; obj . setDate ( Calendar . getInstance ( ) ) ; obj . setId ( id ) ; obj . setLeasehold ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setLocationDetail ( "some details about the location" ) ; obj . setNewBuild ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setNotes ( "some notes about the property" ) ; obj . setPartOwnership ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setPool ( RandomUtils . nextInt ( 0 , 2 ) == 1 ) ; obj . setPrice ( RandomUtils . nextLong ( 10000 , 9999999 ) ) ; obj . setPriceFreq ( PriceFreqType . SALE ) ; obj . setProvince ( "Berlin" ) ; obj . setRef ( RandomStringUtils . random ( 5 ) ) ; obj . setTown ( "Berlin" ) ; obj . setType ( "house" ) ; obj . setDesc ( FACTORY . createLangType ( ) ) ; obj . getDesc ( ) . setCa ( "Catalan property description" ) ; obj . getDesc ( ) . setDa ( "Danish property description" ) ; obj . getDesc ( ) . setDe ( "German property description" ) ; obj . getDesc ( ) . setEn ( "English property description" ) ; obj . getDesc ( ) . setEs ( "Spanish property description" ) ; obj . getDesc ( ) . setFi ( "Finnish property description" ) ; obj . getDesc ( ) . setFr ( "French property description" ) ; obj . getDesc ( ) . setIt ( "Italian property description" ) ; obj . getDesc ( ) . setNl ( "Dutch property description" ) ; obj . getDesc ( ) . setNo ( "Norwegian property description" ) ; obj . getDesc ( ) . setPt ( "Portuguese property description" ) ; obj . getDesc ( ) . setRu ( "Russian property description" ) ; obj . getDesc ( ) . setSv ( "Swedish property description" ) ; obj . setEnergyRating ( FACTORY . createEnergyRatingType ( ) ) ; obj . getEnergyRating ( ) . setConsumption ( EnergyRatingMarkType . C ) ; obj . getEnergyRating ( ) . setEmissions ( EnergyRatingMarkType . E ) ; obj . setFeatures ( FACTORY . createFeaturesType ( ) ) ; obj . getFeatures ( ) . getFeature ( ) . add ( "name of a feature" ) ; obj . getFeatures ( ) . getFeature ( ) . add ( "name of another feature" ) ; obj . setImages ( FACTORY . createImagesType ( ) ) ; obj . getImages ( ) . getImage ( ) . add ( createPropertyImage ( id , ++ imageCount ) ) ; obj . getImages ( ) . getImage ( ) . add ( createPropertyImage ( id , ++ imageCount ) ) ; obj . getImages ( ) . getImage ( ) . add ( createPropertyImage ( id , ++ imageCount ) ) ; obj . setLocation ( FACTORY . createGpsLocationType ( ) ) ; obj . getLocation ( ) . setLatitude ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 0 , 90 ) ) ) ; obj . getLocation ( ) . setLongitude ( BigDecimal . valueOf ( RandomUtils . nextDouble ( 0 , 90 ) ) ) ; obj . setSurfaceArea ( FACTORY . createSurfaceType ( ) ) ; obj . getSurfaceArea ( ) . setBuilt ( BigInteger . valueOf ( RandomUtils . nextLong ( 50 , 250 ) ) ) ; obj . getSurfaceArea ( ) . setPlot ( BigInteger . valueOf ( RandomUtils . nextLong ( 100 , 1500 ) ) ) ; obj . setUrl ( FACTORY . createUrlType ( ) ) ; try { obj . getUrl ( ) . setCa ( new URI ( "http://catalan.website.com/property/" + id + ".htm" ) ) ; obj . getUrl ( ) . setDa ( new URI ( "http://danish.website.com/property/" + id + ".htm" ) ) ; obj . getUrl ( ) . setDe ( new URI ( "http://german.website.com/property/" + id + ".htm" ) ) ; obj . getUrl ( ) . setEn ( new URI ( "http://english.website.com/property/" + id + ".htm" ) ) ; obj . getUrl ( ) . setEs ( new URI ( "http://spanish.website.com/property/" + id + ".htm" ) ) ; obj . getUrl ( ) . setFi ( new URI ( "http://finnish.website.com/property/" + id + ".htm" ) ) ; obj . getUrl ( ) . setFr ( new URI ( "http://french.website.com/property/" + id + ".htm" ) ) ; obj . getUrl ( ) . setIt ( new URI ( "http://italian.website.com/property/" + id + ".htm" ) ) ; obj . getUrl ( ) . setNl ( new URI ( "http://dutch.website.com/property/" + id + ".htm" ) ) ; obj . getUrl ( ) . setNo ( new URI ( "http://norwegian.website.com/property/" + id + ".htm" ) ) ; obj . getUrl ( ) . setPt ( new URI ( "http://portuguese.website.com/property/" + id + ".htm" ) ) ; obj . getUrl ( ) . setRu ( new URI ( "http://russian.website.com/property/" + id + ".htm" ) ) ; obj . getUrl ( ) . setSv ( new URI ( "http://swedish.website.com/property/" + id + ".htm" ) ) ; } catch ( URISyntaxException ex ) { } return obj ; }


Input: Create an { @link Image } object with some example data . [CODESPLIT] @ SuppressWarnings ( "CatchMayIgnoreException" ) protected static Image createPropertyImage ( String id , int pos ) { // create an example image Image img = FACTORY . createImagesTypeImage ( ) ; img . setId ( pos ) ; try { img . setUrl ( new URI ( "http://website.com/property/" + id + "/image_" + pos + ".jpg" ) ) ; } catch ( URISyntaxException ex ) { } return img ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link String } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "openimmo_anid" ) public JAXBElement < String > createOpenimmoAnid ( String value ) { return new JAXBElement < String > ( _OpenimmoAnid_QNAME , String . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link String } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "lizenzkennung" ) public JAXBElement < String > createLizenzkennung ( String value ) { return new JAXBElement < String > ( _Lizenzkennung_QNAME , String . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link String } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "bundesland" ) public JAXBElement < String > createBundesland ( String value ) { return new JAXBElement < String > ( _Bundesland_QNAME , String . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link String } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "gemeindecode" ) public JAXBElement < String > createGemeindecode ( String value ) { return new JAXBElement < String > ( _Gemeindecode_QNAME , String . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link String } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "flur" ) public JAXBElement < String > createFlur ( String value ) { return new JAXBElement < String > ( _Flur_QNAME , String . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigInteger } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "anzahl_etagen" ) @ XmlJavaTypeAdapter ( Adapter5 . class ) public JAXBElement < BigInteger > createAnzahlEtagen ( BigInteger value ) { return new JAXBElement < BigInteger > ( _AnzahlEtagen_QNAME , BigInteger . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link String } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "regionaler_zusatz" ) public JAXBElement < String > createRegionalerZusatz ( String value ) { return new JAXBElement < String > ( _RegionalerZusatz_QNAME , String . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link Boolean } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "karten_makro" ) public JAXBElement < Boolean > createKartenMakro ( Boolean value ) { return new JAXBElement < Boolean > ( _KartenMakro_QNAME , Boolean . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link Boolean } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "karten_mikro" ) public JAXBElement < Boolean > createKartenMikro ( Boolean value ) { return new JAXBElement < Boolean > ( _KartenMikro_QNAME , Boolean . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link Boolean } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "virtuelletour" ) public JAXBElement < Boolean > createVirtuelletour ( Boolean value ) { return new JAXBElement < Boolean > ( _Virtuelletour_QNAME , Boolean . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link Boolean } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "luftbildern" ) public JAXBElement < Boolean > createLuftbildern ( Boolean value ) { return new JAXBElement < Boolean > ( _Luftbildern_QNAME , Boolean . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link String } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "referenz_id" ) public JAXBElement < String > createReferenzId ( String value ) { return new JAXBElement < String > ( _ReferenzId_QNAME , String . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link String } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "titel" ) public JAXBElement < String > createTitel ( String value ) { return new JAXBElement < String > ( _Titel_QNAME , String . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link String } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "position" ) public JAXBElement < String > createPosition ( String value ) { return new JAXBElement < String > ( _Position_QNAME , String . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link String } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "zusatzfeld" ) public JAXBElement < String > createZusatzfeld ( String value ) { return new JAXBElement < String > ( _Zusatzfeld_QNAME , String . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link String } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "postf_ort" ) public JAXBElement < String > createPostfOrt ( String value ) { return new JAXBElement < String > ( _PostfOrt_QNAME , String . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link String } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "email_direkt" ) public JAXBElement < String > createEmailDirekt ( String value ) { return new JAXBElement < String > ( _EmailDirekt_QNAME , String . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link String } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "email_feedback" ) public JAXBElement < String > createEmailFeedback ( String value ) { return new JAXBElement < String > ( _EmailFeedback_QNAME , String . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link String } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "tel_handy" ) public JAXBElement < String > createTelHandy ( String value ) { return new JAXBElement < String > ( _TelHandy_QNAME , String . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link String } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "tel_fax" ) public JAXBElement < String > createTelFax ( String value ) { return new JAXBElement < String > ( _TelFax_QNAME , String . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link String } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "url" ) public JAXBElement < String > createUrl ( String value ) { return new JAXBElement < String > ( _Url_QNAME , String . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link String } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "immobilientreuhaenderid" ) public JAXBElement < String > createImmobilientreuhaenderid ( String value ) { return new JAXBElement < String > ( _Immobilientreuhaenderid_QNAME , String . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "pauschalmiete" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createPauschalmiete ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _Pauschalmiete_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "flaechevon" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createFlaechevon ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _Flaechevon_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "flaechebis" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createFlaechebis ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _Flaechebis_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "gesamtmietebrutto" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createGesamtmietebrutto ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _Gesamtmietebrutto_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "gesamtbelastungbrutto" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createGesamtbelastungbrutto ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _Gesamtbelastungbrutto_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "kaufpreisbrutto" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createKaufpreisbrutto ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _Kaufpreisbrutto_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "monatlichekostenbrutto" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createMonatlichekostenbrutto ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _Monatlichekostenbrutto_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "provisionbrutto" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createProvisionbrutto ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _Provisionbrutto_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "richtpreisprom2" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createRichtpreisprom2 ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _Richtpreisprom2_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "nettokaltmiete" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createNettokaltmiete ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _Nettokaltmiete_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "kaltmiete" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createKaltmiete ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _Kaltmiete_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "nebenkosten" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createNebenkosten ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _Nebenkosten_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "warmmiete" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createWarmmiete ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _Warmmiete_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link Boolean } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "heizkosten_enthalten" ) public JAXBElement < Boolean > createHeizkostenEnthalten ( Boolean value ) { return new JAXBElement < Boolean > ( _HeizkostenEnthalten_QNAME , Boolean . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "pacht" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createPacht ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _Pacht_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "erbpacht" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createErbpacht ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _Erbpacht_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "hausgeld" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createHausgeld ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _Hausgeld_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "abstand" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createAbstand ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _Abstand_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link Calendar } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "preis_zeitraum_von" ) @ XmlJavaTypeAdapter ( Adapter4 . class ) public JAXBElement < Calendar > createPreisZeitraumVon ( Calendar value ) { return new JAXBElement < Calendar > ( _PreisZeitraumVon_QNAME , Calendar . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "richtpreis" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createRichtpreis ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _Richtpreis_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link Stellplatz } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "stp_freiplatz" ) public JAXBElement < Stellplatz > createStpFreiplatz ( Stellplatz value ) { return new JAXBElement < Stellplatz > ( _StpFreiplatz_QNAME , Stellplatz . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link Stellplatz } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "stp_tiefgarage" ) public JAXBElement < Stellplatz > createStpTiefgarage ( Stellplatz value ) { return new JAXBElement < Stellplatz > ( _StpTiefgarage_QNAME , Stellplatz . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link Stellplatz } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "stp_garage" ) public JAXBElement < Stellplatz > createStpGarage ( Stellplatz value ) { return new JAXBElement < Stellplatz > ( _StpGarage_QNAME , Stellplatz . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link Stellplatz } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "stp_carport" ) public JAXBElement < Stellplatz > createStpCarport ( Stellplatz value ) { return new JAXBElement < Stellplatz > ( _StpCarport_QNAME , Stellplatz . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link Stellplatz } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "stp_duplex" ) public JAXBElement < Stellplatz > createStpDuplex ( Stellplatz value ) { return new JAXBElement < Stellplatz > ( _StpDuplex_QNAME , Stellplatz . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link Boolean } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "provisionspflichtig" ) public JAXBElement < Boolean > createProvisionspflichtig ( Boolean value ) { return new JAXBElement < Boolean > ( _Provisionspflichtig_QNAME , Boolean . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link String } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "courtage_hinweis" ) public JAXBElement < String > createCourtageHinweis ( String value ) { return new JAXBElement < String > ( _CourtageHinweis_QNAME , String . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "mwst_satz" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createMwstSatz ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _MwstSatz_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "mwst_gesamt" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createMwstGesamt ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _MwstGesamt_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "nettorendite_ist" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createNettorenditeIst ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _NettorenditeIst_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "nettorendite_soll" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createNettorenditeSoll ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _NettorenditeSoll_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "erschliessungskosten" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createErschliessungskosten ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _Erschliessungskosten_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link String } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "kaution_text" ) public JAXBElement < String > createKautionText ( String value ) { return new JAXBElement < String > ( _KautionText_QNAME , String . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "lagerflaeche" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createLagerflaeche ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _Lagerflaeche_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "verkaufsflaeche" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createVerkaufsflaeche ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _Verkaufsflaeche_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "gastroflaeche" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createGastroflaeche ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _Gastroflaeche_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link String } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "grz" ) public JAXBElement < String > createGrz ( String value ) { return new JAXBElement < String > ( _Grz_QNAME , String . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "anzahl_badezimmer" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createAnzahlBadezimmer ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _AnzahlBadezimmer_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "anzahl_sep_wc" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createAnzahlSepWc ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _AnzahlSepWc_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "anzahl_balkone" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createAnzahlBalkone ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _AnzahlBalkone_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "anzahl_terrassen" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createAnzahlTerrassen ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _AnzahlTerrassen_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "anzahl_logia" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createAnzahlLogia ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _AnzahlLogia_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "kellerflaeche" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createKellerflaeche ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _Kellerflaeche_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "fensterfront_qm" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createFensterfrontQm ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _FensterfrontQm_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "grundstuecksfront" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createGrundstuecksfront ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _Grundstuecksfront_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "dachbodenflaeche" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createDachbodenflaeche ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _Dachbodenflaeche_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigInteger } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "anzahl_stellplaetze" ) @ XmlJavaTypeAdapter ( Adapter6 . class ) public JAXBElement < BigInteger > createAnzahlStellplaetze ( BigInteger value ) { return new JAXBElement < BigInteger > ( _AnzahlStellplaetze_QNAME , BigInteger . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "plaetze_gastraum" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createPlaetzeGastraum ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _PlaetzeGastraum_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "anzahl_betten" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createAnzahlBetten ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _AnzahlBetten_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "anzahl_tagungsraeume" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createAnzahlTagungsraeume ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _AnzahlTagungsraeume_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "vermietbare_flaeche" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createVermietbareFlaeche ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _VermietbareFlaeche_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "anzahl_wohneinheiten" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createAnzahlWohneinheiten ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _AnzahlWohneinheiten_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "kubatur" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createKubatur ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _Kubatur_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "ausnuetzungsziffer" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createAusnuetzungsziffer ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _Ausnuetzungsziffer_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link Calendar } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "beginn_angebotsphase" ) @ XmlJavaTypeAdapter ( Adapter4 . class ) public JAXBElement < Calendar > createBeginnAngebotsphase ( Calendar value ) { return new JAXBElement < Calendar > ( _BeginnAngebotsphase_QNAME , Calendar . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link Calendar } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "besichtigungstermin" ) @ XmlJavaTypeAdapter ( Adapter4 . class ) public JAXBElement < Calendar > createBesichtigungstermin ( Calendar value ) { return new JAXBElement < Calendar > ( _Besichtigungstermin_QNAME , Calendar . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link Calendar } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "besichtigungstermin_2" ) @ XmlJavaTypeAdapter ( Adapter4 . class ) public JAXBElement < Calendar > createBesichtigungstermin2 ( Calendar value ) { return new JAXBElement < Calendar > ( _Besichtigungstermin2_QNAME , Calendar . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link Calendar } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "beginn_bietzeit" ) @ XmlJavaTypeAdapter ( Adapter3 . class ) public JAXBElement < Calendar > createBeginnBietzeit ( Calendar value ) { return new JAXBElement < Calendar > ( _BeginnBietzeit_QNAME , Calendar . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link Calendar } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "ende_bietzeit" ) @ XmlJavaTypeAdapter ( Adapter4 . class ) public JAXBElement < Calendar > createEndeBietzeit ( Calendar value ) { return new JAXBElement < Calendar > ( _EndeBietzeit_QNAME , Calendar . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link Boolean } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "hoechstgebot_zeigen" ) public JAXBElement < Boolean > createHoechstgebotZeigen ( Boolean value ) { return new JAXBElement < Boolean > ( _HoechstgebotZeigen_QNAME , Boolean . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "mindestpreis" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createMindestpreis ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _Mindestpreis_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link Boolean } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "zwangsversteigerung" ) public JAXBElement < Boolean > createZwangsversteigerung ( Boolean value ) { return new JAXBElement < Boolean > ( _Zwangsversteigerung_QNAME , Boolean . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link String } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "aktenzeichen" ) public JAXBElement < String > createAktenzeichen ( String value ) { return new JAXBElement < String > ( _Aktenzeichen_QNAME , String . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link Calendar } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "zvtermin" ) @ XmlJavaTypeAdapter ( Adapter3 . class ) public JAXBElement < Calendar > createZvtermin ( Calendar value ) { return new JAXBElement < Calendar > ( _Zvtermin_QNAME , Calendar . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link Calendar } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "zusatztermin" ) @ XmlJavaTypeAdapter ( Adapter3 . class ) public JAXBElement < Calendar > createZusatztermin ( Calendar value ) { return new JAXBElement < Calendar > ( _Zusatztermin_QNAME , Calendar . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link String } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "amtsgericht" ) public JAXBElement < String > createAmtsgericht ( String value ) { return new JAXBElement < String > ( _Amtsgericht_QNAME , String . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link BigDecimal } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "verkehrswert" ) @ XmlJavaTypeAdapter ( Adapter2 . class ) public JAXBElement < BigDecimal > createVerkehrswert ( BigDecimal value ) { return new JAXBElement < BigDecimal > ( _Verkehrswert_QNAME , BigDecimal . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link AusstattKategorie } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "ausstatt_kategorie" ) public JAXBElement < AusstattKategorie > createAusstattKategorie ( AusstattKategorie value ) { return new JAXBElement < AusstattKategorie > ( _AusstattKategorie_QNAME , AusstattKategorie . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link Boolean } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "raeume_veraenderbar" ) public JAXBElement < Boolean > createRaeumeVeraenderbar ( Boolean value ) { return new JAXBElement < Boolean > ( _RaeumeVeraenderbar_QNAME , Boolean . class , null , value ) ; }


Input: Create an instance of { @link JAXBElement } { @code < } { @link Boolean } { @code > }} [CODESPLIT] @ XmlElementDecl ( namespace = "" , name = "kamin" ) public JAXBElement < Boolean > createKamin ( Boolean value ) { return new JAXBElement < Boolean > ( _Kamin_QNAME , Boolean . class , null , value ) ; }