![JAR search and dependency download from the Maven repository](/logo.png)
org.linguafranca.pwdb.kdbx.jaxb.binding.StringField Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of KeePassJava2-jaxb Show documentation
Show all versions of KeePassJava2-jaxb Show documentation
Contains a JAXB implementation for KDBX.
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2023.05.17 at 11:23:19 AM BST
//
package org.linguafranca.pwdb.kdbx.jaxb.binding;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.linguafranca.pwdb.kdbx.jaxb.base.ValueBinding;
/**
* This is where the values of the database are actually stored. You can have String valued
* fields, and you can have Binary valued fields. There are "Default" String fields (username and so on) and
* there are custom string fields (custom only in that their names are not the names of default string
* fields). Not really clear whether the keys are case-sensitive.
*
*
* Java class for stringField complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="stringField">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Key" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="Value">
* <complexType>
* <simpleContent>
* <extension base="<>ValueExtender">
* <attribute name="Protected" type="{}keepassBoolean" default="False" />
* <attribute name="ProtectInMemory" type="{}keepassBoolean" default="False" />
* </extension>
* </simpleContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "stringField", propOrder = {
"key",
"value"
})
public class StringField {
@XmlElement(name = "Key", required = true)
protected String key;
@XmlElement(name = "Value", required = true)
protected StringField.Value value;
/**
* Gets the value of the key property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getKey() {
return key;
}
/**
* Sets the value of the key property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setKey(String value) {
this.key = value;
}
/**
* Gets the value of the value property.
*
* @return
* possible object is
* {@link StringField.Value }
*
*/
public StringField.Value getValue() {
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is
* {@link StringField.Value }
*
*/
public void setValue(StringField.Value value) {
this.value = value;
}
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <simpleContent>
* <extension base="<>ValueExtender">
* <attribute name="Protected" type="{}keepassBoolean" default="False" />
* <attribute name="ProtectInMemory" type="{}keepassBoolean" default="False" />
* </extension>
* </simpleContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public static class Value
extends ValueBinding
{
@XmlAttribute(name = "Protected")
@XmlJavaTypeAdapter(Adapter2 .class)
protected Boolean _protected;
@XmlAttribute(name = "ProtectInMemory")
@XmlJavaTypeAdapter(Adapter2 .class)
protected Boolean protectInMemory;
/**
* Gets the value of the protected property.
*
* @return
* possible object is
* {@link String }
*
*/
public Boolean getProtected() {
if (_protected == null) {
return new Adapter2().unmarshal("False");
} else {
return _protected;
}
}
/**
* Sets the value of the protected property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProtected(Boolean value) {
this._protected = value;
}
/**
* Gets the value of the protectInMemory property.
*
* @return
* possible object is
* {@link String }
*
*/
public Boolean getProtectInMemory() {
if (protectInMemory == null) {
return new Adapter2().unmarshal("False");
} else {
return protectInMemory;
}
}
/**
* Sets the value of the protectInMemory property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProtectInMemory(Boolean value) {
this.protectInMemory = value;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy