Java 类org.simpleframework.xml.Transient 实例源码

项目:code    文件:DisplayObject.java   
@Transient
public String getNameWithType() {
    StringBuffer builder = new StringBuffer();
    builder.append(getInstanceDisplayName());
    builder.append(" : ");
    builder.append(getTypeDisplayName());
    // Do not add (+) decoration here

    return builder.toString();
}
项目:code    文件:DisplayObject.java   
@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();
}
项目:code    文件:OObject.java   
@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;
}
项目:code    文件:TraceabilityList.java   
@Transient
@JsonIgnore
public BaseTraceability getLast() {
    int size = traceabilityEntries.size();
    if (size > 0) {
        TraceabilityEntry traceabilityEntry = traceabilityEntries.get(size - 1);
        return traceabilityEntry.getSecond();
    }
    return null;
}
项目:code    文件:DisplayObject.java   
@Transient
public String getNameWithType() {
    StringBuffer builder = new StringBuffer();
    builder.append(getInstanceDisplayName());
    builder.append(" : ");
    builder.append(getTypeDisplayName());
    // Do not add (+) decoration here

    return builder.toString();
}
项目:code    文件:DisplayObject.java   
@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();
}
项目:code    文件:Refinement.java   
@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);
}
项目:code    文件:Refinement.java   
@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);
}
项目:code    文件:Type.java   
@Transient
public static Type getUnknownType() { 
    if ( unknownType == null ) {
        unknownType = new UnknownType("Unknown");
    }
    return unknownType;
}
项目:simplexml    文件:FieldScanner.java   
/**
 * 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);
   }
}
项目:simplexml    文件:MethodScanner.java   
/**
 * 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);
   }
}
项目:simple-xml    文件:FieldScanner.java   
/**
 * 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);
   }
}
项目:simple-xml    文件:MethodScanner.java   
/**
 * 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);
   }
}
项目:code    文件:DisplayElement.java   
@Transient
public boolean isSelectable() {
    return true;
}
项目:code    文件:TraceabilityListSet.java   
/** @deprecated Stop using this... bad idea. rep. exposure.
 * 
 * @return
 */
@Deprecated
@Transient
public Set<TraceabilityList> getSetOfLists() {
    return setOfLists;
}
项目:code    文件:TraceabilityList.java   
/**
 * @deprecated Stop using this. bad idea. rep. exposure
 * @return
 */
@Transient
@JsonIgnore
public List<TraceabilityEntry> getRawList() {
    return traceabilityEntries;
   }
项目:code    文件:DisplayElement.java   
@Transient
public boolean isSelectable() {
    return true;
}
项目:code    文件:TypeDeclaration.java   
@Transient
// Delegate method.
public String getFullyQualifiedName(){
    return type == null ? "" : type.getFullyQualifiedName();
}
项目:code    文件:ArrayInit.java   
@Override
@Transient
   public ExpressionType getExpressionType() {
    return ExpressionType.ArrayCreation;
   }
项目:code    文件:Type.java   
@Transient
// NOTE: Keep this Transient so it does not get persisted. Type information is persisted elsewhere.
public Set<Type> getSubClasses() {
    return subClasses;
}
项目:code    文件:Type.java   
@Transient
// NOTE: Keep this Transient so it does not get persisted. Type information is persisted elsewhere. 
public Set<Type> getImplementedInterfaces() {
    return implementedInterfaces;
}
项目:code    文件:Type.java   
@Transient
// NOTE: Keep this Transient so it does not get persisted. Type information is persisted elsewhere. 
public Type getSuperClass() {
    return superClass;
}
项目:code    文件:Type.java   
@Transient
public void setSuperClass(Type superClass) {
    this.superClass = superClass;
}
项目:code    文件:ClassInstanceCreation.java   
@Override
@Transient
   public ExpressionType getExpressionType() {
    return ExpressionType.NewExpression;
   }
项目:code    文件:FieldWrite.java   
@Override
@Transient
   public ExpressionType getExpressionType() {
    return ExpressionType.FieldWrite;
   }
项目:code    文件:ArrayCreation.java   
@Override
@Transient
   public ExpressionType getExpressionType() {
    return ExpressionType.ArrayCreation;
   }
项目:code    文件:ArrayWrite.java   
@Override
@Transient
   public ExpressionType getExpressionType() {
    return ExpressionType.ArrayWrite;
   }
项目:code    文件:LoadLiteral.java   
@Override
@Transient
   public ExpressionType getExpressionType() {
    return ExpressionType.LoadLiteral;
   }
项目:code    文件:FieldAccess.java   
@Override
@Transient
   public ExpressionType getExpressionType() {
    return ExpressionType.FieldRead;
   }
项目:code    文件:Expression.java   
@Transient 
public abstract ExpressionType getExpressionType();
项目:code    文件:MethodInvocation.java   
@Override
@Transient
   public ExpressionType getExpressionType() {
    return ExpressionType.MethodInvocation;
   }
项目:code    文件:ArrayRead.java   
@Override
@Transient
   public ExpressionType getExpressionType() {
    return ExpressionType.ArrayRead;
   }
项目:simplexml    文件:DefaultWithParametersInGetterTest.java   
@Transient
public String getWithParams(int foo) {
   return "foo";
}
项目:simplexml    文件:DefaultAnnotationTest.java   
@Transient
public String getSecret() {
   return secret;
}
项目:simplexml    文件:DefaultAnnotationTest.java   
@Transient
public void setSecret(String secret) {
   this.secret = secret;
}
项目:simple-xml    文件:DefaultWithParametersInGetterTest.java   
@Transient
public String getWithParams(int foo) {
   return "foo";
}
项目:simple-xml    文件:DefaultAnnotationTest.java   
@Transient
public String getSecret() {
   return secret;
}
项目:simple-xml    文件:DefaultAnnotationTest.java   
@Transient
public void setSecret(String secret) {
   this.secret = secret;
}
项目:code    文件:OObject.java   
/**
 * 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;
}