Cross Reference: OutputBindingImpl.java
xref
: /
owl-s
/
src
/
impl
/
owls
/
process
/
binding
/
OutputBindingImpl.java
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
2
ronwalf
/*
2
ronwalf
* Created on Oct 31, 2004
2
ronwalf
*/
22
daenzerorama
package
impl
.
owls
.
process
.
binding
;
2
ronwalf
2
ronwalf
import
org
.
mindswap
.
owl
.
OWLIndividual
;
2
ronwalf
import
org
.
mindswap
.
owls
.
process
.
Output
;
2
ronwalf
import
org
.
mindswap
.
owls
.
process
.
OutputBinding
;
2
ronwalf
import
org
.
mindswap
.
owls
.
process
.
Parameter
;
2
ronwalf
import
org
.
mindswap
.
owls
.
vocabulary
.
OWLS
;
2
ronwalf
2
ronwalf
/**
2
ronwalf
*
@author
Evren Sirin
2
ronwalf
*/
2
ronwalf
public
class
OutputBindingImpl
extends
BindingImpl
implements
OutputBinding
{
2
ronwalf
2
ronwalf
/**
2
ronwalf
*
@param
resource
2
ronwalf
*/
2
ronwalf
public
OutputBindingImpl
(
OWLIndividual
ind
) {
2
ronwalf
super
(
ind
);
2
ronwalf
}
2
ronwalf
2
ronwalf
public
void
setParameter
(
Parameter
param
) {
2
ronwalf
if
(
param
instanceof
Output
)
2
ronwalf
setProperty
(
OWLS
.
Process
.
toParam
,
param
);
2
ronwalf
else
2
ronwalf
throw
new
IllegalArgumentException
(
"Input Binding can only have Input parameters!"
);
2
ronwalf
}
2
ronwalf
2
ronwalf
2
ronwalf
public
Parameter
getParameter
() {
2
ronwalf
return
getOutput
();
2
ronwalf
}
2
ronwalf
2
ronwalf
public
Output
getOutput
() {
2
ronwalf
return
(
Output
)
getPropertyAs
(
OWLS
.
Process
.
toParam
,
Output
.
class
);
2
ronwalf
}
2
ronwalf
2
ronwalf
}