dk.brics.xmlgraph
Class NodeKind

java.lang.Object
  extended by dk.brics.xmlgraph.NodeKind

public class NodeKind
extends Object

Node kind.


Method Summary
 int getInDegree()
          Returns in-degree.
 boolean hasTopLevelAttributes()
          Returns top-level attribute status.
 boolean hasTopLevelContents()
          Returns top-level contents status.
 boolean hasTopLevelInterleaveContent()
          Returns top-level interleave content status.
static NodeKind makeEmptyKind()
          Constructs a new empty node kind.
static NodeKind makeTopLevelAttributesKind()
          Constructs a new node kind with top-level attributes set.
static NodeKind makeTopLevelContentsKind()
          Constructs a new node kind with top-level contents set.
 boolean merge(NodeKind k)
          Merges the given node kind into this one.
 void setInDegree(int in_degree)
          Sets the in-degree.
 void setTopLevelInterleaveContent()
          Sets top-level interleave content for this node kind.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInDegree

public int getInDegree()
Returns in-degree.

Returns:
in-degree

hasTopLevelAttributes

public boolean hasTopLevelAttributes()
Returns top-level attribute status.

Returns:
status

hasTopLevelContents

public boolean hasTopLevelContents()
Returns top-level contents status.

Returns:
status

hasTopLevelInterleaveContent

public boolean hasTopLevelInterleaveContent()
Returns top-level interleave content status.

Returns:
status

makeEmptyKind

public static NodeKind makeEmptyKind()
Constructs a new empty node kind.

Returns:
new node kind object

makeTopLevelAttributesKind

public static NodeKind makeTopLevelAttributesKind()
Constructs a new node kind with top-level attributes set.

Returns:
new node kind object

makeTopLevelContentsKind

public static NodeKind makeTopLevelContentsKind()
Constructs a new node kind with top-level contents set.

Returns:
new node kind object

merge

public boolean merge(NodeKind k)
Merges the given node kind into this one.

Parameters:
k - node kind
Returns:
true if this node kind has changed by the merge

setInDegree

public void setInDegree(int in_degree)
Sets the in-degree.

Parameters:
in_degree - in-degree

setTopLevelInterleaveContent

public void setTopLevelInterleaveContent()
Sets top-level interleave content for this node kind.


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005-2010 Anders Møller.