kaos.kpat.gui.hypertext
Class HTProperty

java.lang.Object
  extended by kaos.kpat.gui.hypertext.HTComponentImpl
      extended by kaos.kpat.gui.hypertext.HypertextContainerImpl
          extended by kaos.kpat.gui.hypertext.HTProperty
All Implemented Interfaces:
HyperlinkListener, HypertextComponent, HypertextContainer, HypertextListener

public class HTProperty
extends HypertextContainerImpl


Nested Class Summary
static class HTProperty.StringContainer
           
 
Field Summary
protected  HTComboBox _classInstanceBox
           
 ClassPropertiesContainer _classProps
           
protected  HTComboBox _classValueBox
           
protected  HypertextSet _instanceSet
           
protected  HTComboBox _propertyBox
           
protected  HTComboBox _restrictionBox
           
 OntClassPropertyDescription _tcd
           
static java.lang.String ALL_CLASS_RESTRICTION
           
static java.lang.String CLASS_PROPS
           
static java.lang.String CLASS_SELECTION
           
static java.lang.String COMPLEMENT_SELECTION
           
static java.lang.String INSTANCE_SELECTION
           
static java.lang.String IS_CLASS
           
static java.lang.String IS_COMPLEMENT
           
static java.lang.String PROPERTY_NAME
           
static java.lang.String RES_TYPE
           
static java.lang.String ROLE_VALUE_MAP
           
static java.lang.String SOME_CLASS_RESTRICTION
           
static java.lang.String VALUES
           
 
Fields inherited from class kaos.kpat.gui.hypertext.HTComponentImpl
_displayComponent, _id, _listeners, _peer, _popup, _prefix, _suffix, _templateEditor, _templateLinkId, _templateLinkName, TEMPLATE_LINK_ID, VISITED_LINK_RGB
 
Constructor Summary
HTProperty(OntologyService ontServ, java.lang.String ontType)
           
HTProperty(OntologyService ontServ, java.lang.String ontType, boolean instanceMode)
           
 
Method Summary
 void checkIsValid()
           
 HTPropertyEditor getCustomPropertyEditor()
           
 java.lang.String getName()
           
 java.lang.String getRestricitionType()
           
 KAoSRoleValueMap getRoleValueMap()
           
 XMLSchemaBuilderImpl getSchema()
           
 java.lang.Object getState()
           
 OntClassPropertyDescription getTCD()
           
 java.util.Set getValues()
           
 XMLSchemaRestriction getXMLSchemaRestriction()
           
 boolean isClass()
           
 boolean isComplement()
           
 boolean isInstance()
           
 boolean isRoleValueMap()
           
 boolean isXMLDatatype()
           
 void rvmChanged(java.lang.String updateType, java.lang.Object obj)
           
 void setActionTypeForRVMProperty(java.lang.String actionType)
           
 void setAddEmptyValue(boolean addEmptyValue)
           
 void setDisplayComponent(java.awt.Component c)
           
 void setPeerRVMCoordinator(HTPeerRVMCoordinator coordinator)
           
 void setPrefix(java.lang.String prefix)
           
 void setRoleValueMap(KAoSRoleValueMap rvm)
           
 void setRVMEnabled(boolean enabled)
           
 void setSelectedProperty(java.lang.String name, java.lang.String resType, boolean isClass, boolean complement, java.util.Vector values)
           
 void setState(java.lang.Object o)
           
 void setTarget(OntClassPropertyDescription tcd)
           
 void setTemplateEditor(HypertextEditor editor)
           
static void setupInstanceBoxForEditing(HTComboBox comboBox, TunnelClient tc, HTProperty.StringContainer parentClass)
           
 void setValues(java.util.List<OntClassPropertyDescription> tcds)
           
 
Methods inherited from class kaos.kpat.gui.hypertext.HypertextContainerImpl
addComponent, addComponent, containsComponent, getComponentAt, getComponentCount, getComponentForLink, getComponentForTemplateLink, getText, hyperlinkSelected, removeComponent, removeComponentAt, setHyperlinkInterceptor, setTemplateLink, textChanged
 
Methods inherited from class kaos.kpat.gui.hypertext.HTComponentImpl
addListener, fireTextChanged, getDisplayComponent, getDisplayText, getId, getParent, getPopupMenu, getPrefix, getRelativeLocation, getTemplateLink, removeListener, setDlgLocation, setFontSize, setId, setParent, setPeer, setPopupMenu, setSuffix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface kaos.kpat.gui.hypertext.HypertextComponent
addListener, getDisplayComponent, getDisplayText, getId, getParent, getPrefix, getTemplateLink, removeListener, setParent, setPeer, setSuffix
 

Field Detail

ALL_CLASS_RESTRICTION

public static final java.lang.String ALL_CLASS_RESTRICTION
See Also:
Constant Field Values

SOME_CLASS_RESTRICTION

public static final java.lang.String SOME_CLASS_RESTRICTION
See Also:
Constant Field Values

CLASS_SELECTION

public static final java.lang.String CLASS_SELECTION
See Also:
Constant Field Values

