Class ContentModel

public class ContentModel
{
  // Fields
  public static final byte ANY;
  public static final byte ELEMENTS;
  public static final byte EMPTY;

  // Methods
  public byte getType();
  public void save(Atom ns, XMLOutputStream o) throws IOException;
  public Element toSchema();
  public String toString();
}

This class represents the content model definition for a given XML element. The content model is defined in the element declaration in the Document Type Definition (DTD); for example, (a,(b|c)*,d). The content model is stored in an expression tree of Node objects for use by the XML parser during validation.

Methods

getType 

public byte getType();

save 

public void save(Atom ns, XMLOutputStream o) throws IOException;

toSchema 

public Element toSchema();

check whether the specified element matches current context, and if matched, change the context state

toString 

public String toString();

Retrieves a string representation of the content type.

Return Value

Returns a >String.

Fields 

ANY
ELEMENTS
EMPTY
content type