idman.p3p.element
Class CategoryElement

java.lang.Object
  |
  +--idman.p3p.element.CategoryElement

public class CategoryElement
extends java.lang.Object

Represent a category or category-variable. Categories are elements inside data elements that provide hints to users and user agents as to the intended uses of the data.
"<physical/>" | ; Physical Contact Information
"<online/>" | ; Online Contact Information
"<uniqueid/>" | ; Unique Identifiers
"<purchase/>" | ; Purchase Information
"<financial/>" | ; Financial Information
"<computer/>" | ; Computer Information
"<navigation/>" | ; Navigation and Click-stream Data
"<interactive/>" | ; Interactive Data
"<demographic/>" | ; Demographic and Socioeconomic Data
"<content/>" | ; Content
"<state/>" | ; State Management Mechanisms
"<political/>" | ; Political Information
"<health/>" | ; Health Information
"<preference/>" | ; Preference Data
"<location/>" | ; Location Data
"<government/> | ; Government-issued Identifiers
"<other-category>" PCDATA "</other-category>" ; Other

Since:
09. 06. 2002
Version:
$Id: CategoryElement.java,v 1.1 2003/11/13 16:24:32 tk4 Exp $
Author:
Sven Doering

Field Summary
static java.lang.String COMPUTER
          default value as string
static java.lang.String CONTENT
          default value as string
static java.lang.String DEMOGRAPHIC
          default value as string
static java.lang.String FINANCIAL
          default value as string
static java.lang.String GOVERNMENT
          default value as string
static java.lang.String HEALTH
          default value as string
static java.lang.String INTERACTIVE
          default value as string
static java.lang.String LOCATION
          default value as string
static java.lang.String NAVIGATION
          default value as string
static java.lang.String ONLINE
          default value as string
static java.lang.String OTHER_CATEGORY
          default value as string
static java.lang.String PHYSICAL
          default value as string
static java.lang.String POLITICAL
          default value as string
static java.lang.String PREFERENCE
          default value as string
static java.lang.String PURCHASE
          default value as string
static java.lang.String STATE
          default value as string
static java.lang.String UNIQUEID
          default value as string
 
Constructor Summary
CategoryElement(java.lang.String category)
          Creates a specific Category.
 
Method Summary
 java.lang.String getCategoryName()
          Returns the name of the category.
 boolean isPredefinedCategory(java.lang.String category)
          Returns true if the argument is defined within P3P.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PHYSICAL

public static final java.lang.String PHYSICAL
default value as string

See Also:
Constant Field Values

ONLINE

public static final java.lang.String ONLINE
default value as string

See Also:
Constant Field Values

COMPUTER

public static final java.lang.String COMPUTER
default value as string

See Also:
Constant Field Values

UNIQUEID

public static final java.lang.String UNIQUEID
default value as string

See Also:
Constant Field Values

PURCHASE

public static final java.lang.String PURCHASE
default value as string

See Also:
Constant Field Values

FINANCIAL

public static final java.lang.String FINANCIAL
default value as string

See Also:
Constant Field Values

NAVIGATION

public static final java.lang.String NAVIGATION
default value as string

See Also:
Constant Field Values

INTERACTIVE

public static final java.lang.String INTERACTIVE
default value as string

See Also:
Constant Field Values

DEMOGRAPHIC

public static final java.lang.String DEMOGRAPHIC
default value as string

See Also:
Constant Field Values

CONTENT

public static final java.lang.String CONTENT
default value as string

See Also:
Constant Field Values

STATE

public static final java.lang.String STATE
default value as string

See Also:
Constant Field Values

POLITICAL

public static final java.lang.String POLITICAL
default value as string

See Also:
Constant Field Values

HEALTH

public static final java.lang.String HEALTH
default value as string

See Also:
Constant Field Values

PREFERENCE

public static final java.lang.String PREFERENCE
default value as string

See Also:
Constant Field Values

LOCATION

public static final java.lang.String LOCATION
default value as string

See Also:
Constant Field Values

GOVERNMENT

public static final java.lang.String GOVERNMENT
default value as string

See Also:
Constant Field Values

OTHER_CATEGORY

public static final java.lang.String OTHER_CATEGORY
default value as string

See Also:
Constant Field Values
Constructor Detail

CategoryElement

public CategoryElement(java.lang.String category)
Creates a specific Category.

Parameters:
category - Name of the category
Throws:
java.lang.Exception - if the category don't exist
Method Detail

getCategoryName

public java.lang.String getCategoryName()
Returns the name of the category.

Returns:
String name of category

isPredefinedCategory

public boolean isPredefinedCategory(java.lang.String category)
Returns true if the argument is defined within P3P.

Parameters:
category - to be checked.
Returns:
true if its a category defined in P3P, false otherwise.


Copyright © 2003 DRIM Team. All Rights Reserved.