All Downloads are FREE. Search and download functionalities are using the official Maven repository.

.preferences.preferences-xml.1.2.2.source-code.Preferences.xsd Maven / Gradle / Ivy

Go to download

An implementation of the Java Preferences API (java.util.prefs) to store preferences in an XML file, in a subdirectory of a Java program's working directory.

There is a newer version: 2.0.0
Show newest version








	
	
		
			
				
			
		
	

	
	
		
			
				
				
	/**
	 * Default constructor. 
	 */
	public XMLRoot() {
	}

	/**
	 * Constructor, set the name of this node.
	 * 
	 * @param name
	 */
	public XMLRoot(String name) {

		super(name);
	}
				
			
		
		
			
				
			
		
	

	
	
		
			
		
	
	
		
			
				
				
	/**
	 * Default constructor. 
	 */
	public XMLNode() {
	}

	/**
	 * Constructor, set the name of this node.
	 * 
	 * @param name
	 */
	public XMLNode(String name) {

		this.name = name;
	}

	/**
	 * Compares preferences nodes.  Nodes are equal if they share the same
	 * 'package' name.
	 * 
	 * @return <tt>true</tt> if both objects share the same package name,
	 * 		   <tt>false</tt> otherwise.
	 */
	@Override
	public boolean equals(Object o) {

		return o instanceof XMLNode && ((XMLNode)o).name.equals(name);
	}
				
			
		
		
			
			
		
		
	

	
	
		
			
		
	
	
		
			
				
				
	/**
	 * Default constructor.
	 */
	public XMLEntry() {
	}

	/**
	 * Constructor, set the key and value of the entry.
	 * 
	 * @param key
	 * @param value
	 */
	public XMLEntry(String key, String value) {

		this.key = key;
		this.value = value;
	}
				
			
		
		
			
		
		
	






© 2015 - 2025 Weber Informatics LLC | Privacy Policy