de.bsd.x2svg
Enum ContentModel

java.lang.Object
  extended by java.lang.Enum<ContentModel>
      extended by de.bsd.x2svg.ContentModel
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ContentModel>

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

The content model of an elements children

Since:
1.0
Author:
hwr@pilhuhn.de

Enum Constant Summary
CHOICE
          A choice of elements
INHERITANCE
          Displayed children inherit from the parent on the left side
MIXED
          We can have mixed content (elements and text)
NONE
           
SEQUENCE
          A sequence of elements
SUBSTITUTION
          The children are substituted by the stuff on the right
 
Method Summary
static ContentModel valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ContentModel[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final ContentModel NONE

MIXED

public static final ContentModel MIXED
We can have mixed content (elements and text)


SEQUENCE

public static final ContentModel SEQUENCE
A sequence of elements


CHOICE

public static final ContentModel CHOICE
A choice of elements


INHERITANCE

public static final ContentModel INHERITANCE
Displayed children inherit from the parent on the left side


SUBSTITUTION

public static final ContentModel SUBSTITUTION
The children are substituted by the stuff on the right

Method Detail

values

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

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

valueOf

public static ContentModel 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


x2svg version 1.2.1