Annual report pursuant to Section 13 and 15(d)

Fair Value Measurements (Details)

v2.4.1.9
Fair Value Measurements (Details) (USD $)
In Millions, except Share data, unless otherwise specified
12 Months Ended
Dec. 31, 2012
Dec. 31, 2014
Dec. 31, 2013
Dec. 31, 2011
KEYW Holding Corporation        
Warrants        
Number of warrants owned (in shares)   50,000us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights
/ us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis
= ofc_KeywHoldingCorporationMember
50,000us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights
/ us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis
= ofc_KeywHoldingCorporationMember
 
Exercise price of warrants (in dollars per share)   9.25ofc_ClassOfWarrantsExercisePriceOfWarrants
/ us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis
= ofc_KeywHoldingCorporationMember
9.25ofc_ClassOfWarrantsExercisePriceOfWarrants
/ us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis
= ofc_KeywHoldingCorporationMember
 
Number of shares owned in investee (in shares)       1,900,000us-gaap_InvestmentOwnedBalanceShares
/ us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis
= ofc_KeywHoldingCorporationMember
Percentage of common stock owned       7.00%ofc_TradingSecurityOwnershipPercentage
/ us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis
= ofc_KeywHoldingCorporationMember
Amount of sale of owned shares $ 14.0ofc_TradingSecurityInvestmentSaleValueofShares
/ us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis
= ofc_KeywHoldingCorporationMember
     
Revenue earned from investee $ 2.4us-gaap_RelatedPartyTransactionOtherRevenuesFromTransactionsWithRelatedParty
/ us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis
= ofc_KeywHoldingCorporationMember
     
Redeemable non-controlling interest | Fair value measurement on a recurring basis | Significant Unobservable Inputs (Level 3)        
Warrants        
Discount rate   15.50%us-gaap_FairValueInputsDiscountRate
/ us-gaap_BalanceSheetLocationAxis
= ofc_RedeemableNonControllingInterestMember
/ us-gaap_FairValueByFairValueHierarchyLevelAxis
= us-gaap_FairValueInputsLevel3Member
/ us-gaap_FairValueByMeasurementFrequencyAxis
= us-gaap_FairValueMeasurementsRecurringMember
15.50%us-gaap_FairValueInputsDiscountRate
/ us-gaap_BalanceSheetLocationAxis
= ofc_RedeemableNonControllingInterestMember
/ us-gaap_FairValueByFairValueHierarchyLevelAxis
= us-gaap_FairValueInputsLevel3Member
/ us-gaap_FairValueByMeasurementFrequencyAxis
= us-gaap_FairValueMeasurementsRecurringMember