1 4 package com.tc.object.appevent; 5 6 import com.tc.util.NonPortableReason; 7 8 public class NonPortableFieldSetContext extends NonPortableEventContext { 9 10 private static final long serialVersionUID = -556002400100752261L; 11 12 private final String fieldName; 13 private final boolean isRoot; 14 15 public NonPortableFieldSetContext(String targetClassName, String threadName, 16 String clientId, String fieldName, boolean isRoot) { 17 super(targetClassName, threadName, clientId); 18 this.fieldName = fieldName; 19 this.isRoot = isRoot; 20 } 21 22 public String getFieldName() { 23 return fieldName; 24 } 25 26 public boolean isRoot() { 27 return isRoot; 28 } 29 30 public void addDetailsTo(NonPortableReason reason) { 31 super.addDetailsTo(reason); 32 if (isRoot()) { 33 reason.addDetail("Non-portable root name", fieldName); 34 } else { 35 reason.addDetail("Non-portable field name", fieldName); 36 } 37 } 38 39 } 40 | Popular Tags |