Advertisement
Guest User

DistanceDescriptor.dsld

a guest
May 29th, 2013
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. package dslds
  2.  
  3.  
  4. contribute ( fileExtension("groovy") & (currentType(subType("distances.Distance")) | currentType(subType("java.lang.Number")))) {
  5. [ "m", "yd", "mi", "km", "cm" ].each { val ->
  6. property name:val, type:"Distance", doc: "The unit is " + val
  7. }
  8. property name: "thisIsAProperty", type: "java.lang.String", doc: "Even if you don't believe it, this is a property"
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement