예제 #1
0
 private static <S> void deserializeProperties(
     ArtifactProperties<S> artifactProperties, ArtifactPropertiesState propertiesState) {
   final Element options = propertiesState.getOptions();
   if (artifactProperties == null || options == null) {
     return;
   }
   final S state = artifactProperties.getState();
   if (state != null) {
     XmlSerializer.deserializeInto(state, options);
     artifactProperties.loadState(state);
   }
 }
예제 #2
0
 public static <S> void copyProperties(ArtifactProperties<?> from, ArtifactProperties<S> to) {
   //noinspection unchecked
   to.loadState((S) from.getState());
 }