gov.nih.nlm.umls.meta
Class ContentView

java.lang.Object
  extended bygov.nih.nlm.umls.meta.ContentView

public class ContentView
extends Object

Defines the content view for a ConceptElement. The various methods indicate whether or not this object belongs to the specified content view.

Author:
Brian Carlsen, Deborah Shapiro

Constructor Summary
ContentView()
          Instantiates an empty ContentView.
ContentView(long value)
          Instantiates a ContentView from the specified long value.
ContentView(String value)
          Instantiates a ContentView from the specified String value.
 
Method Summary
 long getValue()
          Returns the value of the content view flag.
 boolean keep(ContentView cv)
          Indicates whether or not to keep the parent element by determining if this ContentView matches the one passed in.
 void setValue(long val)
          Sets the value of the content view flag.
 void setValue(String val)
          Sets the value of the content view flag.
 String toString()
          Returns String representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContentView

public ContentView()
Instantiates an empty ContentView.


ContentView

public ContentView(String value)
Instantiates a ContentView from the specified String value.

Parameters:
value - String

ContentView

public ContentView(long value)
Instantiates a ContentView from the specified long value.

Parameters:
value - long
Method Detail

getValue

public long getValue()
Returns the value of the content view flag.

Returns:
the long value

setValue

public void setValue(String val)
Sets the value of the content view flag. Each "bit" of the value indicates membership in a particular view.

Parameters:
val - the value of the content view flag

setValue

public void setValue(long val)
Sets the value of the content view flag. Each "bit" of the value indicates membership in a particular view.

Parameters:
val - the value of the content view flag as a long

keep

public boolean keep(ContentView cv)
Indicates whether or not to keep the parent element by determining if this ContentView matches the one passed in.

Parameters:
cv - represents the set of views to keep
Returns:
true to keep, false otherwise

toString

public String toString()
Returns String representation.

Returns:
String representation


Copyright ©2005