de.smartics.resteasy.hypermedia.relations
Class Relations

Package class diagram package Relations
java.lang.Object
  extended by de.smartics.resteasy.hypermedia.relations.Relations

public final class Relations
     
     
extends Object

Defines constants for relations used in this application.


Field Summary
static String HOME
          Relation to home, not allowed as "home" in HTML 5.
static String IANA_HOME
          The relation home for IANA.
static String MICROFORMATS_HOME
          The relation home for Microformats.
static String SELF
          Relation to self, not allowed as "self" in HTML 5.
static String UP
          Relation to up, not allowed as "up" in HTML 5.
 
Method Summary
static String createIanaRelation(String name)
          The name of the relation to create in the context of IANA.
static String createMicroformatsRelation(String name)
          The name of the relation to create in the context of Microformats.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IANA_HOME

public static final String IANA_HOME
The relation home for IANA.

The value of this constant is "http://www.iana.org/assignments/relation".

Constant Field Value:
"http://www.iana.org/assignments/relation"

MICROFORMATS_HOME

public static final String MICROFORMATS_HOME
The relation home for Microformats.

The value of this constant is "http://microformats.org/wiki/rel-".

Constant Field Value:
"http://microformats.org/wiki/rel-"

SELF

public static final String SELF
Relation to self, not allowed as "self" in HTML 5.

Constant Field Value:
"http://www.iana.org/assignments/relation/self"

UP

public static final String UP
Relation to up, not allowed as "up" in HTML 5.

Constant Field Value:
"http://www.iana.org/assignments/relation/up"

HOME

public static final String HOME
Relation to home, not allowed as "home" in HTML 5.

Constant Field Value:
"http://microformats.org/wiki/rel-home"
Method Detail

createIanaRelation

public static String createIanaRelation(String name)
The name of the relation to create in the context of IANA.

Parameters:
name - the name without leading slash.
Returns:
the relation prefixed with IANA_HOME.

createMicroformatsRelation

public static String createMicroformatsRelation(String name)
The name of the relation to create in the context of Microformats.

Parameters:
name - the name.
Returns:
the relation prefixed with MICROFORMATS_HOME.


Copyright © 2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.