org.eclipse.persistence.oxm.XMLDescriptor.setInheritancePolicy()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(120)

本文整理了Java中org.eclipse.persistence.oxm.XMLDescriptor.setInheritancePolicy()方法的一些代码示例,展示了XMLDescriptor.setInheritancePolicy()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLDescriptor.setInheritancePolicy()方法的具体详情如下:
包路径:org.eclipse.persistence.oxm.XMLDescriptor
类名称:XMLDescriptor
方法名:setInheritancePolicy

XMLDescriptor.setInheritancePolicy介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * PUBLIC:
 * The inheritance policy is used to define how a descriptor takes part in inheritance.
 * All inheritance properties for both child and parent classes is configured in inheritance policy.
 * Caution must be used in using this method as it lazy initializes an inheritance policy.
 * Calling this on a descriptor that does not use inheritance will cause problems, #hasInheritance() must always first be called.
 * @return the InheritancePolicy associated with this descriptor
 */
public InheritancePolicy getInheritancePolicy() {
  if (inheritancePolicy == null) {
    // Lazy initialize to conserve space in non-inherited classes.
    setInheritancePolicy(new org.eclipse.persistence.internal.oxm.QNameInheritancePolicy(this));
  }
  return inheritancePolicy;
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * PUBLIC:
 * The inheritance policy is used to define how a descriptor takes part in inheritance.
 * All inheritance properties for both child and parent classes is configured in inheritance policy.
 * Caution must be used in using this method as it lazy initializes an inheritance policy.
 * Calling this on a descriptor that does not use inheritance will cause problems, #hasInheritance() must always first be called.
 * @return the InheritancePolicy associated with this descriptor
 */
public InheritancePolicy getInheritancePolicy() {
  if (inheritancePolicy == null) {
    // Lazy initialize to conserve space in non-inherited classes.
    setInheritancePolicy(new org.eclipse.persistence.internal.oxm.QNameInheritancePolicy(this));
  }
  return inheritancePolicy;
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * PUBLIC:
 * The inheritance policy is used to define how a descriptor takes part in inheritance.
 * All inheritance properties for both child and parent classes is configured in inheritance policy.
 * Caution must be used in using this method as it lazy initializes an inheritance policy.
 * Calling this on a descriptor that does not use inheritance will cause problems, #hasInheritance() must always first be called.
 * @return the InheritancePolicy associated with this descriptor
 */
public InheritancePolicy getInheritancePolicy() {
  if (inheritancePolicy == null) {
    // Lazy initialize to conserve space in non-inherited classes.
    setInheritancePolicy(new org.eclipse.persistence.internal.oxm.QNameInheritancePolicy(this));
  }
  return inheritancePolicy;
}

相关文章

微信公众号

最新文章

更多

XMLDescriptor类方法