Examples of ITrackSource


Examples of org.jibx.runtime.ITrackSource

  protected void verify() {
    if (!factory || !preset || !postset) {
      throw new IllegalStateException
        ("factory, pre-set, or post-set method not called");
    }
        ITrackSource track = (ITrackSource)this;
        System.out.println("Verified " + this.getClass().getName() +
            " from \"" + track.jibx_getDocumentName() + "\" (" +
            track.jibx_getLineNumber() + ":" + track.jibx_getColumnNumber() +
            ")");
  }
View Full Code Here

Examples of org.jibx.runtime.ITrackSource

        if (comp instanceof INamed && (name = ((INamed)comp).getName()) != null) {
            buff.append(' ');
            buff.append(name);
        }
        if (comp instanceof ITrackSource) {
            ITrackSource track = (ITrackSource)comp;
            String path = track.jibx_getDocumentName();
            if (path != null) {
                buff.append(" (");
                int start = path.lastIndexOf(File.separatorChar) + 1;
                int end = path.length();
                if (path.endsWith(".xsd")) {
                    end -= 4;
                }
                buff.append(path.substring(start, end));
                int line = track.jibx_getLineNumber();
                if (line > 0) {
                    buff.append(':');
                    buff.append(line);
                }
                buff.append(")");
View Full Code Here

Examples of org.jibx.runtime.ITrackSource

            buff.insert(0, segment.toString());
            segment.setLength(0);
            node = parent;
        }
        if (comp instanceof ITrackSource) {
            ITrackSource track = (ITrackSource)comp;
            String path = track.jibx_getDocumentName();
            if (path != null) {
                buff.append(" (");
                int start = path.lastIndexOf(File.separatorChar) + 1;
                int end = path.length();
                if (path.endsWith(".xsd")) {
                    end -= 4;
                }
                buff.append(path.substring(start, end));
                int line = track.jibx_getLineNumber();
                if (line > 0) {
                    buff.append(':');
                    buff.append(line);
                }
                buff.append(")");
View Full Code Here

Examples of org.jibx.runtime.ITrackSource

        buff.append('<');
        buff.append(name());
        buff.append('>');
        buff.append(" element");
        if (this instanceof ITrackSource) {
            ITrackSource track = (ITrackSource)this;
            int line = track.jibx_getLineNumber();
            if (line >= 0) {
                buff.append(" (line ");
                buff.append(line);
                buff.append(", column ");
                buff.append(track.jibx_getColumnNumber());
                String dname = track.jibx_getDocumentName();
                if (dname == null) {
                    buff.append(')');
                } else {
                    buff.append(" in '");
                    buff.append(dname);
View Full Code Here

Examples of org.jibx.runtime.ITrackSource

    private JIBXSourceFinder() {
    }

    public ITrackSource getJIBXSource(Object o) {
        ITrackSource jibxSource;
        if (o instanceof ITrackSource) {
            jibxSource = (ITrackSource) o;
        } else {
            jibxSource = unknownSource;
        }
View Full Code Here

Examples of org.jibx.runtime.ITrackSource

     *
     * @return The location, or null.
     */
    public String getLocation() {
        if (this instanceof ITrackSource) {
            ITrackSource source = (ITrackSource) this;
            return source.jibx_getDocumentName();
        }
        return null;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.