Skip to main content
Version: Java (Groovy)

withoutAttributes

The withoutAttributes method returns a table that is identical to the source table, but with the specified attributes removed.

Syntax

table.withoutAttributes(toRemove)

Parameters

ParameterTypeDescription
toRemove>Collection<String>

The names of the attributes to remove.

Returns

A table with the specified attributes removed.

Examples

The following example removes the AddOnly attribute from a table.

source = timeTable("PT00:00:01")

println source.getAttributes()
println source.getAttributeKeys()

result = source.withoutAttributes(["AddOnly"])

println result.getAttributes()