com.sage.orion.sdata
Enum Category

java.lang.Object
  extended by java.lang.Enum<Category>
      extended by com.sage.orion.sdata.Category
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Category>

public enum Category
extends java.lang.Enum<Category>

The categories in SData. This defines the sort of things for example in an Atom feed or entry. The categories are defined by the SData specification, and especially by the categories.xml file


Enum Constant Summary
application
           
collection
           
contract
           
dataset
           
group
           
operation
           
provider
           
queries
           
query
           
request
           
resource
           
response
           
schema
           
service
           
 
Field Summary
static java.lang.String LABEL_ATTRIBUTE_TAG
          The name of the xml attribute used for the label of a category
static java.lang.String SCHEME_ATTRIBUTE_TAG
          The name of the xml attribute used for the scheme of a category
static java.lang.String SCHEME_ATTRIBUTE_VALUE
          The value of the xml attribute used for the scheme of a category
static java.lang.String TERM_ATTRIBUTE_TAG
          The name of the xml attribute used for the term of a category.
 
Method Summary
 org.w3c.dom.Element toElement(org.w3c.dom.Document doc)
          gets the item as a DOM Element
static Category valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Category[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

application

public static final Category application

collection

public static final Category collection

contract

public static final Category contract

dataset

public static final Category dataset

group

public static final Category group

provider

public static final Category provider

resource

public static final Category resource

operation

public static final Category operation

request

public static final Category request

response

public static final Category response

schema

public static final Category schema

service

public static final Category service

queries

public static final Category queries

query

public static final Category query
Field Detail

LABEL_ATTRIBUTE_TAG

public static final java.lang.String LABEL_ATTRIBUTE_TAG
The name of the xml attribute used for the label of a category

See Also:
Constant Field Values

SCHEME_ATTRIBUTE_TAG

public static final java.lang.String SCHEME_ATTRIBUTE_TAG
The name of the xml attribute used for the scheme of a category

See Also:
Constant Field Values

SCHEME_ATTRIBUTE_VALUE

public static final java.lang.String SCHEME_ATTRIBUTE_VALUE
The value of the xml attribute used for the scheme of a category

See Also:
Constant Field Values

TERM_ATTRIBUTE_TAG

public static final java.lang.String TERM_ATTRIBUTE_TAG
The name of the xml attribute used for the term of a category. the term is the well-known form of the category and is controlled by the scheme.

See Also:
Constant Field Values
Method Detail

values

public static Category[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Category c : Category.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Category valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

toElement

public final org.w3c.dom.Element toElement(org.w3c.dom.Document doc)
gets the item as a DOM Element

Parameters:
doc - the document in which to place the element


Copyright © 2011 Sage Software, Inc. All rights reserved.