本文整理汇总了Java中org.simpleframework.xml.stream.Style.getElement方法的典型用法代码示例。如果您正苦于以下问题:Java Style.getElement方法的具体用法?Java Style.getElement怎么用?Java Style.getElement使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.simpleframework.xml.stream.Style
的用法示例。
在下文中一共展示了Style.getElement方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getEntry
import org.simpleframework.xml.stream.Style; //导入方法依赖的package包/类
/**
* This is used to either provide the entry value provided within
* the annotation or compute a entry value. If the entry string
* is not provided the the entry value is calculated as the type
* of primitive the object is as a simplified class name.
*
* @return this returns the name of the XML entry element used
*/
public String getEntry() throws Exception {
Style style = format.getStyle();
if(detail.isEmpty(entry)) {
entry = detail.getEntry();
}
return style.getElement(entry);
}
示例2: getName
import org.simpleframework.xml.stream.Style; //导入方法依赖的package包/类
/**
* This is used to acquire the name of the element or attribute
* that is used by the class schema. The name is determined by
* checking for an override within the annotation. If it contains
* a name then that is used, if however the annotation does not
* specify a name the the field or method name is used instead.
*
* @return returns the name that is used for the XML property
*/
public String getName() throws Exception{
if(name == null) {
Style style = format.getStyle();
String value = detail.getName();
name = style.getElement(value);
}
return name;
}
示例3: getName
import org.simpleframework.xml.stream.Style; //导入方法依赖的package包/类
/**
* This is used to acquire the name of the element or attribute
* that is used by the class schema. The name is determined by
* checking for an override within the annotation. If it contains
* a name then that is used, if however the annotation does not
* specify a name the the field or method name is used instead.
*
* @return returns the name that is used for the XML property
*/
public String getName() throws Exception{
if(name == null) {
Style style = format.getStyle();
String value = detail.getName();
name = style.getElement(value);
}
return name;
}
示例4: getEntry
import org.simpleframework.xml.stream.Style; //导入方法依赖的package包/类
/**
* This is used to either provide the entry value provided within
* the annotation or compute a entry value. If the entry string
* is not provided the the entry value is calculated as the type
* of primitive the object is as a simplified class name.
*
* @return this returns the name of the XML entry element used
*/
public String getEntry() throws Exception {
Style style = format.getStyle();
if(detail.isEmpty(entry)) {
entry = detail.getEntry();
}
return style.getElement(entry);
}
示例5: getEntry
import org.simpleframework.xml.stream.Style; //导入方法依赖的package包/类
/**
* This is used to either provide the entry value provided within
* the annotation or compute a entry value. If the entry string
* is not provided the the entry value is calculated as the type
* of primitive the object is as a simplified class name.
*
* @return this returns the name of the XML entry element used
*/
public String getEntry() throws Exception {
Style style = format.getStyle();
if(detail.isEmpty(parent)) {
parent = detail.getEntry();
}
return style.getElement(parent);
}
示例6: getName
import org.simpleframework.xml.stream.Style; //导入方法依赖的package包/类
/**
* This is used to acquire the name of the element or attribute
* that is used by the class schema. The name is determined by
* checking for an override within the annotation. If it contains
* a name then that is used, if however the annotation does not
* specify a name the the field or method name is used instead.
*
* @return returns the name that is used for the XML property
*/
public String getName() throws Exception{
if(name == null) {
Style style = format.getStyle();
String value = entry.getEntry();
if(!label.inline()) {
value = detail.getName();
}
name = style.getElement(value);
}
return name;
}
示例7: getName
import org.simpleframework.xml.stream.Style; //导入方法依赖的package包/类
/**
* This is used to acquire the name of the element or attribute
* that is used by the class schema. The name is determined by
* checking for an override within the annotation. If it contains
* a name then that is used, if however the annotation does not
* specify a name the the field or method name is used instead.
*
* @return returns the name that is used for the XML property
*/
public String getName() throws Exception{
Style style = format.getStyle();
String name = detail.getName();
return style.getElement(name);
}