📄 statement.java
字号:
/** Return the object of the statement.
*
* <p>An exception will be thrown if the object is not a Resource.</p>
*
* @return The object of the statement interpreted as a value of the
* the specified type.
*/
public Alt getAlt() ;
/** Return the object of the statement.
*
* <p>An exception will be thrown if the object is not a Resource.</p>
*
* @return The object of the statement interpreted as a value of the
* the specified type.
*/
public Seq getSeq() ;
/** Return the language of the object of the statement.
*
* <p>An exception will be thrown if the object is not a Literal.</p>
*
* @return the language of the object of the statement
*/
public String getLanguage() ;
/** Return whether the Literal object is well formed XML as would result
* from parsing a property element with parseType="Literal".
*
* <p>An exception will be thrown if the object is not a Literal.</p>
*
* @return true if the Literal object is well formed
* @deprecated use hasWellFormedXML instead.
*/
public boolean getWellFormed() ;
/**
Answer true iff the Literal object of this statement is well-formed XML
(ie equivalent to getLiteral().isWellFormedXML()). If the object is not
a Literal, throw an exception.
*/
public boolean hasWellFormedXML();
/** change the object of the statement (S, P, X) to (S, P, o).
* @return this object to enable cascading of method calls.
* @param o The new value to be set.
*
*/
public Statement changeObject(boolean o) ;
/** change the object of the statement (S, P, X) to (S, P, o).
* <p>The statement with the old value is removed from the model and
* a new statement with the new value added and returned.</p>
* @param o The value to be set.
*
* @return the new (S, P, o) statement.
*/
public Statement changeObject(long o) ;
/** change the object of the statement (S, P, X) to (S, P, o).
* <p>The statement with the old value is removed from the model and
* a new statement with the new value added and returned.</p>
* @param o The value to be set.
*
* @return the new (S, P, o) statement.
*/
public Statement changeObject(char o) ;
/** change the object of the statement (S, P, X) to (S, P, o).
* <p>The statement with the old value is removed from the model and
* a new statement with the new value added and returned.</p>
* @param o The value to be set.
*
* @return the new (S, P, o) statement.
*/
public Statement changeObject(float o) ;
/** change the object of the statement (S, P, X) to (S, P, o).
* <p>The statement with the old value is removed from the model and
* a new statement with the new value added and returned.</p>
* @param o The value to be set.
*
* @return the new (S, P, o) statement.
*/
public Statement changeObject(double o) ;
/** change the object of the statement (S, P, X) to (S, P, o).
* <p>The statement with the old value is removed from the model and
* a new statement with the new value added and returned.</p>
* @param o The value to be set.
*
* @return the new (S, P, o) statement.
*/
public Statement changeObject(String o) ;
/** change the object of the statement (S, P, X) to (S, P, o).
* <p>The statement with the old value is removed from the model and
* a new statement with the new value added and returned.</p>
* @param o The value to be set.
* @param wellFormed true if o is well formed XML
*
* @return the new (S, P, o) statement.
*/
public Statement changeObject(String o, boolean wellFormed) ;
/** change the object of the statement (S, P, X) to (S, P, o).
* <p>The statement with the old value is removed from the model and
* a new statement with the new value added.</p>
* @param o The value to be set.
* @param l the language of the String
*
* @return the new (S, P, o) statement..
*/
public Statement changeObject(String o, String l) ;
/** change the object of the statement (S, P, X) to (S, P, o).
* <p>The statement with the old value is removed from the model and
* a new statement with the new value added.</p>
* @param o The value to be set.
* @param l the language of the String
*
* @return the new (S, P, o) statement.
*/
public Statement changeObject(String o, String l, boolean wellFormed)
;
/** change the object of the statement (S, P, X) to (S, P, o).
* <p>The statement with the old value is removed from the model and
* a new statement with the new value added.</p>
* @param o The value to be set
* @return the new (S, P, o) statement.
*/
public Statement changeObject(RDFNode o) ;
/** change the object of the statement (S, P, X) to o.
* <p>The statement with the old value is removed from the model and
* a new statement with the new value added.</p>
* The Object o is converted to a string representation by calling its
* <CODE>toString()</CODE> method.
* @param o The value to be set.
*
* @return the new (S, P, o) statement.
*/
public Statement changeObject(Object o) ;
/** Remove this statement from its associated model.
*
* <p>The statement with the same subject, predicate and object as this
* statement will be removed from the model associated with this
* statement.</p>
*
* @return this statement.
*/
public Statement remove() ;
/**
Determine if this statement is the subject of any statements its associated
model.
@return true iff this statement is the subject of a statement in the model.
*/
boolean isReified();
/**
answer a ReifiedStatement object that embodies this Statement and
is in the same Model (if any).
*/
ReifiedStatement createReifiedStatement();
/**
answer a ReifiedStatement object that embodies this Statement, has
the same Model, and has the given <code>uri</code>.
*/
ReifiedStatement createReifiedStatement( String uri );
/**
answer an iterator which delivers all the reified statements in the model
this Statement belongs to that match this Statement.
*/
RSIterator listReifiedStatements();
/**
get the Model this Statement was created in.
*/
Model getModel();
/**
* Finds all possible resources which are
* the reification of this statement, and for each
* removes all four triples of the reification quad.
*/
void removeReification();
}
/*
(c) Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Hewlett-Packard Development Company, LP
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The name of the author may not be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -