~ubuntu-branches/ubuntu/quantal/simple-xml/quantal

« back to all changes in this revision

Viewing changes to src/org/simpleframework/xml/strategy/Name.java

  • Committer: Bazaar Package Importer
  • Author(s): Sylvestre Ledru, Fabian Köster
  • Date: 2010-03-05 19:44:34 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100305194434-d9mwhyioc9npo9it
Tags: 2.3.2-1
* Standards-Version updated to version 3.8.4

[ Fabian Köster ]
* New upstream release
* Correct license information in debian/pom.xml
* Exclude generated Javadoc from orig-tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Attributes.java January 2010
 
3
 *
 
4
 * Copyright (C) 2010, Niall Gallagher <niallg@users.sf.net>
 
5
 *
 
6
 * Licensed under the Apache License, Version 2.0 (the "License");
 
7
 * you may not use this file except in compliance with the License.
 
8
 * You may obtain a copy of the License at
 
9
 *
 
10
 *     http://www.apache.org/licenses/LICENSE-2.0
 
11
 *
 
12
 * Unless required by applicable law or agreed to in writing, software
 
13
 * distributed under the License is distributed on an "AS IS" BASIS,
 
14
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
 
15
 * implied. See the License for the specific language governing 
 
16
 * permissions and limitations under the License.
 
17
 */
 
18
 
 
19
package org.simpleframework.xml.strategy;
 
20
 
 
21
/**
 
22
 * This contains the default attribute names to use to populate the
 
23
 * XML elements with data relating to the object to be serialized. 
 
24
 * Various details, such as the class name of an object need to be
 
25
 * written to the element in order for it to be deserialized. Such
 
26
 * attribute names are shared between strategy implementations.
 
27
 * 
 
28
 * @author Niall Gallagher
 
29
 */
 
30
interface Name {
 
31
   
 
32
   /**
 
33
    * The default name of the attribute used to identify an object.
 
34
    */
 
35
   public static final String MARK = "id";
 
36
   
 
37
   /**
 
38
    * The default name of the attribute used for circular references.
 
39
    */
 
40
   public static final String REFER = "reference";
 
41
   
 
42
   /**
 
43
    * The default name of the attribute used to specify the length.
 
44
    */
 
45
   public static final String LENGTH = "length";
 
46
   
 
47
   /**
 
48
    * The default name of the attribute used to specify the class.
 
49
    */
 
50
   public static final String LABEL = "class"; 
 
51
}