@Transient public String getNameWithType() { StringBuffer builder = new StringBuffer(); builder.append(getInstanceDisplayName()); builder.append(" : "); builder.append(getTypeDisplayName()); // Do not add (+) decoration here return builder.toString(); }
@Override @Transient // IMPORTANT: Override the base getLabel() method to include the type of the object in addition to the label; // sometimes the label is not very informative, and the user is really searching by type! // This is how it works in the extraction tool as well! public String getLabel() { StringBuffer builder = new StringBuffer(); builder.append(getInstanceDisplayName()); builder.append(" : "); builder.append(getTypeDisplayName()); return builder.toString(); }
@Transient /** * Do not save this using Simple.XML as well. Or maybe do so?! * @param set */ public void setTraceability2(Set<ResourceLineKey> set) { this.traces = set; }
@Transient @JsonIgnore public BaseTraceability getLast() { int size = traceabilityEntries.size(); if (size > 0) { TraceabilityEntry traceabilityEntry = traceabilityEntries.get(size - 1); return traceabilityEntry.getSecond(); } return null; }
@Transient /* * Getter to display readable string in UI, just the typename. * Since the srcObject contains an OObjectKey C<D1...Dn> */ public String getDisplaySrcObject() { return getTypeFromKey(srcObject); }
@Transient /* * Getter to display readable string in UI, just the typename * Since the dstObject contains an OObjectKey C<D1...Dn> * */ public String getDisplayDstObject() { return getTypeFromKey(dstObject); }
@Transient public static Type getUnknownType() { if ( unknownType == null ) { unknownType = new UnknownType("Unknown"); } return unknownType; }
/** * This reflectively checks the annotation to determine the type * of annotation it represents. If it represents an XML schema * annotation it is used to create a <code>Contact</code> which * can be used to represent the field within the source object. * * @param field the field that the annotation comes from * @param label the annotation used to model the XML schema * @param list this is the list of annotations on the field */ private void scan(Field field, Annotation label, Annotation[] list) { if(label instanceof Attribute) { process(field, label, list); } if(label instanceof ElementUnion) { process(field, label, list); } if(label instanceof ElementListUnion) { process(field, label, list); } if(label instanceof ElementMapUnion) { process(field, label, list); } if(label instanceof ElementList) { process(field, label, list); } if(label instanceof ElementArray) { process(field, label, list); } if(label instanceof ElementMap) { process(field, label, list); } if(label instanceof Element) { process(field, label, list); } if(label instanceof Version) { process(field, label, list); } if(label instanceof Text) { process(field, label, list); } if(label instanceof Transient) { remove(field, label); } }
/** * This reflectively checks the annotation to determine the type * of annotation it represents. If it represents an XML schema * annotation it is used to create a <code>Contact</code> which * can be used to represent the method within the source object. * * @param method the method that the annotation comes from * @param label the annotation used to model the XML schema * @param list this is the list of annotations on the method */ private void scan(Method method, Annotation label, Annotation[] list) throws Exception { if(label instanceof Attribute) { process(method, label, list); } if(label instanceof ElementUnion) { process(method, label, list); } if(label instanceof ElementListUnion) { process(method, label, list); } if(label instanceof ElementMapUnion) { process(method, label, list); } if(label instanceof ElementList) { process(method, label, list); } if(label instanceof ElementArray) { process(method, label, list); } if(label instanceof ElementMap) { process(method, label, list); } if(label instanceof Element) { process(method, label, list); } if(label instanceof Version) { process(method, label, list); } if(label instanceof Text) { process(method, label, list); } if(label instanceof Transient) { remove(method, label, list); } }
@Transient public boolean isSelectable() { return true; }
/** @deprecated Stop using this... bad idea. rep. exposure. * * @return */ @Deprecated @Transient public Set<TraceabilityList> getSetOfLists() { return setOfLists; }
/** * @deprecated Stop using this. bad idea. rep. exposure * @return */ @Transient @JsonIgnore public List<TraceabilityEntry> getRawList() { return traceabilityEntries; }
@Transient // Delegate method. public String getFullyQualifiedName(){ return type == null ? "" : type.getFullyQualifiedName(); }
@Override @Transient public ExpressionType getExpressionType() { return ExpressionType.ArrayCreation; }
@Transient // NOTE: Keep this Transient so it does not get persisted. Type information is persisted elsewhere. public Set<Type> getSubClasses() { return subClasses; }
@Transient // NOTE: Keep this Transient so it does not get persisted. Type information is persisted elsewhere. public Set<Type> getImplementedInterfaces() { return implementedInterfaces; }
@Transient // NOTE: Keep this Transient so it does not get persisted. Type information is persisted elsewhere. public Type getSuperClass() { return superClass; }
@Transient public void setSuperClass(Type superClass) { this.superClass = superClass; }
@Override @Transient public ExpressionType getExpressionType() { return ExpressionType.NewExpression; }
@Override @Transient public ExpressionType getExpressionType() { return ExpressionType.FieldWrite; }
@Override @Transient public ExpressionType getExpressionType() { return ExpressionType.ArrayWrite; }
@Override @Transient public ExpressionType getExpressionType() { return ExpressionType.LoadLiteral; }
@Override @Transient public ExpressionType getExpressionType() { return ExpressionType.FieldRead; }
@Transient public abstract ExpressionType getExpressionType();
@Override @Transient public ExpressionType getExpressionType() { return ExpressionType.MethodInvocation; }
@Override @Transient public ExpressionType getExpressionType() { return ExpressionType.ArrayRead; }
@Transient public String getWithParams(int foo) { return "foo"; }
@Transient public String getSecret() { return secret; }
@Transient public void setSecret(String secret) { this.secret = secret; }
/** * Simple traceability information that does not use MiniAST * XXX. Why not move to super class? Don't we need tracability from edges too? * * XXX. Why not cache this info? * * Do not save this using Simple.XML as well. Or maybe do so?! */ @Transient public Set<ResourceLineKey> getTraceability2() { return traces; }