Tabnine Logo
Text.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.simpleframework.xml.Text
constructor

Best Java code snippets using org.simpleframework.xml.Text.<init> (Showing top 20 results out of 315)

origin: holodeck-b2b/Holodeck-B2B

/**
 * Represents an element in the P-Mode XML document with type <code>KeyReferenceMethods</code>. Converts the strings
 * used in the XML document to equivalent value of {@link X509ReferenceType} enumeration.
 *
 * @author Sander Fieten (sander at holodeck-b2b.org)
 */
class KeyReferenceMethod {

  private static final String ISSUER_SERIAL = "IssuerSerial";
  private static final String BST_REFERENCE = "BSTReference";
  private static final String SKI = "KeyIdentifier";

  @Text
  String  referenceMethod = null;

  X509ReferenceType   getRefMethod() {
    if (BST_REFERENCE.equals(referenceMethod))
      return X509ReferenceType.BSTReference;
    else if (SKI.equals(referenceMethod))
      return X509ReferenceType.KeyIdentifier;
    else
      return X509ReferenceType.IssuerAndSerial;
  }

}

origin: holodeck-b2b/Holodeck-B2B

/**
 *  Represents the password element with type attribute
 */
static class Password {
  @Text(required = true)
  private String value;
  @Attribute(required = false)
  private String type = "Digest";
}
origin: holodeck-b2b/Holodeck-B2B

/**
 * Represents a <code>KeystoreAlias</code> element in the P-Mode XML document that contains a reference to a certificate
 * in one of the keystores. The reference consists of at least the alias that is used to identify the certificate in the
 * keystore and optionally a password to access the private key from the certificate.
 *
 * @author Sander Fieten (sander at holodeck-b2b.org)
 */
class KeystoreAlias {

  @Text
  String  name = null;

  @Attribute(required = false)
  String  password = null;
}

origin: holodeck-b2b/Holodeck-B2B

/**
 * Represents the configuration for the <b>PMode.id</b> parameter.
 *
 * @author Sander Fieten (sander at holodeck-b2b.org)
 * @author Bram Bakx (bram at holodeck-b2b.org)
 */
class PModeId {

  /**
   * Identifies the PMode uniquely
   */
  @Text
  String  id;

  /**
   * Specifies if the PMode ID should be included in the actual message
   */
  @Attribute(required = false)
  Boolean include = false;

}

origin: com.carrotsearch.randomizedtesting/junit4-ant

public class FailureModel {
 @Attribute
 public String message;

 @Attribute
 public String type;

 @Text
 public String text;
}

origin: ngallagher/simpleframework

@Root
private static class Header {
 @Attribute
 private String name;
 @Text
 private String value;
 
 private String getName(){
   return name;
 }
 
 public void append(StringBuilder builder){
   builder.append(name).append(": ").append(value).append("\r\n");
 }
}
origin: randomizedtesting/randomizedtesting

public class FailureModel {
 @Attribute
 public String message;

 @Attribute
 public String type;

 @Text
 public String text;
}

origin: holodeck-b2b/Holodeck-B2B

@Text
private String      name;
origin: ngallagher/simpleframework

  @Root
  private static class Expect{
   @Attribute
   private String name;
   @Text
   private String value;
   
   public void check(Map<String, String> response) {
     String text = response.get(name);
          if(value == null) {
      throw new IllegalStateException("Response does not contain header '"+name+"'");
     }
     if(!value.equals(text)) {
      throw new IllegalStateException("Response header value '"+text+"' does not match expectation '"+value+"'");  
     }
   }
  }
}
origin: holodeck-b2b/Holodeck-B2B

@Text
private String  id;
origin: dnmilne/wikipediaminer

public static class Namespace {
  
  @Attribute
  private int key ;
  
  @Attribute(name="case") 
  private String caseRule ;
  
  @Text(required=false)
  private String name ;
  
  
  public int getKey() {
    return key;
  }
  
  public String getCaseRule() {
    return caseRule;
  }
  
  public String getName() {
    if (name == null)
      return "" ;
    else
      return name;
  }
  
}

origin: holodeck-b2b/Holodeck-B2B

@Text
private String  value;
origin: holodeck-b2b/Holodeck-B2B

@Text
private String  text;
origin: holodeck-b2b/Holodeck-B2B

@Text(required = false)
private String      name;
origin: holodeck-b2b/Holodeck-B2B

public class PartyId implements IPartyId {
  @Text
  private String  id;
origin: wmixvideo/nfe

private static final long serialVersionUID = 3028041532565616921L;
@Text
private String value;
origin: wmixvideo/nfe

private static final long serialVersionUID = -6656266954109936292L;
@Text
private String value;
origin: eroispaziali/ForceFlow

private String message;
@Text
private String value;
origin: crazyhitty/Rss-Manager

private String contentType;
@Text(required = false)
private String link;
origin: jorabin/KeePassJava2

  @Root(name="Value")
  public static class Value {
    public Value(){
      this("");
    }
    public Value(String text) {
      this.text = text;
      this._protected = false;
    }
    public Value(String text, Boolean _protected) {
      this._protected = _protected;
      this.text = text;
    }
    @Attribute(name = "ProtectInMemory", required = false)
    @Convert(KeePassBooleanConverter.class)
    // NB converters don't work on attributes -see KdbxOutputTransformer
    protected Boolean protectInMemory;
    @Attribute(name = "Protected", required = false)
    @Convert(KeePassBooleanConverter.class)
    // NB converters don't work on attributes -see KdbxOutputTransformer
    Boolean _protected;
    @Text
    String text;
    public void setProtected(boolean aProtected) {
      this._protected = aProtected;
    }
  }
}
org.simpleframework.xmlText<init>

Popular methods of Text

  • data
  • empty
  • required

Popular in Java

  • Running tasks concurrently on multiple threads
  • runOnUiThread (Activity)
  • onRequestPermissionsResult (Fragment)
  • onCreateOptionsMenu (Activity)
  • String (java.lang)
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • JFileChooser (javax.swing)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now