Esri Geoportal Server
1.0

com.esri.gpt.server.assertion.index
Class Assertion

java.lang.Object
  extended by com.esri.gpt.server.assertion.index.Assertion

public class Assertion
extends Object

An assertion that can be indexed as a Lucene document.


Constructor Summary
Assertion()
          Default constructor
 
Method Summary
 void echo(StringBuffer sb, int depth)
          Appends property information for the component to a buffer.
 AsnRdfPart getRdfPart()
          Gets the part representing RDF fields associated with a assertion.
 AsnSystemPart getSystemPart()
          Gets the part representing system fields associated with a assertion.
 AsnUserPart getUserPart()
          Gets the part representing user fields associated with a assertion.
 boolean getWasReadFromIndex()
          Gets the flag indicating whether or not this is an existing assertion read from an index.
 void load(Document document)
          Loads the assertion from based upon a previously indexed Lucene document.
 Document makeWritableDocument(AsnContext context)
          Makes a document suitable for writing to a Lucene index.
 void setRdfPart(AsnRdfPart rdfPart)
          Sets the part representing RDF fields associated with a assertion.
 void setSystemPart(AsnSystemPart systemPart)
          Sets the part representing system fields associated with a assertion.
 void setUserPart(AsnUserPart userPart)
          Sets the part representing user fields associated with a assertion.
 void setWasReadFromIndex(boolean wasRead)
          Sets the flag indicating whether or not this is an existing assertion read from an index.
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Assertion

public Assertion()
Default constructor

Method Detail

getRdfPart

public AsnRdfPart getRdfPart()
Gets the part representing RDF fields associated with a assertion.

Returns:
the RDF part

setRdfPart

public void setRdfPart(AsnRdfPart rdfPart)
Sets the part representing RDF fields associated with a assertion.

Parameters:
rdfPart - the RDF part

getSystemPart

public AsnSystemPart getSystemPart()
Gets the part representing system fields associated with a assertion.

Returns:
the system part

setSystemPart

public void setSystemPart(AsnSystemPart systemPart)
Sets the part representing system fields associated with a assertion.

Parameters:
systemPart - the system part

getUserPart

public AsnUserPart getUserPart()
Gets the part representing user fields associated with a assertion.

Returns:
the user part

setUserPart

public void setUserPart(AsnUserPart userPart)
Sets the part representing user fields associated with a assertion.

Parameters:
userPart - the user part

getWasReadFromIndex

public boolean getWasReadFromIndex()
Gets the flag indicating whether or not this is an existing assertion read from an index.

Returns:
true if existing and read from an index

setWasReadFromIndex

public void setWasReadFromIndex(boolean wasRead)
Sets the flag indicating whether or not this is an existing assertion read from an index.

Parameters:
wasRead - true if existing and read from an index

echo

public void echo(StringBuffer sb,
                 int depth)
Appends property information for the component to a buffer.

Parameters:
sb - the buffer to use when appending information
depth - the depth of the parent

load

public void load(Document document)
Loads the assertion from based upon a previously indexed Lucene document.

Parameters:
document - the previously indexed Lucene document

makeWritableDocument

public Document makeWritableDocument(AsnContext context)
Makes a document suitable for writing to a Lucene index.

Parameters:
context - the assertion operation context
Returns:
the indexable document

toString

public String toString()
Returns a string representation of the object.

Overrides:
toString in class Object
Returns:
the string

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.