Package com.easydesk.attribute
Class MathExpressionAttribute
java.lang.Object
com.easydesk.om.BaseAttributeValue
com.easydesk.om.AttributeValue
com.easydesk.attribute.FreeFormAttribute
com.easydesk.attribute.StringAttribute
com.easydesk.attribute.MultiValuedStringAttribute
com.easydesk.attribute.MathExpressionAttribute
- All Implemented Interfaces:
Viewable,Cacheable,Observed,Retrievable,Serializable,ColumnAccessByName,ObjectModel,Persistent
This class represents an attribute of a math expression as javascript, latex etc... 경우에 따라서 하나의 Expresison 으로 처리할 수
없기 때문에 multivaluedString 이다.
- Version:
- $Id: MultiValuedStringAttribute.java,v 1.2 2008/12/25 04:03:44 youngho Exp $
- Author:
- Youngho Cho
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.easydesk.om.AttributeValue
AttributeValue.AccessEnum -
Field Summary
Fields inherited from class com.easydesk.om.AttributeValue
activitySet, chainedFields inherited from interface com.easydesk.validator.Retrievable
KEY_SEPERATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanGraph()이 object 이 isGraphical true 인 경우에 canGraph 설정값을 확인한다.charfindArgument(String expression) 수식의 인자(argument)를 구한다.String[]EasyGrapher 를 위한 data source 를 만든다.String[]MathJax 에서 처리할 수 있는 형태를 구한다. '$' 로 감싼 Math ExpressionString[]getText()저장된 수식들을 구한다.booleanMathExpression 이 graphical representation 이 가능한지 아닌지 판단한다.Methods inherited from class com.easydesk.attribute.MultiValuedStringAttribute
setValuesMethods inherited from class com.easydesk.attribute.StringAttribute
getLocalizedValue, getLocalizedValue, hasValueMethods inherited from class com.easydesk.attribute.FreeFormAttribute
getDisplayedValue, getDisplayedValue, getFormatter, init, loadResources, setResourcesMethods inherited from class com.easydesk.om.AttributeValue
alwaysNeedActivity, clear, copy, copy, endActivitySet, getActivity, getActivityDescription, getAttachment, getChainedValue, getChainedValue, getChainedValue, getInputValue, getLocalizedValue, getLocalizedValue, getLocalizedValue, getLocalizedValues, getLocalizedValues, getMethodCache, getModuleAttribute, getNewInstance, getNewInstance, getNumericValues, getNumericValues, getNumericValuesAsString, getNumericValuesAsString, getObserverOption, getOptionIdAsString, getOptionIds, getOptionIds, getOptionIdsAsString, getOptionIdsAsString, getOptionValues, getPossibleTransitionCount, getPossibleTransitionCount, getPrimitiveOptionIds, getPrimitiveUserIds, getQueryKey, getRelativePath, getRelativePath, getRepository, getResource, getTransactionId, getUser, getUserIds, getValueList, getValueList, getValues, getValues, getValuesAsString, getValuesAsString, hasAlreadyChained, isModified, isQuickSearchAttribute, isSet, isSetOnly, needActivity, performAfter, performBefore, register, save, setActivity, setActivityDescription, setAttachment, setChainedValue, setInputValue, setNumericValue, setNumericValueOnly, setNumericValues, setOptionId, setOptionIdOnly, setOptionIds, setOptionValues, setPrimitiveOptionIds, setPrimitiveUserIds, setProperties, setTransactionId, setUser, setUserId, setUserIdOnly, setUserIds, setValue, setValueOnly, startActivitySet, toStringMethods inherited from class com.easydesk.om.BaseAttributeValue
copy, copy, copyInto, copyInto, copyInto, copyInto, equals, getAttribute, getAttribute, getAttributeId, getAttributeOption, getAttributeOption, getByName, getByPeerName, getByPosition, getDepend, getDepend, getDependId, getEasyDeskUserImpl, getEasyDeskUserImpl, getFieldNames, getForeignKeyForAttribute, getForeignKeyForAttributeOption, getForeignKeyForDepend, getForeignKeyForEasyDeskUserImpl, getForeignKeyForItem, getItem, getItem, getItemId, getNumericValue, getOptionId, getPeer, getPrimaryKey, getTableMap, getUserId, getValue, getValueId, hashCode, isCacheOnSave, isDeleted, isLoading, isModified, isNew, isRemoved, isSaving, resetModified, save, save, setAttribute, setAttributeId, setAttributeKey, setAttributeOption, setAttributeOptionKey, setByName, setByPeerName, setByPosition, setDeleted, setDepend, setDependId, setDependKey, setEasyDeskUserImpl, setEasyDeskUserImplKey, setItem, setItemId, setItemKey, setLoading, setModified, setNew, setPrimaryKey, setPrimaryKey, setRemoved, setSaving, setValueId, valueEqualsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.easydesk.attribute.Viewable
getComponentName
-
Constructor Details
-
MathExpressionAttribute
public MathExpressionAttribute()Creates a new MathExpressionAttribute object.
-
-
Method Details
-
getText
저장된 수식들을 구한다.- Returns:
- mathmatical expression array
- Throws:
TorqueException- 값 조회 중 오류가 발생한 경우
-
getMathJaxValues
MathJax 에서 처리할 수 있는 형태를 구한다. '$' 로 감싼 Math Expression- Returns:
- MathJax 형식의 수식 배열
- Throws:
TorqueException- 값 조회 중 오류가 발생한 경우
-
getExpressions
EasyGrapher 를 위한 data source 를 만든다.- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- DOCUMENT ME!
-
isGraphical
MathExpression 이 graphical representation 이 가능한지 아닌지 판단한다. 참조로 manual 로 GraphEnable 속성이 존재한다.- Returns:
- true/false
- Throws:
TorqueException- 값 조회 중 오류가 발생한 경우
-
canGraph
이 object 이 isGraphical true 인 경우에 canGraph 설정값을 확인한다. GraphEnable AttributeValue check- Returns:
- true/false
- Throws:
Exception- 값 조회 중 오류가 발생한 경우
-
findArgument
수식의 인자(argument)를 구한다. 극좌표 형식이면 'θ', 아니면 'x' 이다.- Parameters:
expression- 수식- Returns:
- 'x', 'y', or 'θ'
-