当前位置: 首页>>代码示例>>Java>>正文


Java Style.getElement方法代码示例

本文整理汇总了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);
}
 
开发者ID:ngallagher,项目名称:simplexml,代码行数:17,代码来源:ElementListLabel.java

示例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;
}
 
开发者ID:ngallagher,项目名称:simplexml,代码行数:19,代码来源:ElementListLabel.java

示例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;
}
 
开发者ID:ngallagher,项目名称:simplexml,代码行数:19,代码来源:ElementLabel.java

示例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);
}
 
开发者ID:ngallagher,项目名称:simplexml,代码行数:17,代码来源:ElementArrayLabel.java

示例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);
}
 
开发者ID:ngallagher,项目名称:simplexml,代码行数:17,代码来源:ElementMapLabel.java

示例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;
}
 
开发者ID:ngallagher,项目名称:simplexml,代码行数:22,代码来源:ElementMapLabel.java

示例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);
}
 
开发者ID:ngallagher,项目名称:simplexml,代码行数:16,代码来源:ElementArrayLabel.java


注:本文中的org.simpleframework.xml.stream.Style.getElement方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。