INSTANCE_SELECTION

public static final java.lang.String INSTANCE_SELECTION
See Also:
Constant Field Values

COMPLEMENT_SELECTION

public static final java.lang.String COMPLEMENT_SELECTION
See Also:
Constant Field Values

_classProps

public ClassPropertiesContainer _classProps

PROPERTY_NAME

public static final java.lang.String PROPERTY_NAME
See Also:
Constant Field Values

ROLE_VALUE_MAP

public static final java.lang.String ROLE_VALUE_MAP
See Also:
Constant Field Values

RES_TYPE

public static final java.lang.String RES_TYPE
See Also:
Constant Field Values

IS_CLASS

public static final java.lang.String IS_CLASS
See Also:
Constant Field Values

IS_COMPLEMENT

public static final java.lang.String IS_COMPLEMENT
See Also:
Constant Field Values

VALUES

public static final java.lang.String VALUES
See Also:
Constant Field Values

CLASS_PROPS

public static final java.lang.String CLASS_PROPS
See Also:
Constant Field Values

_propertyBox

protected HTComboBox _propertyBox

_restrictionBox

protected HTComboBox _restrictionBox

_classInstanceBox

protected HTComboBox _classInstanceBox

_classValueBox

protected HTComboBox _classValueBox

_instanceSet

protected HypertextSet _instanceSet

_tcd

public OntClassPropertyDescription _tcd
Constructor Detail

HTProperty

public HTProperty(OntologyService ontServ,
                  java.lang.String ontType)

HTProperty

public HTProperty(OntologyService ontServ,
                  java.lang.String ontType,
                  boolean instanceMode)
Method Detail

setupInstanceBoxForEditing

public static void setupInstanceBoxForEditing(HTComboBox comboBox,
                                              TunnelClient tc,
                                              HTProperty.StringContainer parentClass)

setPrefix

public void setPrefix(java.lang.String prefix)
Specified by:
setPrefix in interface HypertextComponent
Overrides:
setPrefix in class HTComponentImpl

getState

public java.lang.Object getState()
                          throws KAoSPolicyBuilder.PolicyBuildingNotCompleted
Specified by:
getState in interface HypertextComponent
Overrides:
getState in class HTComponentImpl
Throws:
KAoSPolicyBuilder.PolicyBuildingNotCompleted

setState

public void setState(java.lang.Object o)
Specified by:
setState in interface HypertextComponent
Overrides:
setState in class HTComponentImpl

setTemplateEditor

public void setTemplateEditor(HypertextEditor editor)
Specified by:
setTemplateEditor in interface HypertextComponent
Overrides:
setTemplateEditor in class HypertextContainerImpl

setRVMEnabled

public void setRVMEnabled(boolean enabled)

getRoleValueMap

public KAoSRoleValueMap getRoleValueMap()
                                 throws KAoSPolicyBuilder.PolicyBuildingNotCompleted
Throws:
KAoSPolicyBuilder.PolicyBuildingNotCompleted

setPeerRVMCoordinator

public void setPeerRVMCoordinator(HTPeerRVMCoordinator coordinator)

rvmChanged

public void rvmChanged(java.lang.String updateType,
                       java.lang.Object obj)

setActionTypeForRVMProperty

public void setActionTypeForRVMProperty(java.lang.String actionType)

setTarget

public void setTarget(OntClassPropertyDescription tcd)

getCustomPropertyEditor

public HTPropertyEditor getCustomPropertyEditor()

setSelectedProperty

public void setSelectedProperty(java.lang.String name,
                                java.lang.String resType,
                                boolean isClass,
                                boolean complement,
                                java.util.Vector values)

getName

public java.lang.String getName()

checkIsValid

public void checkIsValid()
                  throws KAoSPolicyBuilder.PolicyBuildingNotCompleted
Throws:
KAoSPolicyBuilder.PolicyBuildingNotCompleted

isXMLDatatype

public boolean isXMLDatatype()

isClass

public boolean isClass()

isInstance

public boolean isInstance()

isComplement

public boolean isComplement()

getRestricitionType

public java.lang.String getRestricitionType()

getValues

public java.util.Set getValues()
                        throws KAoSPolicyBuilder.PolicyBuildingNotCompleted
Throws:
KAoSPolicyBuilder.PolicyBuildingNotCompleted

getSchema

public XMLSchemaBuilderImpl getSchema()

getXMLSchemaRestriction

public XMLSchemaRestriction getXMLSchemaRestriction()

setAddEmptyValue

public void setAddEmptyValue(boolean addEmptyValue)

setValues

public void setValues(java.util.List<OntClassPropertyDescription> tcds)

setDisplayComponent

public void setDisplayComponent(java.awt.Component c)
Specified by:
setDisplayComponent in interface HypertextComponent
Overrides:
setDisplayComponent in class HypertextContainerImpl

getTCD

public OntClassPropertyDescription getTCD()

setRoleValueMap

public void setRoleValueMap(KAoSRoleValueMap rvm)

isRoleValueMap

public boolean isRoleValueMap()