Package com.aspectran.core.context.rule
Class DescriptionRule
- java.lang.Object
-
- com.aspectran.core.context.rule.DescriptionRule
-
- All Implemented Interfaces:
Replicable<DescriptionRule>
public class DescriptionRule extends java.lang.Object implements Replicable<DescriptionRule>
Created: 2019/12/17
-
-
Constructor Summary
Constructors Constructor Description DescriptionRule()
DescriptionRule(DescriptionRule dr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<DescriptionRule>
addCandidate(DescriptionRule descriptionRule)
java.util.List<DescriptionRule>
getCandidates()
java.lang.String
getContent()
TextStyleType
getContentStyle()
java.lang.String
getFormattedContent()
java.lang.String
getProfile()
static DescriptionRule
newInstance(java.lang.String profile, java.lang.String style)
static java.lang.String
render(DescriptionRule descriptionRule, Activity activity)
DescriptionRule
replicate()
Creates and returns a new instance after replicating a rule or Object.void
setCandidates(java.util.List<DescriptionRule> candidates)
void
setContent(java.lang.String content)
void
setContentStyle(TextStyleType contentStyle)
void
setFormattedContent(java.lang.String formattedContent)
void
setProfile(java.lang.String profile)
java.lang.String
toString()
-
-
-
Constructor Detail
-
DescriptionRule
public DescriptionRule()
-
DescriptionRule
public DescriptionRule(DescriptionRule dr)
-
-
Method Detail
-
getProfile
public java.lang.String getProfile()
-
setProfile
public void setProfile(java.lang.String profile)
-
getContentStyle
public TextStyleType getContentStyle()
-
setContentStyle
public void setContentStyle(TextStyleType contentStyle)
-
getContent
public java.lang.String getContent()
-
setContent
public void setContent(java.lang.String content)
-
getFormattedContent
public java.lang.String getFormattedContent()
-
setFormattedContent
public void setFormattedContent(java.lang.String formattedContent)
-
getCandidates
public java.util.List<DescriptionRule> getCandidates()
-
setCandidates
public void setCandidates(java.util.List<DescriptionRule> candidates)
-
addCandidate
public java.util.List<DescriptionRule> addCandidate(DescriptionRule descriptionRule)
-
replicate
public DescriptionRule replicate()
Description copied from interface:Replicable
Creates and returns a new instance after replicating a rule or Object.- Specified by:
replicate
in interfaceReplicable<DescriptionRule>
- Returns:
- replicated rule or new instance of Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
render
public static java.lang.String render(DescriptionRule descriptionRule, Activity activity)
-
newInstance
public static DescriptionRule newInstance(java.lang.String profile, java.lang.String style) throws IllegalRuleException
- Throws:
IllegalRuleException
-
-