Refine search
/** * Method write. * * @param writer * @param lifecycleConfiguration * @throws java.io.IOException */ public void write( Writer writer, LifecycleConfiguration lifecycleConfiguration ) throws java.io.IOException { XmlSerializer serializer = new MXSerializer(); serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-indentation", " " ); serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-line-separator", "\n" ); serializer.setOutput( writer ); serializer.startDocument( lifecycleConfiguration.getModelEncoding(), null ); writeLifecycleConfiguration( lifecycleConfiguration, "lifecycles", serializer ); serializer.endDocument(); } //-- void write( Writer, LifecycleConfiguration )
protected static final String printable( char ch ) { StringBuilder retval = new StringBuilder(); addPrintable( retval, ch ); return retval.toString(); }
closeStartTag(); writeIndent(); if ( ( depth + 1 ) >= elName.length ) ensureElementsCapacity(); checkInterning( namespace ); elNamespace[depth] = ( namesInterned || namespace == null ) ? namespace : namespace.intern(); checkInterning( name ); elName[depth] = ( namesInterned || name == null ) ? name : name.intern(); if ( out == null ) prefix = lookupOrDeclarePrefix( namespace ); setPrefix( "", "" ); + "as default namespace is currently bound to '" + uri + "'" + getLocation() );
closeStartTag(); checkInterning( prefix ); throw new IllegalArgumentException( "prefix must be not null" + getLocation() ); throw new IllegalStateException( "duplicated prefix " + printable( prefix ) + getLocation() ); checkInterning( namespace ); throw new IllegalArgumentException( "namespace must be not null" + getLocation() ); ensureNamespacesCapacity();
checkInterning( namespace ); throw new IllegalArgumentException( "namespace must be not null" + getLocation() ); throw new IllegalArgumentException( "default namespace cannot have prefix" + getLocation() ); return generatePrefix( namespace );
throw new IllegalArgumentException( "startTag() must be called before attribute()" + getLocation() ); checkInterning( namespace ); String prefix = lookupOrDeclarePrefix( namespace ); prefix = generatePrefix( namespace ); writeAttributeValue( value, out ); out.write( attributeUseApostrophe ? '\'' : '"' ); return this;
checkInterning( namespace ); throw new IllegalArgumentException( "expected namespace " + printable( elNamespace[depth] ) + " and not " + printable( namespace ) + getLocation() ); throw new IllegalArgumentException( "end tag name can not be null" + getLocation() ); checkInterning( name ); throw new IllegalArgumentException( "expected element name " + printable( elName[depth] ) + " and not " + printable( name ) + getLocation() ); writeNamespaceDeclarations(); out.write( " />" ); // space is added to make it easier to work in XHTML!!! --depth; writeIndent(); final String prefix = lookupOrDeclarePrefix( namespace );
/** * Method write. * * @param stream * @param lifecycleConfiguration * @throws java.io.IOException */ public void write( OutputStream stream, LifecycleConfiguration lifecycleConfiguration ) throws java.io.IOException { XmlSerializer serializer = new MXSerializer(); serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-indentation", " " ); serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-line-separator", "\n" ); serializer.setOutput( stream, lifecycleConfiguration.getModelEncoding() ); serializer.startDocument( lifecycleConfiguration.getModelEncoding(), null ); writeLifecycleConfiguration( lifecycleConfiguration, "lifecycles", serializer ); serializer.endDocument(); } //-- void write( OutputStream, LifecycleConfiguration )
/** simple utility method -- good for debugging */ protected static final String printable( String s ) { if ( s == null ) return "null"; StringBuilder retval = new StringBuilder( s.length() + 16 ); retval.append( "'" ); char ch; for ( int i = 0; i < s.length(); i++ ) { addPrintable( retval, s.charAt( i ) ); } retval.append( "'" ); return retval.toString(); }
/** * Method write. * * @param writer * @param model * @throws java.io.IOException */ public void write( Writer writer, Model model ) throws java.io.IOException { XmlSerializer serializer = new MXSerializer(); serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-indentation", " " ); serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-line-separator", "\n" ); serializer.setOutput( writer ); serializer.startDocument( model.getModelEncoding(), null ); writeModel( model, "project", serializer ); serializer.endDocument(); } //-- void write( Writer, Model )
protected static final String printable(char ch) { StringBuffer retval = new StringBuffer(); addPrintable(retval, ch); return retval.toString(); }
/** * Method write. * * @param writer * @param expressionDocumentation * @throws java.io.IOException */ public void write( Writer writer, ExpressionDocumentation expressionDocumentation ) throws java.io.IOException { XmlSerializer serializer = new MXSerializer(); serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-indentation", " " ); serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-line-separator", "\n" ); serializer.setOutput( writer ); serializer.startDocument( expressionDocumentation.getModelEncoding(), null ); writeExpressionDocumentation( expressionDocumentation, "paramdoc", serializer ); serializer.endDocument(); } //-- void write( Writer, ExpressionDocumentation )
/** simple utility method -- good for debugging */ protected static final String printable(String s) { if(s == null) return "null"; StringBuffer retval = new StringBuffer(s.length() + 16); retval.append("'"); char ch; for (int i = 0; i < s.length(); i++) { addPrintable(retval, s.charAt(i)); } retval.append("'"); return retval.toString(); }
/** * Method write. * * @param writer * @param settings * @throws java.io.IOException */ public void write( Writer writer, Settings settings ) throws java.io.IOException { XmlSerializer serializer = new MXSerializer(); serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-indentation", " " ); serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-line-separator", "\n" ); serializer.setOutput( writer ); serializer.startDocument( settings.getModelEncoding(), null ); writeSettings( settings, "settings", serializer ); serializer.endDocument(); } //-- void write( Writer, Settings )
/** * Method write. * * @param writer * @param coreExtensions * @throws java.io.IOException */ public void write( Writer writer, CoreExtensions coreExtensions ) throws java.io.IOException { XmlSerializer serializer = new MXSerializer(); serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-indentation", " " ); serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-line-separator", "\n" ); serializer.setOutput( writer ); serializer.startDocument( coreExtensions.getModelEncoding(), null ); writeCoreExtensions( coreExtensions, "extensions", serializer ); serializer.endDocument(); } //-- void write( Writer, CoreExtensions )
/** * Method write. * * @param writer * @param persistedToolchains * @throws java.io.IOException */ public void write( Writer writer, PersistedToolchains persistedToolchains ) throws java.io.IOException { XmlSerializer serializer = new MXSerializer(); serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-indentation", " " ); serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-line-separator", "\n" ); serializer.setOutput( writer ); serializer.startDocument( persistedToolchains.getModelEncoding(), null ); writePersistedToolchains( persistedToolchains, "toolchains", serializer ); serializer.endDocument(); } //-- void write( Writer, PersistedToolchains )
/** * Method write. * * @param writer * @param metadata * @throws java.io.IOException */ public void write( Writer writer, Metadata metadata ) throws java.io.IOException { XmlSerializer serializer = new MXSerializer(); serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-indentation", " " ); serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-line-separator", "\n" ); serializer.setOutput( writer ); serializer.startDocument( metadata.getModelEncoding(), null ); writeMetadata( metadata, "metadata", serializer ); serializer.endDocument(); } //-- void write( Writer, Metadata )
/** * Method write. * * @param writer * @param lifecycleConfiguration * @throws java.io.IOException */ public void write( Writer writer, LifecycleConfiguration lifecycleConfiguration ) throws java.io.IOException { XmlSerializer serializer = new MXSerializer(); serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-indentation", " " ); serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-line-separator", "\n" ); serializer.setOutput( writer ); serializer.startDocument( lifecycleConfiguration.getModelEncoding(), null ); writeLifecycleConfiguration( lifecycleConfiguration, "lifecycles", serializer ); serializer.endDocument(); } //-- void write( Writer, LifecycleConfiguration )
/** * Method write. * * @param writer * @param profilesRoot * @throws java.io.IOException */ public void write( Writer writer, ProfilesRoot profilesRoot ) throws java.io.IOException { XmlSerializer serializer = new MXSerializer(); serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-indentation", " " ); serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-line-separator", "\n" ); serializer.setOutput( writer ); serializer.startDocument( profilesRoot.getModelEncoding(), null ); writeProfilesRoot( profilesRoot, "profilesXml", serializer ); serializer.endDocument(); } //-- void write( Writer, ProfilesRoot )
/** * Method write. * * @param stream * @param persistedToolchains * @throws java.io.IOException */ public void write( OutputStream stream, PersistedToolchains persistedToolchains ) throws java.io.IOException { XmlSerializer serializer = new MXSerializer(); serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-indentation", " " ); serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-line-separator", "\n" ); serializer.setOutput( stream, persistedToolchains.getModelEncoding() ); serializer.startDocument( persistedToolchains.getModelEncoding(), null ); writePersistedToolchains( persistedToolchains, "toolchains", serializer ); serializer.endDocument(); } //-- void write( OutputStream, PersistedToolchains )