ilog.rules.bom.dynamic
Class IlrDynamicMember
- java.lang.Object
-
- ilog.rules.bom.dynamic.IlrDynamicModelElement
-
- ilog.rules.bom.dynamic.IlrDynamicMember
-
- All Implemented Interfaces:
- IlrMember, IlrModelElement, IlrProperties, IlrTransientProperties, IlrMutableMember, IlrMutableModelElement, java.io.Serializable
- Direct Known Subclasses:
- IlrDynamicAttribute, IlrDynamicComponentProperty, IlrDynamicMethod
public abstract class IlrDynamicMember extends IlrDynamicModelElement implements java.io.Serializable, IlrMutableMember
An implementation of theilog.rules.bom.IlrMemberinterface.Warning: Serialized objects of this class will not be compatible with future JRules releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of JRules.
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description IlrClassgetDeclaringClass()Returns the class in which this member is declaredIlrDomaingetDomain()Returns the domain of the member.IlrNamespacegetEnclosingNamespace()Returns the enclosing namespace of this member, that is the declaring class.IlrTypegetMemberType()Returns the type of the member.booleanisFinal()Returnstrueif the member is final.booleanisPrivate()Returnstrueif the member is private.booleanisProtected()Returnstrueif the member is protected.booleanisPublic()Returnstrueif the member is public.booleanisStatic()Returnstrueif the member is static.voidsetDomain(IlrDomain domain)Sets the domain of the member.voidsetFinal(boolean flag)Sets the 'final' property of this member.voidsetMemberType(IlrType type)Sets the type of the member.voidsetPackageVisibility()Sets the visibility of this member to package.voidsetPrivate()Sets the visibility of this member toprivate.voidsetProtected()Sets the visibility of this member toprotected.voidsetPublic()Sets the visibility of this member topublic.voidsetStatic(boolean flag)Sets thestaticproperty of this member.-
Methods inherited from class ilog.rules.bom.dynamic.IlrDynamicModelElement
fireUpdate, fireUpdate, fixType, getFullyQualifiedName, getMutableObjectModel, getName, getObjectModel, getPropertyValue, getPropertyValue, hasListeners, isPropertyPersistent, propertyNames, removeProperty, setPersistentProperty, setPersistentProperty, setPropertyValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ilog.rules.bom.mutable.IlrMutableModelElement
getMutableObjectModel
-
Methods inherited from interface ilog.rules.bom.IlrModelElement
getFullyQualifiedName, getName, getObjectModel
-
Methods inherited from interface ilog.rules.bom.IlrProperties
isPropertyPersistent, setPersistentProperty, setPersistentProperty
-
Methods inherited from interface ilog.rules.bom.IlrTransientProperties
getPropertyValue, getPropertyValue, propertyNames, removeProperty, setPropertyValue
-
-
-
-
Method Detail
-
getEnclosingNamespace
public IlrNamespace getEnclosingNamespace()
Returns the enclosing namespace of this member, that is the declaring class.- Specified by:
getEnclosingNamespacein interfaceIlrModelElement- Returns:
- a namespace or
null
-
getDeclaringClass
public IlrClass getDeclaringClass()
Returns the class in which this member is declared- Specified by:
getDeclaringClassin interfaceIlrMember
-
setPackageVisibility
public void setPackageVisibility()
Sets the visibility of this member to package.Note: This is the default setting for the visibility.
- Specified by:
setPackageVisibilityin interfaceIlrMutableMember
-
isPublic
public boolean isPublic()
Returnstrueif the member is public.
-
setPublic
public void setPublic()
Sets the visibility of this member topublic.- Specified by:
setPublicin interfaceIlrMutableMember
-
isProtected
public boolean isProtected()
Returnstrueif the member is protected.- Specified by:
isProtectedin interfaceIlrMember
-
setProtected
public void setProtected()
Sets the visibility of this member toprotected.- Specified by:
setProtectedin interfaceIlrMutableMember
-
isPrivate
public boolean isPrivate()
Returnstrueif the member is private.
-
setPrivate
public void setPrivate()
Sets the visibility of this member toprivate.- Specified by:
setPrivatein interfaceIlrMutableMember
-
isStatic
public boolean isStatic()
Returnstrueif the member is static.
-
isFinal
public boolean isFinal()
Returnstrueif the member is final.
-
setStatic
public void setStatic(boolean flag)
Sets thestaticproperty of this member. Initially, this property isfalse.- Specified by:
setStaticin interfaceIlrMutableMember- Parameters:
flag- The new value of thestaticproperty.
-
setFinal
public void setFinal(boolean flag)
Sets the 'final' property of this member. Initially, this property isfalse.- Specified by:
setFinalin interfaceIlrMutableMember- Parameters:
flag- The new value of thefinalproperty.
-
setMemberType
public void setMemberType(IlrType type)
Sets the type of the member.- Specified by:
setMemberTypein interfaceIlrMutableMember
-
getMemberType
public IlrType getMemberType()
Returns the type of the member. The returned type depends on the actual kind of member, yet you can expect that it will be the type of an attribute or the returned type for a method.- Specified by:
getMemberTypein interfaceIlrMember
-
getDomain
public IlrDomain getDomain()
Returns the domain of the member.- Specified by:
getDomainin interfaceIlrMember- Returns:
- The member domain or
nullif the member and the member type do not have a domain.Note: The returned domain may be the type domain if it is applicable. Be careful if you want to change it.
- See Also:
IlrType.getDomain()
-
setDomain
public void setDomain(IlrDomain domain)
Sets the domain of the member.- Specified by:
setDomainin interfaceIlrMutableMember
-
-