public abstract class Attribute extends Object
| 构造器和说明 |
|---|
Attribute() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addOption(Option option) |
void |
addRule(AttributeRule rule) |
protected void |
appendAttributeValues(Attribute attribute,
org.dom4j.Element parent) |
protected void |
appendMultiAttributValue(org.dom4j.Element parent,
Attribute attribute) |
protected void |
appendOptionsElement(org.dom4j.Element parent,
List<Option> options,
String attributeId) |
protected void |
appendRulesElement(org.dom4j.Element parent,
List<AttributeRule> rules,
String attributeId) |
protected void |
appendSingleAttributValue(org.dom4j.Element parent,
Attribute attribute) |
protected void |
checkAttribute() |
String |
getId()
Getter method for property id.
|
String |
getName()
Getter method for property name.
|
List<Option> |
getOptions()
Getter method for property options.
|
List<AttributeRule> |
getRules()
Getter method for property rules.
|
AttrTypeEnum |
getType()
Getter method for property type.
|
AttrValueTypeEnum |
getValueType()
Getter method for property valueType.
|
void |
setId(String id)
Setter method for property id.
|
void |
setName(String name)
Setter method for property name.
|
void |
setOptions(List<Option> options)
Setter method for property options.
|
void |
setRules(List<AttributeRule> rules)
Setter method for property rules.
|
void |
setType(AttrTypeEnum type)
Setter method for property type.
|
void |
setValueType(AttrValueTypeEnum valueType)
Setter method for property valueType.
|
abstract org.dom4j.Element |
toElement()
转换成document的元素
|
abstract org.dom4j.Element |
toValueElement()
转换成document的元素
|
public abstract org.dom4j.Element toElement()
throws SchemaException
SchemaExceptionpublic abstract org.dom4j.Element toValueElement()
throws SchemaException
SchemaExceptionpublic void addRule(AttributeRule rule)
public void addOption(Option option)
protected void appendRulesElement(org.dom4j.Element parent,
List<AttributeRule> rules,
String attributeId)
throws SchemaException
SchemaExceptionprotected void appendOptionsElement(org.dom4j.Element parent,
List<Option> options,
String attributeId)
throws SchemaException
SchemaExceptionprotected void appendAttributeValues(Attribute attribute, org.dom4j.Element parent) throws SchemaException
SchemaExceptionprotected void appendSingleAttributValue(org.dom4j.Element parent,
Attribute attribute)
protected void appendMultiAttributValue(org.dom4j.Element parent,
Attribute attribute)
protected void checkAttribute()
throws SchemaException
SchemaExceptionpublic String getId()
public void setId(String id)
id - value to be assigned to property idpublic String getName()
public void setName(String name)
name - value to be assigned to property namepublic AttrTypeEnum getType()
public void setType(AttrTypeEnum type)
type - value to be assigned to property typepublic AttrValueTypeEnum getValueType()
public void setValueType(AttrValueTypeEnum valueType)
valueType - value to be assigned to property valueTypepublic List<AttributeRule> getRules()
public void setRules(List<AttributeRule> rules)
rules - value to be assigned to property rulespublic List<Option> getOptions()
Copyright © 2025. All rights reserved.