Java Code Examples for com.sun.xml.internal.xsom.XSDeclaration#getName()

The following examples show how to use com.sun.xml.internal.xsom.XSDeclaration#getName() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BGMBuilder.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Returns the QName of the declaration.
 * @return null
 *      if the declaration is anonymous.
 */
public static QName getName(XSDeclaration decl) {
    String local = decl.getName();
    if(local==null) return null;
    return new QName(decl.getTargetNamespace(),local);
}
 
Example 2
Source File: BGMBuilder.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Returns the QName of the declaration.
 * @return null
 *      if the declaration is anonymous.
 */
public static QName getName(XSDeclaration decl) {
    String local = decl.getName();
    if(local==null) return null;
    return new QName(decl.getTargetNamespace(),local);
}
 
Example 3
Source File: UName.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public UName(XSDeclaration decl) {
    this(decl.getTargetNamespace(),decl.getName());
}
 
Example 4
Source File: UName.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public UName(XSDeclaration decl) {
    this(decl.getTargetNamespace(),decl.getName());
}
 
Example 5
Source File: BGMBuilder.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Returns the QName of the declaration.
 * @return null
 *      if the declaration is anonymous.
 */
public static QName getName(XSDeclaration decl) {
    String local = decl.getName();
    if(local==null) return null;
    return new QName(decl.getTargetNamespace(),local);
}
 
Example 6
Source File: UName.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public UName(XSDeclaration decl) {
    this(decl.getTargetNamespace(),decl.getName());
}
 
Example 7
Source File: AbstractExtendedComplexTypeBuilder.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Gets a {@link SimpleNameClass} from the name of a {@link XSDeclaration}.
 */
private NameClass getNameClass(XSDeclaration decl) {
    return new SimpleNameClass(new QName(decl.getTargetNamespace(), decl.getName()));
}
 
Example 8
Source File: BGMBuilder.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Returns the QName of the declaration.
 * @return null
 *      if the declaration is anonymous.
 */
public static QName getName(XSDeclaration decl) {
    String local = decl.getName();
    if(local==null) return null;
    return new QName(decl.getTargetNamespace(),local);
}
 
Example 9
Source File: UName.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public UName(XSDeclaration decl) {
    this(decl.getTargetNamespace(),decl.getName());
}
 
Example 10
Source File: AbstractExtendedComplexTypeBuilder.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Gets a {@link SimpleNameClass} from the name of a {@link XSDeclaration}.
 */
private NameClass getNameClass(XSDeclaration decl) {
    return new SimpleNameClass(new QName(decl.getTargetNamespace(), decl.getName()));
}
 
Example 11
Source File: UName.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public UName(XSDeclaration decl) {
    this(decl.getTargetNamespace(),decl.getName());
}
 
Example 12
Source File: AbstractExtendedComplexTypeBuilder.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Gets a {@link SimpleNameClass} from the name of a {@link XSDeclaration}.
 */
private NameClass getNameClass(XSDeclaration decl) {
    return new SimpleNameClass(new QName(decl.getTargetNamespace(), decl.getName()));
}
 
Example 13
Source File: AbstractExtendedComplexTypeBuilder.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Gets a {@link SimpleNameClass} from the name of a {@link XSDeclaration}.
 */
private NameClass getNameClass(XSDeclaration decl) {
    return new SimpleNameClass(new QName(decl.getTargetNamespace(), decl.getName()));
}
 
Example 14
Source File: BGMBuilder.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Returns the QName of the declaration.
 * @return null
 *      if the declaration is anonymous.
 */
public static QName getName(XSDeclaration decl) {
    String local = decl.getName();
    if(local==null) return null;
    return new QName(decl.getTargetNamespace(),local);
}
 
Example 15
Source File: AbstractExtendedComplexTypeBuilder.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Gets a {@link SimpleNameClass} from the name of a {@link XSDeclaration}.
 */
private NameClass getNameClass(XSDeclaration decl) {
    return new SimpleNameClass(new QName(decl.getTargetNamespace(), decl.getName()));
}
 
Example 16
Source File: AbstractExtendedComplexTypeBuilder.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Gets a {@link SimpleNameClass} from the name of a {@link XSDeclaration}.
 */
private NameClass getNameClass(XSDeclaration decl) {
    return new SimpleNameClass(new QName(decl.getTargetNamespace(), decl.getName()));
}
 
Example 17
Source File: BGMBuilder.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Returns the QName of the declaration.
 * @return null
 *      if the declaration is anonymous.
 */
public static QName getName(XSDeclaration decl) {
    String local = decl.getName();
    if(local==null) return null;
    return new QName(decl.getTargetNamespace(),local);
}
 
Example 18
Source File: BGMBuilder.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Returns the QName of the declaration.
 * @return null
 *      if the declaration is anonymous.
 */
public static QName getName(XSDeclaration decl) {
    String local = decl.getName();
    if(local==null) return null;
    return new QName(decl.getTargetNamespace(),local);
}
 
Example 19
Source File: AbstractExtendedComplexTypeBuilder.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Gets a {@link SimpleNameClass} from the name of a {@link XSDeclaration}.
 */
private NameClass getNameClass(XSDeclaration decl) {
    return new SimpleNameClass(new QName(decl.getTargetNamespace(), decl.getName()));
}
 
Example 20
Source File: BGMBuilder.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Returns the QName of the declaration.
 * @return null
 *      if the declaration is anonymous.
 */
public static QName getName(XSDeclaration decl) {
    String local = decl.getName();
    if(local==null) return null;
    return new QName(decl.getTargetNamespace(),local);
}