Cross Reference: ForEachImpl.java
xref
: /
owl-s
/
src
/
impl
/
owls
/
process
/
constructs
/
ForEachImpl.java
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
2
ronwalf
/*
2
ronwalf
* Created on Jan 4, 2005
2
ronwalf
*/
22
daenzerorama
package
impl
.
owls
.
process
.
constructs
;
2
ronwalf
2
ronwalf
import
org
.
mindswap
.
owl
.
OWLIndividual
;
2
ronwalf
import
org
.
mindswap
.
owls
.
process
.
ControlConstruct
;
2
ronwalf
import
org
.
mindswap
.
owls
.
process
.
ForEach
;
2
ronwalf
import
org
.
mindswap
.
owls
.
process
.
Local
;
2
ronwalf
import
org
.
mindswap
.
owls
.
process
.
Parameter
;
2
ronwalf
import
org
.
mindswap
.
owls
.
process
.
Perform
;
2
ronwalf
import
org
.
mindswap
.
owls
.
process
.
ValueOf
;
2
ronwalf
import
org
.
mindswap
.
owls
.
vocabulary
.
OWLS
;
2
ronwalf
2
ronwalf
/**
2
ronwalf
*
@author
Evren Sirin
2
ronwalf
*
2
ronwalf
*/
2
ronwalf
public
class
ForEachImpl
extends
IterateImpl
implements
ForEach
{
2
ronwalf
public
ForEachImpl
(
OWLIndividual
ind
) {
2
ronwalf
super
(
ind
);
2
ronwalf
}
2
ronwalf
2
ronwalf
public
ValueOf
getListValue
() {
2
ronwalf
return
(
ValueOf
)
getPropertyAs
(
OWLS
.
Process
.
theList
,
ValueOf
.
class
);
2
ronwalf
}
2
ronwalf
2
ronwalf
public
void
setListValue
(
ValueOf
value
) {
2
ronwalf
setProperty
(
OWLS
.
Process
.
theList
,
value
);
2
ronwalf
}
2
ronwalf
2
ronwalf
public
Local
getLoopVar
() {
2
ronwalf
return
(
Local
)
getPropertyAs
(
OWLS
.
Process
.
theLoopVar
,
Local
.
class
);
2
ronwalf
}
2
ronwalf
2
ronwalf
public
void
setLoopVar
(
Local
var
) {
2
ronwalf
setProperty
(
OWLS
.
Process
.
theLoopVar
,
var
);
2
ronwalf
}
2
ronwalf
2
ronwalf
public
ControlConstruct
getComponent
() {
2
ronwalf
return
(
ControlConstruct
)
getPropertyAs
(
OWLS
.
Process
.
iterateBody
,
ControlConstruct
.
class
);
2
ronwalf
}
2
ronwalf
2
ronwalf
public
void
setComponent
(
ControlConstruct
component
) {
2
ronwalf
setProperty
(
OWLS
.
Process
.
iterateBody
,
component
);
2
ronwalf
}
2
ronwalf
2
ronwalf
public
void
setListValue
(
Perform
perform
,
Parameter
parameter
) {
2
ronwalf
ValueOf
valueOf
=
getOntology
().
createValueOf
();
2
ronwalf
valueOf
.
setPerform
(
perform
);
2
ronwalf
valueOf
.
setParameter
(
parameter
);
2
ronwalf
2
ronwalf
setListValue
(
valueOf
);
2
ronwalf
}
2
ronwalf
2
ronwalf
public
String
getConstructName
() {
2
ronwalf
return
"For-Each"
;
2
ronwalf
}
18
daenzerorama
18
daenzerorama
public
void
removeComponent
() {
18
daenzerorama
if
(
hasProperty
(
OWLS
.
Process
.
iterateBody
))
18
daenzerorama
removeProperties
(
OWLS
.
Process
.
iterateBody
);
16
daenzerorama
}
2
ronwalf
}