org.eclipse.persistence.internal.oxm.QNameInheritancePolicy.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(4.8k)|赞(0)|评价(0)|浏览(67)

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

QNameInheritancePolicy.<init>介绍

暂无

代码示例

代码示例来源: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;
}

代码示例来源: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: 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.
 */
@Override
public InheritancePolicy getInheritancePolicy() {
  if (inheritancePolicy == null) {
    if(isXMLFormat()) {
      // Lazy initialize to conserve space in non-inherited classes.
      setInheritancePolicy(new org.eclipse.persistence.internal.oxm.QNameInheritancePolicy(this));
    } else {
      setInheritancePolicy(new InheritancePolicy(this));
    }
  }
  return inheritancePolicy;
}

代码示例来源: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.
 */
public InheritancePolicy getInheritancePolicy() {
  if (inheritancePolicy == null) {
    if(getDataFormat() == EISDescriptor.XML) {
      // Lazy initialize to conserve space in non-inherited classes.
      setInheritancePolicy(new org.eclipse.persistence.internal.oxm.QNameInheritancePolicy(this));
    } else {
      setInheritancePolicy(new InheritancePolicy(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.
 */
@Override
public InheritancePolicy getInheritancePolicy() {
  if (inheritancePolicy == null) {
    if(isXMLFormat()) {
      // Lazy initialize to conserve space in non-inherited classes.
      setInheritancePolicy(new org.eclipse.persistence.internal.oxm.QNameInheritancePolicy(this));
    } else {
      setInheritancePolicy(new InheritancePolicy(this));
    }
  }
  return inheritancePolicy;
}

相关文章