1 11 package org.eclipse.jface.internal.databinding.provisional.description; 12 13 30 public class Property { 31 32 private final Object object; 33 34 private final Object propertyID; 35 36 private final Class propertyType; 37 38 private final Boolean isCollectionProperty; 39 40 47 public Property(Object object, Object propertyID) { 48 this(object, propertyID, null, null); 49 } 50 51 67 public Property(Object object, Object propertyID, 68 Class propertyType, Boolean isCollectionProperty) { 69 this.object = object; 70 this.propertyID = propertyID; 71 this.propertyType = propertyType; 72 this.isCollectionProperty = isCollectionProperty; 73 } 74 75 80 public Object getObject() { 81 return object; 82 } 83 84 89 public Object getPropertyID() { 90 return propertyID; 91 } 92 93 99 public Class getPropertyType() { 100 return propertyType; 101 } 102 103 112 public Boolean isCollectionProperty() { 113 return isCollectionProperty; 114 } 115 116 119 public String toString() { 120 return "Property(" + object.getClass().getName() + ", " + propertyID.toString() + ", ...)"; } 122 } 123 | Popular Tags |