ActivationProperty activationProperty = new ActivationProperty(); for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- ) activationProperty.setName( interpolatedTrimmed( parser.nextText(), "name" ) ); activationProperty.setValue( interpolatedTrimmed( parser.nextText(), "value" ) );
public static ActivationProperty cloneActivationProperty( ActivationProperty src ) { if ( src == null ) { return null; } ActivationProperty result = new ActivationProperty(); result.setName( src.getName() ); result.setValue( src.getValue() ); return result; }
String name = property.getName(); boolean reverseName = false; .setLocation( property.getLocation( "" ) ) ); return false; String propValue = property.getValue(); if ( StringUtils.isNotEmpty( propValue ) )
ActivationProperty activationProperty = new ActivationProperty(); InputLocation _location; _location = new InputLocation( parser.getLineNumber(), parser.getColumnNumber(), source ); activationProperty.setLocation( "", _location ); for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- ) activationProperty.setLocation( "name", _location ); activationProperty.setName( interpolatedTrimmed( parser.nextText(), "name" ) ); activationProperty.setLocation( "value", _location ); activationProperty.setValue( interpolatedTrimmed( parser.nextText(), "value" ) );
final ActivationProperty replacementProp = new ActivationProperty(); replacementProp.setName( "!disableProfileActivation" ); replacement.setProperty( replacementProp );
ActivationProperty activationProperty = new ActivationProperty(); InputLocation _location; _location = new InputLocation( parser.getLineNumber(), parser.getColumnNumber(), source ); activationProperty.setLocation( "", _location ); for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- ) activationProperty.setLocation( "name", _location ); activationProperty.setName( getTrimmedValue( parser.nextText() ) ); activationProperty.setLocation( "value", _location ); activationProperty.setValue( getTrimmedValue( parser.nextText() ) );
String name = property.getName(); boolean reverseName = false; .setLocation( property.getLocation( "" ) ) ); return false; String propValue = property.getValue(); if ( StringUtils.isNotEmpty( propValue ) )
public ProfileBuilder activeForPropertyValue(String name, String value) { ActivationProperty activationProperty = new ActivationProperty(); activationProperty.setName(name); activationProperty.setValue(value); getActivation().setProperty(activationProperty); return this; }
/** * Method writeActivationProperty. * * @param activationProperty * @param serializer * @param tagName * @throws java.io.IOException */ private void writeActivationProperty( ActivationProperty activationProperty, String tagName, XmlSerializer serializer ) throws java.io.IOException { serializer.startTag( NAMESPACE, tagName ); if ( activationProperty.getName() != null ) { serializer.startTag( NAMESPACE, "name" ).text( activationProperty.getName() ).endTag( NAMESPACE, "name" ); } if ( activationProperty.getValue() != null ) { serializer.startTag( NAMESPACE, "value" ).text( activationProperty.getValue() ).endTag( NAMESPACE, "value" ); } serializer.endTag( NAMESPACE, tagName ); } //-- void writeActivationProperty( ActivationProperty, String, XmlSerializer )
ActivationProperty prop = new ActivationProperty(); prop.setName( profileProp.getName() ); prop.setValue( profileProp.getValue() );
/** * Method writeActivationProperty. * * @param activationProperty * @param serializer * @param tagName * @throws java.io.IOException */ private void writeActivationProperty( ActivationProperty activationProperty, String tagName, XmlSerializer serializer ) throws java.io.IOException { serializer.startTag( NAMESPACE, tagName ); if ( activationProperty.getName() != null ) { serializer.attribute( NAMESPACE, "name", activationProperty.getName() ); } if ( activationProperty.getValue() != null ) { serializer.attribute( NAMESPACE, "value", activationProperty.getValue() ); } serializer.endTag( NAMESPACE, tagName ); } //-- void writeActivationProperty( ActivationProperty, String, XmlSerializer )
org.apache.maven.model.ActivationProperty prop = new org.apache.maven.model.ActivationProperty(); prop.setName( settingsProp.getName() ); prop.setValue( settingsProp.getValue() );
ActivationProperty activationProperty = new ActivationProperty(); for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- ) activationProperty.setName( getTrimmedValue( value ) ); activationProperty.setValue( getTrimmedValue( value ) );
private static ActivationProperty asActivationProperty(org.apache.maven.settings.ActivationProperty property) { ActivationProperty mavenProperty = new ActivationProperty(); if (property != null) { mavenProperty.setName(property.getName()); mavenProperty.setValue(property.getValue()); } return mavenProperty; }
private static ActivationProperty asActivationProperty(org.apache.maven.settings.ActivationProperty property) { ActivationProperty mavenProperty = new ActivationProperty(); if (property != null) { mavenProperty.setName(property.getName()); mavenProperty.setValue(property.getValue()); } return mavenProperty; }