Available methods for OCL base types

Summary of available OCLS methods

     
  • general methods
    • isDTDPresent
    • version
    • encoding
    • standalone
    • noNamespaceSchemaLocation
    • schemaLocation
    • namespace
    • xmlElementBlockSize
    • xmlDataSize
    • toString
    • oclIsKindOf
    • hasValue
    • oclIsUndefined
    • oclIsTypeOf
    • allInstances
    • oclAsType
    • ->size
  • base64binary
    • toSHA1
    • decodeBase64
    • size
  • date and datetime
    • allowedDaysInFuture
    • allowedDaysInPast
    • <>
    • =
    • after
    • before
    • size
    • plusDays
    • minusDays
    • plusMonths
    • minusMonths
    • plusHours
    • minusHours
    • plusYears
    • minusYears
    • plusMinutes
    • minusMinutes
    • plusSeconds
    • minusSeconds
  • double / decimal
    • <>, =, >=, <=, <, >
    • *, /, -, +, % (or mod)
    • round
    • floor
    • min
    • max
    • abs
  • integer
    • =, <>, >=, <=, <, >
    • *, /, -, +, % (or mod)
    • max
    • min
    • div
    • abs
  • string
    • =
    • <>
    • encodeBase64
    • trim
    • split
    • startsWith
    • contains
    • matches
    • lastIndexOf
    • isOnlyChars
    • isNumeric
    • indexOf
    • isValidDate
    • isValidCreditorIdentifierEPC
    • isValidReference('FI')
    • isValidIBAN
    • isValidRF
    • isValidCurrencyCode
    • isValidCountryCode
    • equalsIgnoreCase
    • endsWith
    • compareToIgnoreCase
    • compareTo
    • charAt
    • toDate
    • toReal
    • toInteger
    • toUpper
    • toLower
    • size
    • concat
    • substring
  • boolean
    • <>, =
    • Logical operators: and, or, xor, not
    • implies
  • Collections
    • Creation of a collection: asBag, asSet, asOrderedSet, asSequence
    • excludes
    • includes
    • exists
    • forAll
    • sum
    • count
    • select
    • at